logoalt Hacker News

riffrafftoday at 5:22 AM5 repliesview on HN

I was under the impression many gifs these days are actually served as soundless videos, as those basically compress better.

Can animated PNG beat av1 or whatever?


Replies

layer8today at 6:42 AM

APNG would be for lossless compression, and probably especially for animations without a constant frame rate. Similar to the original GIF format, with APNG you explicitly specify the duration of each individual frame, and you can also explicitly specify looping. This isn’t for video, it’s more for Flash-style animations, animated logos/icons [0], or UI screen recordings.

[0] like for example these old Windows animations: https://www.randomnoun.com/wp/2013/10/27/windows-shell32-ani...

show 1 reply
bawolfftoday at 10:18 AM

Its also because people like to "pause" animations, and that is not really an option with apng & gif.

show 1 reply
armada651today at 7:30 AM

> Can animated PNG beat av1 or whatever?

Animated PNGs can't beat GIF nevermind video compression algorithms.

show 2 replies
josephgtoday at 6:37 AM

I doubt it, given png is a lossless compression format. For video thats almost never what you want.

show 1 reply
fc417fc802today at 8:01 AM

> many gifs these days are actually served as soundless videos

That's not really true. Some websites lie to you by putting .gif in the address bar but then serving a file of a different type. File extensions are merely a convention and an address isn't a file name to begin with so the browser doesn't care about this attempt at end user deception one way or the other.

show 1 reply