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 Reply

Your email address will not be published. Required fields are marked *

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