←back to thread

A new PNG spec

(www.programmax.net)
615 points bluedel | 2 comments | | HN request time: 0.462s | 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. Calzifer ◴[] No.44376070[source]
(A)PNG supports semi-transparency. In GIF a pixel is either full transparent or full opaque.

Also while true color gifs seem to be possible it is usually limited to 256 colors per image.

For those reasons alone APNG is much better than GIF.

replies(1): >>44385801 #
2. account42 ◴[] No.44385801[source]
> Also while true color gifs seem to be possible it is usually limited to 256 colors per image.

No, it's limited to 256 colors per frame and frames can have duration 0 which allows you to combine multiple frames into more than 256 color images.