OptiPNG 0.5.4: Advanced PNG optimizer. Copyright (C) 2001-2006 Cosmin Truta. This program is open-source software. See LICENSE for more details. Portions of this software are based in part on the work of: Jean-loup Gailly and Mark Adler (zlib) Glenn Randers-Pehrson and the PNG Development Group (libpng) Miyasaka Masaru (BMP support) David Koblas (GIF support) Compiled with libpng version 1.2.12-optipng and zlib version 1.2.3-optipng Usage: optipng [options] files ... Files: Image files of type: PNG, BMP, GIF, PNM or TIFF Basic options: -h, -help show this help -v verbose mode / show copyright, version and build info -o optimization level (0-7) default 2 -i interlace type (0-1) default -k, -keep keep a backup of the modified files -q, -quiet quiet mode Advanced options: -zc zlib compression levels (1-9) default 9 -zm zlib memory levels (1-9) default 8 -zs zlib compression strategies (0-3) default 0-3 -zw zlib window size (32k,16k,8k,4k,2k,1k,512) -f PNG delta filters (0-5) default 0,5 -nb no bit depth reduction -nc no color type reduction -np no palette reduction -nz no IDAT recompression (also disable reductions) -fix enable error recovery -force write a new output, even if it is larger than the input -full produce a full report on IDAT (might reduce speed) -preserve preserve file attributes if possible -simulate run in simulation mode, do not create output files -out write output file to -dir write output file(s) to -log log messages to -- stop option switch parsing Optimization level presets: -o0 <=> -nz -o1 <=> [apply libpng heuristics] (1 trial) -o2 <=> -zc9 -zm8 -zs0-3 -f0,5 (8 trials) -o3 <=> -zc9 -zm8-9 -zs0-3 -f0,5 (16 trials) -o4 <=> -zc9 -zm8 -zs0-3 -f0-5 (24 trials) -o5 <=> -zc9 -zm8-9 -zs0-3 -f0-5 (48 trials) -o6 <=> -zc1-9 -zm8 -zs0-3 -f0-5 (120 trials) -o7 <=> -zc1-9 -zm8-9 -zs0-3 -f0-5 (240 trials) Notes: - The option names are case-insensitive and can be abbreviated. - Range arguments are cumulative; e.g. -f0 -f3-5 <=> -f0,3-5 -zs0 -zs1 -zs2-3 <=> -zs0,1,2,3 <=> -zs0-3 - The libpng heuristics consist of: -o1 <=> -zc9 -zm8 -zs0 -f0 (if PLTE is present) -o1 <=> -zc9 -zm8 -zs1 -f5 (if PLTE is not present) - The most exhaustive search -zc1-9 -zm1-9 -zs0-3 -f0-5 (1080 trials) is offered only as an advanced option, and it is not recomended. Examples: optipng file.png (default speed) optipng -o5 file.png (moderately slow) optipng -o7 file.png (very slow) optipng -i1 -o7 -v -full -sim experiment.png -log experiment.log