APNG is an extension to PNG that adds animation to the format. It's designed to be backwards compatible with PNG, so any conforming PNG decoder can decode an PNG file, though it will appear as a static image. It was designed by the Mozilla organization, and implemented in the Firefox 3.0 betas and the Opera 9.5 beta.
Of course, you have to weigh this against the browser portability issues. At the time of writing (2008/01/25), APNG is only supported by two pre-release versions of browsers. It'll be a while before APNG is supported in any released browsers, and even longer before there is a significant percentage of web users using APNG supporting browsers (not everyone upgrades right away, in other words).
No. MNG was supported in early Firefox builds, but support was dropped, as it was not widely used and the codebase was rather large. When Firefox needed MNG-like functionality, rather than return to MNG they decided to design a new format, APNG. APNG differs from MNG in several ways:
Because APNG is "sneaky".
Unlike dedicated movie formats (which have mimetypes and extensions users know are animated) and GIF (which people have had plenty of time to get used to), APNG is brand spanking new and pretends to be a regular PNG (which it almost is). How does it "pretend"?
So, all this means that users aren't going to know that PNGs can be animated. If they're not using Firefox 3.0 or Opera 9.5, they won't even see them animate.
For your own images, this is not a problem, and you don't need to worry about this. If you use APNG, you can simply put up a notice ("Some images on this site use the new APNG format, please use Firefox 3+ or Opera 9.5+ to view") or use browser detection to swap them with GIFs or some other format.
However, if you run a site such as an imageboard/image sharing site, a forum with user-supplied avatars/signatures, etc, this can be a problem. If you don't use one of the new browsers that support APNG, you won't see the animations. Users can abuse this by uploading APNGs with disallowed content in the second frame, and everyone with non-APNG supporting browsers will only see the first, acceptable frame.
In addition, Your software will almost certainly start accepting them right away (unlike a new format, where extension/mime whitelisting might block it). If you disallow animated GIFs, you probably want to disallow APNGs as well, but APNGs will be accepted as long as you have allowed PNG.
There's a few options:
Naturally, which option you take depends on the details of your site.
Valid APNGs have an "acTL" chunk somewhere before their first "IDAT" chunk.
The options, from simplest/slowest/buggiest to fastest/most complex/most correct:
Method 1 can very easily have false positives, Method 2 somewhat less (but still possible)
Method 3 should not have false positives, except possibly in the case of a corrupted PNG.
All functions are in the public domain, and can be used in any program without licensing issues or having to credit the creator(s).
This document was written by Foone, and was last updated on 2015/03/20. Please send any comments/suggestions to foone@foone.org.