Re:10 KB Club: With links to popular HN, Reddit, Lobsters th...
by susam on Monday December 28, 2020 @03:19AM
(#25557620)
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.
[ Parent
| on HN ]
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.
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.
Re:10 KB Club: With links to popular HN, Reddit, Lobsters th...
by fireattack on Monday December 28, 2020 @05:31AM
(#25558142)
> if properly optimized
It's more about the content of the image, the optimization can only do so much. If it's a pixel art or the palette is reduced to hell, then yeah, probably; otherwise I don't think you can display a 256x256 photo in 2KB.