The pixel data in a PNG file is compressed using LZ77 algorithm (which tries to find repeated byte sequences in the source data), and then further compressed with Huffman algorithm.
In the simplest form, pngcrush can be told to generate a "crushed" file from an unoptimized one by using the following format on the command line: .