Hacker Newsnew | comments | show | ask | jobs | submit login

That's really cool. I didn't realize you could do a lossless 24-bit palette with PNG.



A PNG is pretty much a zlib compressed bitmap.

-----


That's not true. PNG has some filters that pre-compress the image before sending it to zlib.

-----


I'd say that still falls under the realm of being "pretty much a zlib compressed bitmap", no?

-----


One of the few truly interesting articles on Smashing Magazine about optimizing pngs for their filters. It shows that yes, the filters are really a huge part of how pngs get compressed:

http://www.smashingmagazine.com/2009/07/15/clever-png-optimi...

-----


No, I wouldn't say that. Those filters make a huge difference to the compression ratio!

The png optimizers you see (optipng, pngcrush, etc)? What they do is carefully pick the optimum filters to get the best file size. So I'd say those filters were the most important part of the compression.

-----


You are correct. I almost qualified the statement as such, but figured "pretty much" was good enough to get my point across in a hurry. My point being that zlib compressed 24-bit RGB values in a PNG is normal. It's a different approach than lossy DCT quantization used in JPEG.

-----




Applications are open for YC Winter 2016

Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | DMCA | Apply to YC | Contact

Search: