You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Animated GIFs can get huge. It would be great if the AMP Cache reencoded huge (ToDo: determine the threshold) animated GIFs included via <amp-img> and <amp-anim> into videos. Safari Technology preview now also accepts video as the source of an image, which might help (background article).
@tomayac "Modern browsers" might be a bit overstatement - it's implemented only in Safari and not even sure if it got out of Technology Preview branch.
@RReverser It did not. Expected in Safari 11.1 sometime next month.
Fwiw, <video src="gif.mp4" muted autoplay loop playsinline></video> is a pretty good replacement for animated GIFs. (It doesn’t work in Samsung Internet for Android, last time I checked.)
Note: not saying this should be implemented as img[src$=".mp4"], just saying it might be one option, apart from the video rewrite from @simevidas's comment above.
One issue to keep in mind is that iOS has hardware limit (anywhere between 4-16) on number of videos it can autoplay (this is due to decoding on hardware) So a GIF heavy page can quickly run into autoplay not working. There are workarounds for this but we don't have them in AMP yet (we do have them in AMP Story through complicated use of a MediaPool)
Animated GIFs can get huge. It would be great if the AMP Cache reencoded huge (ToDo: determine the threshold) animated GIFs included via
<amp-img>
and<amp-anim>
into videos. Safari Technology preview now also accepts video as the source of an image, which might help (background article).Related Issue: #30
Update: replaced "modern browsers" with "Safari Technology Preview".
The text was updated successfully, but these errors were encountered: