Does only GIF support animation?

51

2

Is GIF the only major image format that supports animation?

With GIF images being a relatively poor quality format, why are they the only one that supports animation in most viewers / browsers?

Jonathon Reinhart

Posted 2013-09-05T04:41:35.153

Reputation: 2 917

7APNG has been "up and coming" for soon 10 years. IE's non-support used to be the big hindering block, and universal support does not seem to appear. Firefox and Opera (at least the non-Blink version) support it, though. – Daniel Andersson – 2013-09-05T05:35:13.783

6http://xkcd.com/927/ – Kevin Panko – 2013-09-05T20:18:28.053

3It all depends on your definition of 'image format'. To me a MPEG or AVI is also an image format, just bigger. And they sure support animation. – Jeff – 2013-09-06T09:23:48.700

Answers

57

Taken from the Meta Topic on Post Formatting, an animated SVG file:


Image author: Pumbaa80 via Wikimedia

NOTE: This is not widely as accepted as GIF, so things like some versions of Internet Explorer will show the image by default but it will not be animated.

Scott Chamberlain

Posted 2013-09-05T04:41:35.153

Reputation: 28 923

Still not working in IE 11... – I say Reinstate Monica – 2015-03-26T15:22:53.160

4Firefox 23.0.1 on 64-bit Windows doesn't want to display it inline, although if I right-click on where it is and pick "view image" it displays correctly. Weird. – a CVn – 2013-09-05T08:08:38.723

8@MichaelKjörling Works just fine for me with the same browser/OS. – Shamtam – 2013-09-05T12:47:04.283

@Shamtam Odd. I have a few extensions installed but nothing that would seem to impact this. Can't easily restart Firefox right now to test in safe mode, unfortunately. Anyway, it would appear that animated SVG support isn't perfect in Firefox. – a CVn – 2013-09-05T12:50:56.283

7@MichaelKjörling I had the same problem, but I got Firefox to display it correctly using a clean profile. It turned out the offending extension for me was HTTPS Everywhere. – kizzx2 – 2013-09-05T13:01:17.143

1No go in IE10. :-( – Darth Egregious – 2013-09-05T15:36:47.040

3Works fine in chrome 29. Still, if it's not working in the latest version of IE, it probably isn't safe to rely on for web development if you're going for a general audience. – Ask About Monica – 2013-09-05T15:41:11.730

1Works perfectly here on Firefox 23.0 and on Chromium (Chrome) 28.0 on Linux. – Paddy Landau – 2013-09-05T15:48:09.847

3This format has almost the same support as APNG, except it runs in Chrome without a plug-in, unlike APNG. It is still not supported in IE, so you can't rely on it. Also, it is a vector format, which means that it is not a replacement for GIF. duDE is right, there's still no viable replacement for GIF right now. – Malcolm – 2013-09-05T15:59:56.590

25

There is a format of PNG out, APNG, that does what GIF does but better. It is still not supported in all browsers, but it is on the rise.

Edit:

Since the libpng(used by blink in chrome/opera/chromium) committee has locked up, and as it does not seem like any changes will come soon, a better choice might be to use Video with alpha-channel.

Shown here: Video transparency Example

Zesar

Posted 2013-09-05T04:41:35.153

Reputation: 359

Chromium Issue 1171: Request for enhancement: APNG (animated PNG) – Jonathon Reinhart – 2015-05-28T02:26:02.780

23

Google says (http://en.wikipedia.org/wiki/Graphics_Interchange_Format#Animation_formats):

Animated GIF remains widely used, as many applications are capable of creating the files, and it remains the only animation format supported in nearly all modern web browsers without the use of a plug-in.

There are other animation formats like for example MNG (http://en.wikipedia.org/wiki/Multiple-image_Network_Graphics). Embedded Adobe Flash objects, MPEG, WebM, and other video formats can be used in place of animated GIF in many websites.

duDE

Posted 2013-09-05T04:41:35.153

Reputation: 14 097

1Has MNG ever actually been used? I have not encountered it once outside its Wikipedia page. – Thomas – 2013-09-05T07:17:38.950

2@Thomas Lead the way... – a CVn – 2013-09-05T08:09:17.287

2@MichaelKjörling Why should I? Nobody's using it :p – Thomas – 2013-09-05T08:21:27.850

@Thomas do you want a wing or an omelet ;) – ratchet freak – 2013-09-05T11:35:36.620

@Thomas: it was native animated icons format for KDE. – vartec – 2013-09-05T13:03:05.830

1If you think about it, there's no reason to separate animated GIF from other video formats. So the answer to the question "why are they [GIF] the only one that supports animation in most viewers / browsers?" is "it's not the only one". So +1 for not arbitrarily separating gif from other video formats. – frozenkoi – 2013-09-06T23:13:13.207

8

The new image format from Google, WebP, supports animated images, lossless and lossy [1], but even Chrome still doesn't support it yet [2].

m45t3r

Posted 2013-09-05T04:41:35.153

Reputation: 106

so... it's worthless. – thepip3r – 2018-03-14T17:37:30.230