top | item 33032040

(no title)

Royi | 3 years ago

Another great option is Animated PNG [0]. It has better quality and better compression compared to GIF.

It appears as a side note in the article but it should be considered for the use case.

[0]: https://en.wikipedia.org/wiki/APNG

discuss

order

pornel|3 years ago

APNG is at best a mixed bag, far from being a significant improvement over GIF.

GIF can have one palette per frame, which can be exploited to improve compression and quality (see https://gif.ski). APNG has to either use a costly true-color mode, which makes it compress worse than GIF, or one palette per entire animation, which gives it worse quality than GIF.

All the GIF-killer formats miss the point. They're trying to beat GIF on being primitive and inefficient, but GIF isn't successful because it's a dumb slow video codec, it's successful because it's old enough to be universally supported.

rchaud|3 years ago

APNG is a huge disappointment. Its compression is barely any better than GIF, less than 25% in most cases. Inline muted video on loop is easily the superior choice as file sizes are smaller and browser compatibility is better.

The one area APNG would be useful compared to MP4 is where the image itself needs to have a transparent background. MP4 cannot be transparent, it will always be in a rectangular container and a solid background.