summary refs log tree commit diff
path: root/pnmquant.html
blob: f86cc2e9ef8dd5e43966b6e96189f7e13041767b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML><HEAD><TITLE>Pnmquant User Manual</TITLE></HEAD>
<BODY>
<H1>pnmquant</H1>
Updated: 22 October 2003
<BR>
<A HREF="#index">Table Of Contents</A>

<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
pnmquant - quantize the colors in a Netpbm image to a smaller set

<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>

<B>pnmquant</B>
[<B>-center</B>|<B>-meancolor</B>|<B>-meanpixel</B>]
[<B>-floyd</B>|<B>-fs</B>]
[<B>-nofloyd</B>|<B>-nofs</B>]
[<B>-spreadbrightness</B>|<B>-spreadluminosity</B>]
<I>ncolors</I> [<I>pnmfile</I>]

<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>

<p>This program is part of <a href="index.html">Netpbm</a>.

<p><b>pnmquant</b> reads a PNM image as input.  It chooses <I>ncolors</I>
colors to best represent the image, maps the existing colors
to the new ones, and writes a PNM image as output.

<P>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.

<P>This program is simply a combination of <B>pnmcolormap</B> and
<B>pnmremap</B>, 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 <B>pnmquant</B>.

<P>It is much faster to call <B>pnmcolormap</B> and <B>pnmremap</B>
directly than to run <B>pnmquant</B>.  You save the overhead of the
Perl interpreter and creating two extra processes.  <B>pnmquant</B> is
just a convenience.

<p><b>pnmquant</b> did not exist before Netpbm 9.21 (January 2001).
Before that, <b>ppmquant</b> did the same thing, but only on PPM
images.  <b>ppmquant</b> continues to exist, but is only a front end
(for name compatibility) to <b>pnmquant</b>.

<A NAME="lbAE">&nbsp;</A>
<H2>SEE ALSO</H2>

<B><A HREF="pnmcolormap.html">pnmcolormap</A></B>,
<B><A HREF="pnmremap.html">pnmremap</A></B>,
<B><A HREF="ppmquantall.html">ppmquantall</A></B>,
<B><A HREF="pamdepth.html">pamdepth</A></B>,
<B><A HREF="ppmdither.html">ppmdither</A></B>,
<B><A HREF="ppmquant.html">ppmquant</A></B>,
<B><A HREF="pnm.html">pnm</A></B>

<HR>
<A NAME="index">&nbsp;</A>
<H2>Table Of Contents</H2>
<UL>
<LI><A HREF="#lbAB">NAME</A>
<LI><A HREF="#lbAC">SYNOPSIS</A>
<LI><A HREF="#lbAD">DESCRIPTION</A>
<LI><A HREF="#lbAE">SEE ALSO</A>
</UL>
</BODY>
</HTML>