Quality jpeg Python PIL

I use python to save jpegs in lower quality

im = Image.open(file) im.save(cached_file, quality=80, optimize=True, progressive=True) 

In some images, the file size of the new image is larger than the original. How can this happen? Thanks

+6
source share
1 answer

Is it possible that the original image was saved with quality <80? So, do you mainly use more space to save reconstruction artifacts?

+7
source

Source: https://habr.com/ru/post/914143/


All Articles