Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

General

Reponsive animated GIF

Solved by pamtbaau View solution

Started by Robin Kählert 6 years ago · 2 replies · 469 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 Jerry Hunt, 4 days ago
2 95 14 hours ago
General · by pamtbaau, 20 hours ago
1 61 19 hours ago
General · by Andy Miller, 1 day ago
0 47 1 day ago
General · by Marcel, 12 months ago
6 356 5 days ago
General · by Duc , 6 days ago
3 44 6 days ago