Optimize PNG image files by removing unnecessary PNG chunks thus losslessly reducing file size.
C++
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
exe
icon
screenshots
src
.gitattributes
.gitignore
LICENSE.md
README.md

README.md

  PNG Optimizer

Details of this project can be found on the PNG Optimizer page under:
http://www.CharmySoft.com/app/pngc.htm

Introduction

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.

Instruction

To use this code, compile it on Linux with this command:

g++ src/pngc.cpp -o pngc 

Then run the executable with

./pngc

Screenshots

Linux

Usage

Use the following command line to compress PNG files:

pngc [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:

  • IHDR
  • IDAT
  • PLTE
  • tRNS
  • IEND

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.

Downloading

PNG Optimizer can be obtained in many different ways. See details here:
http://www.CharmySoft.com/app/pngc.htm#download

Licensing

Please see the file named LICENSE.md.

Author

Contact