Skip to content

Use duration from info dictionary when saving WebP#5338

Merged
hugovk merged 1 commit intopython-pillow:masterfrom
radarhere:webp_save_duration
Mar 21, 2021
Merged

Use duration from info dictionary when saving WebP#5338
hugovk merged 1 commit intopython-pillow:masterfrom
radarhere:webp_save_duration

Conversation

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