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]     {[-norandom]|[-randomseed=n]}
12       [-quiet] [-plain] ncolors [pnmfile]
13
14       All  options  can  be abbreviated to their shortest unique prefix.  You
15       may use two hyphens instead of one to designate an option.  You may use
16       either  white  space  or  equals  signs  between an option name and its
17       value.
18
19
20

DESCRIPTION

22       This program is part of Netpbm(1).
23
24       pnmquant reads a PNM image as input.  It chooses ncolors colors to best
25       represent  the  image,  maps  the  existing colors to the new ones, and
26       writes a PNM image as output.
27
28       This program is simply a combination of pnmcolormap and pnmremap, where
29       the  colors of the input are remapped using a color map which is gener‐
30       ated from the colors in that same input.  The  options  have  the  same
31       meaning  as  in  those programs.  See their documentation to understand
32       pnmquant.
33
34       It is much faster to call pnmcolormap and pnmremap directly than to run
35       pnmquant.   You  save the overhead of the Perl interpreter and creating
36       two extra processes.  pnmquant is just a convenience.
37
38       Here is an example of the relationship between the programs:
39
40       This:
41
42           $ pnmquant 256 myimage.pnm >/tmp/colormap.pnm >myimage256.pnm
43
44       does essentially this:
45
46           $ pnmcolormap 256 myimage.pnm >/tmp/colormap.pnm
47           $ pnmremap -mapfile=/tmp/colormap.pnm myimage.pnm >myimage256.pnm
48
49

HISTORY

51       pnmquant did not exist before Netpbm 9.21 (January 2001).  Before that,
52       ppmquant  did the same thing, but only on PPM images.  ppmquant contin‐
53       ues to exist, but is only a  front  end  (for  name  compatibility)  to
54       pnmquant.
55
56       -version did not exist before Netpbm 10.75 (June 2016).
57
58
59       -norandom did not exist before Netpbm 10.82 (March 2018).
60
61

SEE ALSO

63       pnmcolormap(1), pnmremap(1), ppmquantall(1), pamdepth(1), ppmdither(1),
64       ppmquant(1), pnm(1)
65

DOCUMENT SOURCE

67       This manual page was generated by the Netpbm tool 'makeman'  from  HTML
68       source.  The master documentation is at
69
70              http://netpbm.sourceforge.net/doc/pnmquant.html
71
72netpbm documentation             09 April 2013         Pnmquant User Manual(0)
Impressum