Earlier quoted context omitted.
DEFLATE, which is used by PNG, is a general purpose LZ77-like compression algorithm suitable for all kinds of repetitive data.
PNG filters each horizontal line of the image data before running it through Deflate, with a pre-processing step. Each of the possible filters is very simple, but the difference between a great PNG exporter, a mediocre one, and a trash fire is the use of a heuristic to decide which of the pre-processing filters should be applied to each line of output. libpng, the free implementation, includes a heuristic that does a…
Yes, as a means of making the data fed into the compressor repetitive enough to benefit from the compression algorithm.
> So, no, a general purpose compression algorithm isn't very good for image data on its own.
That's not what I said.