PNG1 is an open (free of patents) raster-graphics file format, developed by the W3C, that supports lossless image compression [2]. PNG exploits the intra-channel spatial and statistical redudancy (no color transform is used).
PNG [4, ?, 3] is based on DPCM (filtering in the PNG nomenclature) and the DEFLATE, which is a text compressor based on (Huffman coding and LZ77) [1]. All these “text” compressors are completely reversible.
Notice that DEFLATE is applied indepently to each channel. For example, in the case of a RGBA image, four independent DEFLATE code-streams are generated.
Available predictors (“filters”):
|
To estimate the redundancy we have basically two options:
[1] Nelson M. and Gailly J. The Data Compression Book. M&T Books, 1996.
[2] Greg Roelofs and Richard Koman. PNG: the definitive guide. O’Reilly & Associates, Inc., 1999.
[3] David Salomon. Data Compression: The Complete Reference. Springer Science & Business Media, 2004.
[4] Khalid Sayood. Lossless Compression Handbook. Elsevier, 2002.
1Notice that only the first part of the video describes PNG. The second part refers to QOI that is a different image compression scheme.
2Authors of The Data Compression Book [1]
3If the length of the compressed file is equal or larger than the length of the original file, then, for the compressor that we are using, there is not redundancy in the original representation.