Skip to content

Image File size is worryingly small after switch to PILimage save #1006

Closed Answered by quitmeyer
quitmeyer asked this question in Q&A
Discussion options

You must be logged in to vote

Ok, i think i solved it!
I didn't know the PIL image save feature had a "quality" command, and that the default is low-ish (like 50)

and so i changed my line of code to
img.save(filepath,exif=exif_bytes, quality=95)

and it seems to be saving normal file sizes. If i crank it to 100, the files sizes get quite big (like 22mb), but 95 seems to be around the same as before.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by quitmeyer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant