Skip to content

Conversation

@svenwiethoff
Copy link

Hello,
I ran today into key error on line 166 in engines/ffmpeg.py.
It turns out that duration is not always available in Image.info and there are animated gifs out there without it.

See:
Pillow documentation
and
stack overflow

Checking for the attribute fixed it and everything was working as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant