Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Reponsive animated GIF

Solved by pamtbaau View solution

Started by Robin Kählert 6 years ago · 2 replies · 670 views
6 years ago

Hi there,

currently i am trying to implement a responsive (srcset and sizes) animated GIF. But if i call the srcset with the derivatives function on such a image, i don't get the expected srcset string.

Is it not possible to use this great feature with animated GIFs?

Thanks a lot!

6 years ago Solution

@sque, Solely based on the docs, I guess it is not possible.

Grav's media actions are not available to all media types. Animated GIFs are set apart from jpg, jpeg and png.

See the docs on media types and chapter Animated / Vectorized Actions.

6 years ago

Ok that definately makes sense. Thanks a lot for pointing me to the correct docs and sorry that i was not able to find this on my own.

Suggested topics

Topic Participants Replies Views Activity
General · by Andy Miller, 1 week ago
0 120 1 week ago
General · by lynbor, 1 month ago
3 446 2 weeks ago
General · by lynbor, 3 weeks ago
7 572 2 weeks ago
General · by Harry, 2 weeks ago
0 166 2 weeks ago
General · by Old Man Umby, 1 month ago
2 311 4 weeks ago