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

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:

Details

bzimport set Reference to bz53167.
bzimport added a subscriber: Unknown Object (MLST).

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.Sep 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.

lowering priority in light of comment 2. Possible wontfix

(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.

mxn added a subscriber: mxn.Nov 24 2014, 8:54 PM
TheDJ added a subscriber: TheDJ.Jun 7 2015, 12:06 PM

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

Ciencia_Al_Poder set Security to None.
Ciencia_Al_Poder removed a subscriber: Unknown Object (MLST).
Jdforrester-WMF moved this task from Untriaged to Backlog on the Multimedia board.Sep 4 2015, 6:12 PM
Restricted Application added subscribers: Steinsplitter, Matanya, Aklapper. · View Herald TranscriptSep 4 2015, 6:12 PM
Restricted Application added a project: Commons. · View Herald TranscriptMar 1 2016, 1:05 PM

@Ricordisamoa thx for that link !

Restricted Application added a subscriber: Pokefan95. · View Herald TranscriptApr 20 2016, 11:08 AM

Add Comment