PNGOUT TutorialPNGOUT is a tool which can optimize PNG files created by other programs. It can be run from the Windows Run dialog box or at the command prompt. PNGOUT can produce even smaller files than pngcrush -brute or optipng -o7, however, since PNGOUT does not automate trials, you will have to find the right options yourself (Note: PNGOUTWin supports trials). Here is a list of command line options that affect compression ratio:
Advanced options:
The purpose of PNGOUT is to optimize files created by other image tools. It is not designed to duplicate their functionality. These are the limitations:
|
Using the Run dialog boxDownload PNGOUT from: |
Color options: /c#
The number codes are from the official PNG specification. If no /c# option is specified, PNGOUT will choose the color type that can most efficiently store the image. For example, if the input file uses 256 or fewer distinct colors, PNGOUT will choose the palette color type (/c3) to compress the image. For palette and grayscale images (/c0, /c3), it will use the minimum bit depth needed to store the image (/d0). Using the /c# and /d# options lets you override the default behavior. |
Input file types:
Input file names are not case sensitive. The .png extension can be omitted from PNG filenames both for input and output. Windows clipboard option: /iIf the Windows clipboard contains a bitmap image you can add /i to the command line to use it as the input. Then you only need to specify the output filename. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Filter options: /f#
For palette images /f0 is best, and /f5 is often the best for grayscale or true color images, but not always. The default value is /f0 for palette images (/c3), and /f5 for everything else. Strategy options: /s#
The default method is Xtreme (/s0). It takes the most time to finish, but in most cases it achieves the best results. PNGOUT.EXE exit codes: (for advanced users - i.e. batch files)
|
Other options:
|
This PNGOUT tutorial was originally written by Kerry Watson, with updates by Ken Silverman and Matthew Fearnley
Last updated: 06/21/2009