Hacker News new | ask | show | jobs
by mnw21cam 55 days ago
It's not the PNG encoding that causes the loss. The optimisers are literally creating a different image and then losslessly encoding it as PNG.

But it's also a valid point.

1 comments

Arguably the same is true of JPEG. The format itself can record all the frequencies in full detail (with some tiny rounding errors I'm ignoring here), but the optimizer creates a different image by cutting elements that are less important and wasteful of bits. And then that different image is encoded losslessly.