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

ffmpeg.py fix key error in Engine.probe #7

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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.

None yet

1 participant