APNG Support Test
For those not in the know, a APNG is a new breed of animated image combining the benefits of PNG images by supporting 24-bit images and 8-bit transparency and the animation abilities of the GIF. The problem is that most browsers don’t support APNG at the moment, so Elijah Grey has written a script which detects if a browser supports the format.
A simple script that utilizes the HTML 5 canvas API in only 9 functional lines of JavaScript to detect if a browser supports APNG images. It can be useful for deciding when to serve a client browser APNG images instead of GIF images. This will set the variable, apng_supported to true if the browser supports APNG.
View the APNG JavaScript tool, or see it in action to find out whether your browser supports APNG!



Related demos