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

animated gifs can not be transformed to the webp format #1444

Merged
merged 1 commit into from
Jan 11, 2022

Conversation

dbu
Copy link
Member

@dbu dbu commented Jan 11, 2022

We can't efficiently check if the input is an animated gif, therefore we
catch the exception and try to convert to gif if converting to webp
failed.

continue fix #1440

Q A
Branch? 2.x
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Fixed tickets -
License MIT
Doc -

When we configure the use of webp

...
    webp:
        generate: true
...

and we try to generate image from a gif, we get this error

Animated picture is currently only supported on gif

Now, it's possible to generate animated webp. I will propose an evolution on imagine/imagine but for the moment, this PR fix the bug.

Thanks a lot for your review !

We can't efficiently check if the input is an animated gif, therefore we
catch the exception and try to convert to gif if converting to webp
failed.
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.2%) to 85.547% when pulling 977d23b on gif_shoud_not_be_transformed_to_webp_format into 66f5cdf on 2.x.

@dbu dbu merged commit af61a40 into 2.x Jan 11, 2022
@dbu dbu deleted the gif_shoud_not_be_transformed_to_webp_format branch January 11, 2022 09:36
@dbu
Copy link
Member Author

dbu commented Jan 11, 2022

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.

3 participants