PHP
EN
Turn an animated GIF into a <video>
[]
phpied.com
At some point, maybe after just a few low-resolution frames it's better to use an MP4 and an HTML <video> element.
You also preferably need a "poster" image for the video so people can see a quick preview before they decide to play your video.
ImageOptimCommentsI did this for a recent Perfplanet calendar post and the 2.5MB gif turned to 270K mp4.
Another 23MB gif turned to 1.2MB mp4.
Do use preload="none" so that the browser doesn't load the whole video unless the user decides to play.
['play'
'video'
'mp4'
'turn'
'ffmpeg'
'poster'
'turned'
'source'
'animated'
'gif'
'preloadnone'
'range']