For users whose browser doesn't support APNG files, show them an animated GIF of the file instead
OpenPublic

Description

Lots of users (essentially, anyone who uses a browser other than Firefox) have browsers that don't support APNG files. Instead, their browser will interpret it as a regular PNG file and just show the first frame.

A nicer failure mode would be to give everyone a GIF file instead, and then at runtime use some client-side JS to sniff for the feature and if present replace the GIF with the APNG instead.

See also:

bzimport added a subscriber: Unknown Object (MLST).
bzimport set Reference to bz53167.
Jdforrester-WMF created this task.Via LegacyAug 21 2013, 7:19 PM
Bawolff added a comment.Via ConduitAug 21 2013, 7:27 PM

For reference, example apng file: https://en.wikipedia.org/wiki/File:Animated_PNG_example_bouncing_beach_ball.png


Would probably require new software deployed to server (I don't think image magick supports apng->gif, but not sure). Googling suggests http://apng2gif.sourceforge.net/

brion added a comment.Via ConduitSep 3 2013, 7:10 PM

Note the general problem with APNG->GIF is that you may have to apply two lossy transformations:

  • color quantization to an 8-bit palette, probably with dithering
  • 8 or 16-bit alpha channel -> 1-bit alpha channel

Both of these will potentially leave a GIF version looking like crap, and most people will get the crappy version. :(

I'd kinda prefer to phase out animated GIF in favor of proper video formats, editable slideshows of static images, or animated SVG... introducing APNG basically just gives us a slightly better animated GIF exclusively for Firefox users.

Bawolff added a comment.Via ConduitMay 23 2014, 12:29 AM

lowering priority in light of comment 2. Possible wontfix

Jdforrester-WMF added a comment.Via ConduitMay 23 2014, 1:27 AM

(In reply to Brion Vibber from comment #2)

I'd kinda prefer to phase out animated GIF in favor of proper video formats,
editable slideshows of static images, or animated SVG...

That's a nice theory, but it's highly unlikely to actually happen given the low uptake in the toolchain; APNG isn't widely used either, but ASVG is almost unknown IME.

introducing APNG basically just gives us a slightly better animated
GIF exclusively for Firefox users.

Firefox users and those who care about these things and so have browser plugins/etc. :-) But yeah.

Gilles added a project: Multimedia.Via WebNov 24 2014, 3:29 PM
mxn added a subscriber: mxn.Via WebNov 24 2014, 8:54 PM
TheDJ added a subscriber: TheDJ.Via WebJun 7 2015, 12:06 PM

Safari now supports Animated PNG. http://caniuse.com/#feat=apng

Ciencia_Al_Poder edited the task description. (Show Details)Via WebJun 7 2015, 2:39 PM
Ciencia_Al_Poder removed a subscriber: Unknown Object (MLST).
Ciencia_Al_Poder set Security to None.

Add Comment