Skip to content

Conversation

@radarhere
Copy link
Member

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
@radarhere radarhere deleted the webp_save_duration branch March 21, 2021 09:58
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.

2 participants