Answers for "raise IOError("cannot write mode as PNG" mode"

0

raise IOError("cannot write mode as PNG" mode

You need to convert the image to RGB mode.
Image.open('old.jpeg').convert('RGB').save('new.jpeg')
Posted by: Guest on April-18-2021

Code answers related to "raise IOError("cannot write mode as PNG" mode"

Browse Popular Code Answers by Language