PNG Optimizer is a PNG image processing program used for compressing PNG files. It removes unnecessary PNG chunks, to loslessly reduce file size. For demonstration purpose, a pre-compiled version is included in the exe folder where you can find some executable files that can run on different platforms.
To use this code, compile it on Linux with this command:
g++ src/pngc.cpp -o pngc
Then run the executable with
Use the following command line to compress PNG files:
(On some operating systems this can be done by a drag and drop operation)
Warning: this will remove all unnecessary chunks. Backup before use.
After compression, only the following chunks will be left:
Any other chunks will be removed. This can losslessly reduce the PNG file size.
For more information about PNG chunks, read PNG Specification, Version 1.2.
Please see the file named LICENSE.md.
- Charlie Chen
founder of CharmySoft