0

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?

d-_-b
  • 4,142
  • 6
  • 28
  • 43

1 Answers1

0

You need to use:

img.write('PNG32:path/to/file/filename.png')
Mark Setchell
  • 191,897
  • 31
  • 273
  • 432