Reputation: 4502
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
Reputation: 207455
You need to use:
img.write('PNG32:path/to/file/filename.png')
Upvotes: 0