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

enableImageWebp breaks animated GIF files #866

Closed
major opened this issue Apr 30, 2024 · 3 comments
Closed

enableImageWebp breaks animated GIF files #866

major opened this issue Apr 30, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@major
Copy link
Contributor

major commented Apr 30, 2024

Issue description

If I enable enableImageWebp, it does a great job on all my images except for .gif files. It turns them into a static, non-animated image. If I set enableImageWebp to false, GIFs are animated again, but I lose the image optimizations on all of the other images.

Would it be possible to exclude .gif files from the optimization?

Thanks!

Theme version

v2.8.2

Hugo version

hugo v0.125.4-cc3574ef4f41fccbe88d9443ed066eb10867ada2+extended linux/amd64 BuildDate=2024-04-25T13:27:26Z VendorInfo=gohugoio

Which browser rendering engines are you seeing the problem on?

Chromium (Google Chrome, Microsoft Edge, Brave, Vivaldi, Opera, etc.), Firefox (Mozilla Firefox)

URL to sample repository or website

https://major.io

Hugo output or build error messages

No response

@major major added the bug Something isn't working label Apr 30, 2024
@jpanther
Copy link
Owner

jpanther commented May 1, 2024

Thanks for the report. I've been able to replicate this and will have a look at a fix.

@jpanther jpanther added the wip Work in progress label May 1, 2024
@github-actions github-actions bot removed the wip Work in progress label May 1, 2024
@major
Copy link
Contributor Author

major commented May 1, 2024

Whoa, you are fast, @jpanther! 👏 I appreciate the fix!

@jpanther
Copy link
Owner

jpanther commented May 1, 2024

Thanks for the support; this one was an easy fix! Will aim to push it to stable in the next few days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants