next up previous
Next: Usage Up: png2xp2 - a PNG Previous: Compilation and starting

Command-line options

Usage: png2xp2 [-a <param1>] [-f <param1>] [-h] [-i <param1>] [-j] [-m]
[-mw <param1>] [-mh <param1>] [-n] [-p] [-t <param1>] [-v] <file name>

-a - the minimal number of pixels a single figure can have (smaller are removed); default: 40
-f - non-default template file (default: ./template.xp2)
-h - this list
-i - dump the PNG image after bitmap operations
-j - the ,,adjust mode'', only filtering and edge detection (without time-costly pattern detection and noise removal); implies -n, because at this stage you most likely don't want to generate the map code yet
-m - scale the image to fit the maximum map size (default: not set)
-mw - maximum map width in pixels (default: 3500)
-mh - maximum map height in pixels (default: 3500)
-n - don't convert, just process the bitmap
-p - interprete the PNG image as a photo, that is, smooth out and detect edges (by default images are treated like drawings)
-t - treshold below which colors are changed to black (default: 125)
-v - print version and program info



Piotr Kamisiński 2005-05-12