Pngcrush is an optimizer for PNG (Portable Network Graphics) files. It can be run from a commandline in an MSDOS window, or from a UNIX or LINUX commandline.
Its main purpose is to reduce the size of the PNG IDAT datastream by trying various compression levels and PNG filter methods. It also can be used to remove unwanted ancillary chunks, or to add certain chunks including gAMA, tRNS, iCCP, and textual chunks.
Put your all png files into "workspace_in" folder;
batch_script.shto recompress png files:
All recompressed png files will be outputed into "workspace_out" folder;
Copy the files in "workspace_out" folder to your desired place;
Rm all files in "workspace_in" & "workspace_out" folders.
Note: The binary files under
./pngcrush/ were built by "GNU Make" (v3.81), you can build by yourself if want.
$ cd ./pngcrush $ make clean $ make $ cd -
Pngcrush is open source and may be used, modified, and redistributed by anyone without paying a fee. The license, embedded in the file
pngcrush.c, is equivalent but not identical to the libpng license found in the libpng file png.h.
The source except for pngcrush lib is also here granted for anyone by Kjuly.
The author of pngcrush is Glenn Randers-Pehrson ( email@example.com )
This repo is maintained by Kjuly ( firstname.lastname@example.org ). Based on pngcrush project, added
.batch_script.sh to do batch job easier.