on-internet
← Community

Python PIL image open and save changes image file size?

Stack Overflow ·

I used PIL to open and save the same jpg image, but the size reduces significantly. Could somebody explained what's going on under the hood? I run a = Image.open('a.jpg') a.save('b.jpg') a.jpg has the size 5MB, whereas b.jpg is only 600KB. and I enlarge them and compared side by side and basically see no differences in the picture quality. Could somebody explain this? Much appreciated!

Comments

Sign in or sign up to comment and upvote.

No comments yet.