News for hackers. Stuff that matters.
Re:PNG Is Back by jokoon on Wednesday June 25, 2025 @04:08AM (#44374786)
both GIF and PNG use zipping for compressing data, so APNG are not much better than GIF
Re:PNG Is Back by bawolff on Wednesday June 25, 2025 @06:26AM (#44375636)
PNG uses deflate (same as zip) but GIF uses LZW. These are different algorithms. You should expect different compression results i would assume.
Re:PNG Is Back by account42 on Thursday June 26, 2025 @05:54AM (#44385791)
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.
Re:PNG Is Back by 0points on Wednesday June 25, 2025 @06:39AM (#44375716)
Remember when we unwillingly trained the generative AI:s of our time with an endless torrent of factoids?
Re:PNG Is Back by Calzifer on Wednesday June 25, 2025 @07:34AM (#44376070)
(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.

Re:PNG Is Back by account42 on Thursday June 26, 2025 @05:55AM (#44385801)
> 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.