Python: PIL generates an image too big?

You’ve tried thumbnail(), resize(), save(quality=20),  but you still get an image too big?

Maybe it’s because you are generating a PNG file.  Change it to JPG and you will get a much smaller file !

It’s because PNG format is a lossless compression file format.  Without losing quality you can’t get a considerably small image file. 

Leave a Comment

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.