3 ms·
I thought that too, but then the "LogoFAIL" vulnerabilities came out.[1] It's possible to define a subset of the deflate bitstream that only does simple RLE co
by Retr0id 3y ago
I thought that too, but then the "LogoFAIL" vulnerabilities came out.[1]
It's possible to define a subset of the deflate bitstream that only does simple RLE compression, and I've done so: https://gist.github.com/DavidBuchanan314/b223bce114ec715a66f17f0b8af3afa3 https://gist.github.com/DavidBuchanan314/b223bce114ec715a66f...
But, for logo/icon sized bitmaps, you can generally get away without needing compression at all. A 128x128 1bpc image is a mere 2KB.
[1] discussed here https://news.ycombinator.com/item?id=38515571 https://news.ycombinator.com/item?id=38515571