What alternatives to animated GIF are there?
GIF is the oldest and simplest image format still commonly used on the web. Despite its limited color palette (256 colors per frame), lack of alpha transparency and relatively large file size, 30 years later it still remains widely used and the only animated image format supported in nearly all major web browsers and image viewers.
This is largely due to lack of general consensus about what should be the replacement. There are multiple competing animated image formats, and also some debate on whether we need them at all (leaving animation to video formats). In this article I will give short introduction to alternative animated image formats.
APNG Animated Portable Network Graphics
APNG is an extension to PNG format (although officially rejected by PNG group). It works similarly to GIF, supporting 24-bit images (allowing to use a lot more colors than GIF), 8-bit alpha channel (partial transparency) and better compression.
It's developed in 2008, but for a long time adaption remined low, with only Mozilla supporting APNG. Recently it has gained more widespread adaption with Safari, Chrome and Opera adding APNG support. Currently it has the widest support in web browsers amongst alternatives to GIF - it's supported by Firefox, Safari, Opera and recent versions of Chrome, leaving only IE/Edge and some mobile browser users out. It also provides some degree of backward compatiblity in applications which doesn't support APNG, allowing to display the first frame as normal PNG image.
APNG support in browsers: https://caniuse.com/#search=apng.
Ezgif allows to create APNG and process APNG files on most of our tools.
WebP Modern image format developed by Google
WebP is relatively new image format, first announced in 2010. Similarly to APNG, it also supports 24-bit images, 8-bit transparency. It features lossy and lossless compression, making it possible to achieve very small file size in some cases, or ratain full lossless quality, making it very versatile format. Unfortunately it's only supported by Chrome. Being completely new format, it also doesn't fail gracefully, displaying just a broken image or alt text. Some sites choose to serve WebP images to supported browsers, and GIF or APNG to the rest, but this requires some specific web server configuration or code and preperation of images.
WebP support in browsers: https://caniuse.com/#search=webp.
Ezgif allows to create, edit and convert WebP files.
MNG Multiple-image Network Graphics
MNG is another animated image format related to PNG. It predates APNG, and some browser vendors have experimented with it in past, but currently it's not supported natively by any major web browser. Interestingly enough though, it has pretty good tooling support, mostly thanks to it being supported by imagemagick, which is used as image processing library or backend by many other programs.
Ezgif allows to convert existing MNG to APNG or GIF and use MNG with most of our editing tools. Images most likely won't be displayed in your browser though. With current state of support, APNG is much more practical choice.
MNG demo image: https://ezgif.com/images/format-demo/butterfly.mng, 2.9MB, 67 frames.
FLIF Free Lossless Image Format
Ezgif has some experimental FLIF tooling - you can create and edit animated FLIF files, but animations may run at incorrect speed and the performance of larger animations may be poor. We'll keep an eye on this format in future.