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

Use duration from info dictionary when saving WebP #5338

Merged
merged 1 commit into from Mar 21, 2021

Conversation

@radarhere
Copy link
Member

@radarhere radarhere commented Mar 17, 2021

Helps #4313

When saving GIF, if duration is not passed in through a keyword argument, it defaults to the duration from the info dictionary -

duration = im.encoderinfo.get("duration", im.info.get("duration"))

This PR adds that behaviour to WebP.

@radarhere radarhere added the WebP label Mar 17, 2021
@hugovk hugovk merged commit 688e6f1 into python-pillow:master Mar 21, 2021
49 of 50 checks passed
@radarhere radarhere deleted the webp_save_duration branch Mar 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants