←back to thread

A new PNG spec

(www.programmax.net)
615 points bluedel | 2 comments | | HN request time: 0.415s | source
Show context
albert_e ◴[] No.44373786[source]
So animated GIFs can be replaced by Animated PNGs with alpha blending with transparent backgrounds and lossless compression! Some nostalgia from 2000s websites can be revived and relived :)

Curious if Animated SVGs are also a thing. I remember seeing some Javascript based SVG animations (it was a animated chatbot avatar) - but not sure if there is any standard framework.

replies(10): >>44373806 #>>44373868 #>>44374146 #>>44374225 #>>44374312 #>>44374556 #>>44374786 #>>44376132 #>>44379316 #>>44385628 #
jokoon ◴[] No.44374786[source]
both GIF and PNG use zipping for compressing data, so APNG are not much better than GIF
replies(3): >>44375636 #>>44375716 #>>44376070 #
1. bawolff ◴[] No.44375636[source]
PNG uses deflate (same as zip) but GIF uses LZW. These are different algorithms. You should expect different compression results i would assume.
replies(1): >>44385791 #
2. account42 ◴[] No.44385791[source]
ZIP is theoretically a generic container and theoretically supports a number of different compression formats. Stored (no compression) and deflate are the only ones you can count on being supported everywhere though so in practice you're not wrong.