5 ms·
APNG is a strictly superior drop in replacement for GIF, has been around for ages, but never got adopted by anyone but firefox. I don't get it. Animated WebP al
by opencl 9y ago
APNG is a strictly superior drop in replacement for GIF, has been around for ages, but never got adopted by anyone but firefox. I don't get it. Animated WebP also fills the same role but lacks support outside of Chrome.
The trend of converting gifs to h264 videos is kind of awful in terms of image quality but I'm sure it saves a lot of bandwidth for sites like imgur and twitter.
- yoz-y 9y agoAPNG works in both Chrome and Safari, haven't tested in IE/Edge. h264 might have an advantage since it does consume less cpu due to hardware support though.
- xd1936 9y agoaPNG was never accepted by the PNG standards body, and tends to be as large or larger than GIF[1]. If we're going to go through the effort of converting, then WebP makes way more sense. 1. https://www.androidpolice.com/2017/05/01/animated-png-format-compare-animated-webp-gif/ https://www.androidpolice.com/2017/05/01/animated-png-format...
- maxst 9y agoIf you convert static GIF to static PNG, 99% of the time you'll get a smaller file. That was the original goal of PNG project, and it succeeded: static GIFs disappeared completely. Converting animated GIF to animated PNG leads to similar filesize savings.
- innagadadavida 9y agoVideo formats like webp exploit temporal and spatial similarities to get efficiency. Gif/apng do not. This reduces bandwidth costs and file sizes very much.
- maxst 9y agoDownload a dozen random GIF cinemagraphs, and try gif2webp and gif2apng on them.
- innagadadavida 9y agoTry ffmpeg or vlc instead, you will get much better results. Ffmpeg has support for almost all video/audio formats ever invented.
- yoz-y 9y agoIt seems to me that WebP is more of a replacement for "animated" JPEG than PNG. http://littlesvr.ca/apng/gif_apng_webp5.html http://littlesvr.ca/apng/gif_apng_webp5.html in these comparisons apng has the edge. Ideally we could have both. Sadly Apple is not willing to add webp/webm support to safari.
- opencl 9y agoYou're right, looks like Chrome added it last year, only 9 years after Firefox. h264 is efficient to decode but it's always lossy and gif->h264 conversions have the worst of both worlds qualities of h264 video compression artifacts and being limited to a 256 color palette.
- innagadadavida 9y agomost normal people consuming the content don’t care about it being lossy as PSNR good. That’s the reason why Giphy and others provide an mp4/264 alternate format. Reddit also seems to be embedding mp4/264 instead of gifs.
- nasredin 9y agoI can not believe nobody mentioned: APNG is (can be?) lossless. You have to lose a lot of quality in GIF to get reasonable filesizes. APNG gets you lossless quality with decent sizes. Quality sticklers rejoice!
- pornel 9y agoAPNG's palette mode is much worse than GIF, and RGBA mode has 3-4 times more data to compress. Deflate is better than LZW, but not that much better, so APNG can only offer either worse quality or worse file size. Lots of large GIFs used today were converted from H.264 (YouTube, etc.), so the crap quality of H.264 -> GIF -> H.264 is entirely the fault of GIF.
- maxst 9y ago> APNG's palette mode is much worse than GIF In terms of image quality, it's only slightly worse. But having the same palette for all frames helps to make inter-frame optimization much more efficient.