pnmquant - quantize the colors in a Netpbm image to a smaller set
2. SYNOPSIS ▲
pnmquant [ -center | -meancolor | -meanpixel ] [ -floyd | -fs ] [ -nofloyd | -nofs ] [ -spreadbrightness | -spreadluminosity ] ncolors [ pnmfile ]
All options can be abbreviated to their shortest unique prefix. You may use two hyphens instead of one to designate an option. You may use either white space or equals signs between an option name and its value.
3. DESCRIPTION ▲
Reads a PNM image as input. Chooses ncolors colors to best represent the image, maps the existing colors to the new ones, and writes a PNM image as output. This program is simply a combination of
R pnmremap , where the colors of the input are remapped using a color map which is generated from the colors in that same input. The options have the same meaning as in those programs. See their documentation to understand
R pnmquant . It is much faster to call
pnmremap directly than to run
R pnmquant .
pnmquant is just a convenience.
ppmquant is an older program which does the same thing as
R pnmquant , but on only PPM images. It is, however, faster than either
R ppmcolormap / pnmremap .
4. SEE ALSO ▲
R pnmcolormap (1),
R pnmremap (1),
R ppmquantall (1),
R pnmdepth (1),
R ppmdither (1),
R ppmquant (1),
R pnm (5)
5. AUTHOR ▲
Written by Bryan Henderson