128 lines
2.8 KiB
HTML
128 lines
2.8 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of pnmquant</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>pnmquant</H1>
|
|
Section: User Commands (1)<BR>Updated: 20 January 2002<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
<A NAME="ixAAB"></A>
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
pnmquant - quantize the colors in a Netpbm image to a smaller set
|
|
<P>
|
|
<A NAME="lbAC"> </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>]
|
|
|
|
|
|
<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>
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
Reads a PNM image as input. 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.
|
|
<A NAME="ixAAC"></A>
|
|
<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>.
|
|
|
|
<B>pnmquant</B>
|
|
|
|
is just a convenience.
|
|
<P>
|
|
<B>ppmquant</B>
|
|
|
|
is an older program which does the same thing as
|
|
<B>pnmquant</B>,
|
|
|
|
but on only PPM images. It is, however, faster than either
|
|
<B>pnmquant</B>
|
|
|
|
or
|
|
<B>ppmcolormap</B>/<B>pnmremap</B>.
|
|
|
|
<P>
|
|
<A NAME="lbAE"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?1+pnmcolormap">pnmcolormap</A></B>(1),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?1+pnmremap">pnmremap</A></B>(1),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?1+ppmquantall">ppmquantall</A></B>(1),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?1+pnmdepth">pnmdepth</A></B>(1),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?1+ppmdither">ppmdither</A></B>(1),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?1+ppmquant">ppmquant</A></B>(1),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?5+pnm">pnm</A></B>(5)
|
|
|
|
<P>
|
|
<A NAME="lbAF"> </A>
|
|
<H2>AUTHOR</H2>
|
|
|
|
Written by Bryan Henderson
|
|
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="1"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="2"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="3"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="4"><A HREF="#lbAE">SEE ALSO</A><DD>
|
|
<DT id="5"><A HREF="#lbAF">AUTHOR</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:05:24 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|