Linux Commands Examples

A great documentation place for Linux commands

pnmquant

quantize the colors in a Netpbm image to a smaller set


see also : pnmcolormap - pnmremap - ppmquantall - pnmdepth - ppmdither - ppmquant

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.


add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!

examples


no example yet ...

... Feel free to add your own example above to help other Linux-lovers !

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 pnmcolormap and 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 pnmquant.

It is much faster to call pnmcolormap and pnmremap directly than to run pnmquant. pnmquant is just a convenience.

ppmquant is an older program which does the same thing as pnmquant, but on only PPM images. It is, however, faster than either pnmquant or ppmcolormap/pnmremap.


see also

pnmcolormap , pnmremap , ppmquant all"> ppmquantall , pnmdepth , ppmdither , ppmquant, pnm


author

Written by Bryan Henderson

How can this site be more helpful to YOU ?


give  feedback