3 ms·
Compression can do much better than 1 bit per pixel. As a quick test, I just created a 1000x1000 single-colour GIF, which takes 1735 bytes.
by gpvos 11y ago
Compression can do much better than 1 bit per pixel. As a quick test, I just created a 1000x1000 single-colour GIF, which takes 1735 bytes.
- BillinghamJ 11y agoIndeed, but that is single color. GIFs contain the differences between each frame - not a whole frame each time. I was assuming 10,000 (of the ~1 million total) pixels were actually changing, and must be changed to one of two values - thus "perfect" compression for a single pixel would be 1 bit.
- gpvos 11y ago> "perfect" compression for a single pixel would be 1 bit I still don't see how that is a valid conclusion that follows from what you wrote before it. It is an optimal representation of the data before you would apply any form of compression.