4 ms·
In case anyone else was suspicious of the 20k file size for a 512x512 PNG with essentially two colors - it's way off. I dropped it into Photoshop and exported a
by teej 9y ago
In case anyone else was suspicious of the 20k file size for a 512x512 PNG with essentially two colors - it's way off. I dropped it into Photoshop and exported as PNG and it spit out an identical file that weighs in at 6k.
- makapuf 9y agoyes, was also curious why : it's 16bits per channel color encoding instead of a paletted image.
- dawnerd 9y agoAnd if you run it through https://tinypng.com https://tinypng.com it should get down even smaller. PNG compresses surprisingly well when it’s basically two colors + alpha.
- Franciscouzo 9y agoWith the caveat that https://tinypng.com https://tinypng.com uses lossy compression.
- vladdanilov 9y agoPhotoshop: 6 705 bytes, 128 colors, 1-bit alpha only TinyPNG: 6 179 bytes, 92 colors Optimage: 5 761 bytes, 154 colors TinyPNG + Optimage (lossless): 5 226 bytes, 92 colors https://imgur.com/a/X9DnJ https://imgur.com/a/X9DnJ TinyPNG tends to use fewer colors. But its compressor is pretty suboptimal. I could reduce the image further by 15.4% with the tool I'm making (http://getoptimage.com http://getoptimage.com).
- majewsky 9y ago> 92 colors I see 3 colors (blue, white, transparent).
- vladdanilov 9y agoThe rest are needed to keep anti-aliased shapes smooth.
- mrb 9y ago3545 bytes: https://i.imgur.com/dHIaRh1.png https://i.imgur.com/dHIaRh1.png Used Gimp to convert to 4-bit paletted colormap, and processed through optipng. The original PNG icon was very clearly suboptimal at 20 225 bytes...
- ricardobeat 9y agoImgur converts everything both of you posted to JPEG...
- icebraining 9y agoWhat do you mean? It's serving me a PNG image.
- mkl 9y agoAre you sure? Zooming in here I see JPEG artifacts. Imgur also often lies about the image format in the URL.
- CapacitorSet 9y agoImageMagick's `identify` claims it's a PNG: $ curl -OL https://i.imgur.com/dHIaRh1.png $ identify dHIaRh1.png dHIaRh1.png PNG 512x512 512x512+0+0 8-bit sRGB 3545B 0.000u 0:00.000
- mkl 9y agoYes, I can reproduce that. I get served different versions depending on device/browser, and on my phone I got a 7883 byte JPEG!
- vladdanilov 9y agoIt appears to have the same problem as Photoshop where indexed images can only have 1-bit transparency. You can also losslessly compress it down to 2 803 bytes: https://imgur.com/a/SunI7 https://imgur.com/a/SunI7.
- egypturnash 9y agoNow add in the @2x and, um, what, @3x? @4x?