Animated GIF files from PNG with alpha
Posted: Mon Feb 01, 2016 1:58 pm
Thorsten,I'm having a weird problem with animated GIF files that use transparency. See http://thevams.net/rick/gifdemoThe animations on the top row were created as series of PNG files in POV-Ray. I used GraphicConverter to merge the PNG files into a GIF animation.The first animation on the top, disc-notrans.gif, was created by merging PNG files that had no alpha channel, and the animation loops repeatedly.The second animation on the top, disc-trans.gif, was created from PNG fils with an alpha channel. When I open it in Safari, Opera, or Google Chrome, it loops once (that is, it plays through twice) and then stops. In Firefox or SeaMonkey it doesn't loop at all - it plays through once and stops.The third animation on the top, disc-transremoved.gif, was created by opening disc-trans.gif in GraphicConverter and selecting "disable transparency in all frames." It loops correctly in all three browsers.On the bottom left is an animation that I created by merging four GIF files with no transparency. It loops as expected. To its right is the same GIF animation, edited to make white transparent. It also loops as expected. For the third animation on the bottom row, I created four PNG files within GC. I specified a delay of 0.5 seconds per frame in Convert & Modify, but for some reason the first frame has a delay of 0.1 second. This animation behaves exactly like the one made from externally-created PNG files with an alpha channel, looping once in Safari, Chrome, and Opera, and not looping at all in Firefox and SeaMonkey.I wonder, have you given any thought to supporting animated PNG (APNG) files? It is a superior format to GIF in that it supports an 8-bit alpha channel. Not all browsers support it, but those that do not should display the first frame of an APNG animation as a static PNG image (that's what Firefox and Opera on Mac do). The Mac versions of Safari and Chrome handle it correctly - I haven't tested on Windows.Wikipedia page for APNG: https://en.wikipedia.org/wiki/APNGThanks for all you do,Rick