Hacker News new | ask | show | jobs
by ledoge 89 days ago
> png (no compression)

To be clear, PNG only supports lossless compression, while WebP has separate lossy and lossless modes. AVIF can do lossless compression too, but you're usually better off using WebP or PNG (if you need >8 bpc) instead as it really isn't good at that.

2 comments

There is lossy PNG compression that works very well for images using a limited color palette (pngquant, lossypng, etc).
PNG can be lossy before the lossless step. You can take areas of near-matching pixel values and make them actually match, to work better with PNG's near neighbor compression. There are a few encoders that can do that.