ms2img -- mapsoft2 converter for raster images
ms2img <options> <input file> <output file>
ms2conv converts raster images (PNG, TIFF, GIF, JPG). Can be used to change image format, colormap or scale.
Show help message.
Show help message as POD template.
Be verbose.
Explicitely set image format: jpeg, png, gif, tiff
When writing TIFF, convert image to one of following forms: argb, rgb, grey, pal (default depends on the image).
Set compression algorythm for writing TIFF files: none, ccit_rle, ccit_rlew, ccit_fax3, ccit_fax4, lzw (default), jpeg, packbits
When writing greyscale TIFF, use MINISWHITE colors (default: 0).
Set JPEG quality for writing jpeg and tiff files (default 95).
When writing PNG, convert image to one of following forms: argb, rgb, grey, agrey, pal (default depends on the image).
Colormap size for reducing image colors (0..256, default 255, if 0 - use all colors). Image colors are reduced when saving to GIF, to PNG with --png_format=pal, to TIFF with --tiff_format=pal.
Alpha channel: none (default) -- remove it; full -- treat it equally with other channels; gif -- keep only fully-transparent color, if needed. When saving GIF file (which supports only fully transparent color) "full" works in the same way as "gif".
Analog of pnmcolormap options -spreadbrightness and -spreadluminosity. When a box in the color space is measured, color dimensions can be treated equally or with luminosity factors. Values: norm (default) or lumin.
Analog of pnmcolormap options -center, -meancolor, and -meanpixel. When a box in the color space is chosen, it can be represented by its geometrical center, or by averaging pixels or colors in it. Values: center, meanpix (default), meancol.
Analog of pnmcolormap options -splitpix, -splitcol, -splitdim. How to choose a box in the color space for splitting: by its maximum dimension, maximum number of pixels or colors in it. Values: maxdim (default), maxpix, maxcol.
Save colormap to PNG file.
Load colormap from PNG file.
Add a color to colormap (useful to add transparent color to non-transparent colormap) TODO: allow multiple colors.
Downscaling factor, integer value (default: 1)
Vladislav Zavjalov <slazav@altlinux.org>