Skip to content

Changed WebP default "method" value to 4 - #5450

Merged
hugovk merged 1 commit into
python-pillow:masterfrom
radarhere:webp_method
Apr 29, 2021
Merged

hugovk merged 1 commit into
python-pillow:masterfrom
radarhere:webp_method

Conversation

@radarhere

Copy link
Copy Markdown
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