- Better compression with faster decompression speeds
(PNG uses
LZ77, GIF uses LZ78)
You need to go reread the spec. GIF uses LZW,
Lempel-Ziv-Welch, a
significant extension to LZ.
The compression algorithm alone does not determine
the overall
compression on the data.
No, it doesn't. I was correcting the statement about GIF, not taking
issue with the claim of better compression.
GIF just lumps together 8-bit bytes for compression,
Not always 8-bit; it depends on the number of unique colours in the
input image. The input tokens to which LZW is applied can be as small
as two bits per pixel.
Do you actually know GIF? I'm beginning to think not.
However, there is another advantage that PNG has over
GIF that Jim
didn't mention: PNG is not burdened by any patented IP.
Neither is GIF, if the person who thought that all applicable patents
have expired was correct. :-)
/~\ The ASCII der Mouse
\ / Ribbon Campaign
X Against HTML mouse at rodents.montreal.qc.ca
/ \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B