Skip to content
New issue

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

Changed WebP default "method" value to 4 #5450

Merged
merged 1 commit into from Apr 29, 2021

Conversation

radarhere
Copy link
Member

Resolves #4786

When #4547 added the "method" argument to single frame WebP saving, it used our existing "method" default for multiple frame WebP saving - 0.

However, WebP sets "method" to 4 by default - https://chromium.googlesource.com/webm/libwebp/+/refs/heads/master/src/enc/config_enc.c#34 - so we changed the "method" that was used if none was specified by the user.

This PR changes it to 4 to line up with WebP's default.

@radarhere radarhere added the WebP label Apr 28, 2021
@hugovk hugovk merged commit b3bb587 into python-pillow:master Apr 29, 2021
@radarhere radarhere deleted the webp_method branch April 29, 2021 11:18
radarhere added a commit to radarhere/Pillow that referenced this pull request May 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

WebP file size increased by 20-60%, compared to Pillow 7.1.2
2 participants