Products » mBooster » Technical Support » mBooster documentation » Ch6-mBoosterPng User Guide
mBoosterPng is a PNG optimizer minimizing the size of PNG files by compressing the IDAT chunks with Innaworks' mBoosterZip deflate algorithm. mBoosterPng is complementary with other PNG optimizers such as optiPng (http://optipng.sourceforge.net/) and advPNG (http://advancemame.sourceforge.net). mBoosterPng is integrated into mBooster, but is also available as a standalone command-line program. This section describes the behavior of the standalone command-line version of mBoosterPng.
mBoosterPng takes a set of input PNG files and recompresses them, creating a file in the output directory for each recompressed PNG file.
Note: mBoosterPng Evaluation Version does not generate any output PNG files, but instead can only display the sizes of the PNG files produced.
| Tips mBoosterPng should always be put at the end of the PNG optimization toolchain, after standard PNG optimizers such as optiPng and advPNG. |
mBoosterPng [[-<option>[ value]]...] <outputDir> <input...>
File arguments:
| <outputDir> | The directory to output PNG files to, preserving the directory structure of the input. If it does not exist, it will be created. |
| <input...> | A list of input file names and/or input directories. Any files matching the PNG file format regardless of extension will be recompressed. |
| -r | Recurse into subdirectories. This has no effect if <input...> does not contain directories. |
| -max_idat_data_size <value> | This property defines the maximum size of compressed data in each IDAT chunk in the recompressed PNG. The default is 0, no limit. |
| -keep_all_chunks | Keep all chunks within the input PNG files. By default this is off, so we only keep the compulsory chunks, and the tRNS (transparency) chunk. |
| -no_compress | Compress data chunks into store mode, i.e. with no compression. By default this is off, for the normal case we compress data chunks as much as possible. |
Note:
If the full pathname of a file or directory is not supplied, it is assumed to be a file or subdirectory directly under the current working directory.