Author Topic: Animated PNGs are the best and you should use them  (Read 10178 times)

So, you like the fact that GIFs can be animated right? It's pretty cool. But GIFs have an issue: they only support up to 256 colors, and don't support a full alpha channel, which sucks. This means that GIFs tend to be very ugly. PNGs, on the other hand, are very pretty. They still have an okay file size, but support 2564 colors, including full alpha support. Which makes them very nice. But you can't animate them.

That's where APNGs come in. They are awesome. APNG stands for animated PNG - they can also just have a regular extension, PNG. In fact, (A)GIFs are like that too. They support as many colors as regular PNGs do, yet are as animatable as GIFs. Logically, everybody should be using them, right? But we aren't. Most of us still use boring, ugly GIFs. That's because few browsers actually support them. Here's a list of mainstream browsers that support it:

Firefox
Safari*
IceWeasel (Debian)

*only on the developer/beta version
Wow. That's not very many, is it? Luckily, many browser that do not support it have extensions that will let them, like these:

Chrome
Chromium
Opera

Some browsers just don't support it.

Internet Explorer
Android Browser
Dolphin

The iOS browser also supports APNGs by default, but with Android you're going to have to use Firefox - default, Chrome, and Dolphin do not work. So, if your browser falls into the green category, you're good - even on mobile, Safari and Firefox work! If it falls into the yellow category, you will need to grab a plugin in the links section. If it falls into the red, you're screwed - but seriously, if you're using IE, go forget yourself.

Here's some links for manipulating APNGs or extending browser support:
- Chrome Extension
- Opera Extension
- APNG Assembler
- APNG Disassembler
- APNG to AGIF
- AGIF to APNG
- APNG (+GIF) plugin for Paint.NET
- APNG plugin for GIMP
- APNG plugin for VirtualDub
- APNGs as canvases (for web designers)
- APNG Wikipedia article

Finally, if you're unsure if your browsers supports APNGs, or want to test your extension/disassembler, here's an example:



If it does not support APNGs, it will display as static. Why's that? Because of a REALLY forgetIN' COOL feature: APNGs will display as the first frame in unsupported browsers.
« Last Edit: June 25, 2014, 02:41:49 AM by TristanLuigi »

cuol
i don't really see a difference though


cuol
i don't really see a difference though
See the reflection? That is not possible with a GIF, it would display as solid. Also, you may notice that GIFs have that ugly dithering. Unless you mean that the beach ball isn't moving, in which case I'd advise you to install one of the extensions I linked.

im on a mac

the beach ball isnt moving

See the reflection? That is not possible with a GIF, it would display as solid. Also, you may notice that GIFs have that ugly dithering. Unless you mean that the beach ball isn't moving, in which case I'd advise you to install one of the extensions I linked.
no it's moving


Here's another


Replaced OP.

im on a mac

the beach ball isnt moving
Maybe your Safari is outdated? Or maybe Wikipedia lied to me.

-accidental double post, disregard-

i tried both on a mac in safari and on an iPad and they both did not work :S

that's loving amazing

i tried both on a mac in safari and on an iPad and they both did not work :S
Ah, after doing some research, it only works on the developer version. Support is upcoming. I'll add a note.

that's loving amazing
I aught to test if it works with avatars.

Image:

EDIT: I'm getting the stupid non-updating avatar bug. Let me try it on my phone real quick.
« Last Edit: June 25, 2014, 02:22:57 AM by TristanLuigi »

that's really neat

forget it works for some lesser know browser on the computer but no t the chrome browser for the phone wtf