d-_-b
d-_-b

Reputation: 4502

pgmagick: Convert an image to PNG foramt

I am trying to convert a jpeg image to a png(rgb+α).

I tried the following code, but it doesn't work.

img.write('path/to/file/png32:filename.png')

How do I achieve this?

Upvotes: 0

Views: 185

Answers (1)

Mark Setchell
Mark Setchell

Reputation: 207455

You need to use:

img.write('PNG32:path/to/file/filename.png')

Upvotes: 0

Related Questions