We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Load the image linked below, convert it to WebP.
Same file size as with Pillow 7.1.2 (± 5%)
Pillow 7.1.2
File size increased by almost 50%, compared to Pillow 7.1.2.
from PIL import Image source = Image.open('source.jpg') source.save('dest.webp', quality=80)
The text was updated successfully, but these errors were encountered:
Testing, I find this is the result of #4547
Sorry, something went wrong.
Looking at the webp source code, the default 'method' value is 4 - https://chromium.googlesource.com/webm/libwebp/+/refs/heads/master/src/enc/config_enc.c#34
If I pass in method=4 to the save method -
method=4
save
from PIL import Image source = Image.open('source.jpg') source.save('dest.webp', quality=80, method=4)
Then I get the same file size as before the change.
So the different because we changed the default behaviour. I've created #5450 to resolve this by changing our default to 4 as well.
Successfully merging a pull request may close this issue.
What did you do?
Load the image linked below, convert it to WebP.
What did you expect to happen?
Same file size as with
Pillow 7.1.2
(± 5%)What actually happened?
File size increased by almost 50%, compared to
Pillow 7.1.2
.What are your OS, Python and Pillow versions?
The text was updated successfully, but these errors were encountered: