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

[FR] Imgix animated gif support #172

Open
louderthan10 opened this issue Oct 10, 2019 · 6 comments
Open

[FR] Imgix animated gif support #172

louderthan10 opened this issue Oct 10, 2019 · 6 comments

Comments

@louderthan10
Copy link

Does ImageOptimize take advantage of Imgix's animated gif features? It's currently a "premium" feature (by premium, they say it may cost extra someday, but for now you just have to request it and they'll add it to your account).

Some differences from the horse's mouth:

The most important thing to do is use auto=format,compress for the animated GIFs. It will actually turn those GIFs into an animated WebP in supported browsers (such as Chrome).

Every other parameter is the same except for the quality parameter. Since GIFs operate in such a different way from images, we created a new parameter called gif-q. I would suggest gif-q=35 to gif-q=60. The higher the number, the more compression applied to the GIF.

Also, if you wanted to make a humongous change (but certainly require more front end work) you could convert the GIF to an MP4 and use some video tags to make it look like a GIF (<video preload="auto" autoplay="autoplay" muted="muted" loop="loop" style="width: 300px; height: 169px;">). You will see drastic performance changes using this option.

Here is a CodePen example of what I am talking about: https://codepen.io/daletom/pen/EQoazB

For more information regarding GIF parameters, you can read through our documentation below: https://docs.imgix.com/apis/url/animation

@khalwat
Copy link
Contributor

khalwat commented Oct 18, 2019

It doesn't. Do you want it to? :)

@khalwat khalwat changed the title Imgix animated gif support [FR] Imgix animated gif support Oct 18, 2019
@louderthan10
Copy link
Author

Yes please! Would love it too! 🙏🙏🙏

@howells
Copy link

howells commented Apr 30, 2020

I've just enabled GIFs for a site that uses Imgix and would love to use these params

@sjcallender
Copy link

Yes, please.

@AdamChlan
Copy link

We have a client site that needs this as well.

@zizther
Copy link

zizther commented Nov 24, 2021

It would be great to have Imgix handle GIFs too.

In regards to GIF support in Imgix, I asked imgix to enable on my account, and they went ahead and did this, I do have a paid account with them though, not sure if that makes a difference.

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

No branches or pull requests

6 participants