Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Reponsive animated GIF

Solved by pamtbaau View solution

Started by Robin Kählert 6 years ago · 2 replies · 767 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 themetman, 23 hours ago
2 40 16 hours ago
General · by Hanns Mattes, 1 week ago
0 121 1 week ago
General · by Karmalakas, 1 week ago
2 185 1 week ago
General · by Hanns Mattes, 3 weeks ago
0 235 3 weeks ago
General · by Dima, 4 weeks ago
1 211 4 weeks ago