1Pnmquant User Manual(0)                                Pnmquant User Manual(0)
2
3
4

NAME

6       pnmquant - quantize the colors in a Netpbm image to a smaller set
7
8

SYNOPSIS

10       pnmquant  [-center|-meancolor|-meanpixel] [-floyd|-fs] [-nofloyd|-nofs]
11       [-spreadbrightness|-spreadluminosity] ncolors [pnmfile]
12
13

DESCRIPTION

15       This program is part of Netpbm(1).
16
17       pnmquant reads a PNM image as input.  It chooses ncolors colors to best
18       represent  the  image,  maps  the  existing colors to the new ones, and
19       writes a PNM image as output.
20
21       All options can be abbreviated to their shortest  unique  prefix.   You
22       may use two hyphens instead of one to designate an option.  You may use
23       either white space or equals signs  between  an  option  name  and  its
24       value.
25
26       This program is simply a combination of pnmcolormap and pnmremap, where
27       the colors of the input are remapped using a color map which is  gener‐
28       ated  from  the  colors  in that same input.  The options have the same
29       meaning as in those programs.  See their  documentation  to  understand
30       pnmquant.
31
32       It is much faster to call pnmcolormap and pnmremap directly than to run
33       pnmquant.  You save the overhead of the Perl interpreter  and  creating
34       two extra processes.  pnmquant is just a convenience.
35
36       pnmquant did not exist before Netpbm 9.21 (January 2001).  Before that,
37       ppmquant did the same thing, but only on PPM images.  ppmquant  contin‐
38       ues  to  exist,  but  is  only  a front end (for name compatibility) to
39       pnmquant.
40
41

SEE ALSO

43       pnmcolormap(1), pnmremap(1), ppmquantall(1), pamdepth(1), ppmdither(1),
44       ppmquant(1), pnm(1)
45
46
47
48netpbm documentation            22 October 2003        Pnmquant User Manual(0)
Impressum