Video alternative to GIF

From HandWiki

Several alternatives to the Graphics Interchange Format (GIF) have been proposed, usually HTML5 video, for the display of short, silent, looping, moving picture files on the web.

Videos resolve many issues that GIFs present through common usage on the web. They include drastically smaller file sizes, the ability to surpass the 8-bit color restriction, and better frame-handling and compression through codecs. Virtually universal support for the GIF format in web browsers and a lack of official support for video in the HTML standard caused GIF to rise to prominence for the purpose of displaying short video-like files on the web. The introduction of the video element in the HTML5 specification, which, along with the MP4 and WebM video file formats, allowed for broader support and easier implementation of videos, making video alternatives for GIFs more practical.

VP9 only supports alpha compositing with 4:2:0 chroma subsampling[1] in the YUVA420 pixel format, which may be unsuitable for GIFs that combine transparency with rasterised vector graphics with fine color details.

Uses

In April 2014, 4chan added support for silent WebM videos that are under 3 MB in size and 2 min in length,[2][3] and in October 2014, Imgur started converting any GIF files uploaded to the site to video and giving the link to the HTML player the appearance of an actual file with a .gifv extension.[4][5]

In January 2016, Telegram started re-encoding all GIFs to MPEG4 videos that "require up to 95% less disk space for the same image quality."[6]

Another alternative to GIF is APNG (Animated Portable Network Graphics), which is supported by most browsers as of 2019[7].

Example

<video src="example.mp4" autoplay muted loop />

References