News for hackers. Stuff that matters.
Re:10 KB Club: With links to popular HN, Reddit, Lobsters th... by shakna on Monday December 28, 2020 @06:05AM (#25558270)
> For what it's worth, even a large 256x256 PNG favicon can fit within 1 KB to 2 KB size if properly optimized, say, using ImageOptim or another similar tool.

This is a heavily optimised PNG favicon [0], which is only 192x192. But without trashing the palette, I can't really deduce it further, and it's already 2.7K. Niether pngcrush nor imageoptim can do much with it.

[0] https://shatterealm.netlify.app/android-chrome-192x192.png

Re:10 KB Club: With links to popular HN, Reddit, Lobsters th... by lifthrasiir on Monday December 28, 2020 @02:05PM (#25562102)
I tried zopflipng [1] with the very expensive option suggested from the usage and got 2,493 bytes (original 2,740 bytes, nowhere practical as it took 3 minutes) so you don't have to sacrifice the palette, though I'm not sure if 16 or even 4 color palette will significantly alter the visual.

[1] https://github.com/google/zopfli

Re:10 KB Club: With links to popular HN, Reddit, Lobsters th... by shakna on Monday December 28, 2020 @05:41PM (#25564126)
It's already an 8bit grayscale image - significantly less than a 4 colour palette.

And whilst the server might use state of the art compression... There's still no way a much larger image is going to fit in the proposed 1-2K limit.