Advertisement

Mobile Safari in iOS 8 supports Animated PNGs

MacRumors is reporting that mobile Safari in iOS 8 includes support for Animated PNGs (APNG). What's that you say? You thought animated GIFs were the only game in town? Well, they really are, but who's to say how animated PNGs might fare in the future given that they offer richer color and greater transparency support.

The Animated Portable Network Graphics (APNG) file format is a non-standard extension to the Portable Network Graphics (PNG) specification. It allows for animated PNG files that work similarly to animated GIF files, while supporting 24-bit images and 8-bit transparency not available for GIFs.

Animated GIFs, in contrast, can only support 256 colors per frame -- though there are workarounds for this limitation, the resulting file size is not ideal.

As it stands today, animated PNGs, with respect to web browsers, still aren't widely supported. Currently, they only work on Firefox and mobile Safari on iOS 8. The format, however, will be supported by Safari 8 once OS X Yosemite ships. If your browser supports animated PNGs, you should see a bouncing ball below.


Browsers that don't support animated PNGs will nonetheless show the first frame of the file.