109 lines
2.4 KiB
HTML
109 lines
2.4 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of ppmquantall</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>ppmquantall</H1>
|
|
Section: User Commands (1)<BR>Updated: 27 July 1990<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>
|
|
|
|
ppmquantall - run ppmquant on a bunch of files all at once, so they share a common colormap
|
|
<P>
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<B>ppmquantall</B>
|
|
|
|
[<B>-ext</B>
|
|
|
|
<I>extension</I>]
|
|
|
|
<I>ncolors ppmfile</I>
|
|
|
|
...
|
|
|
|
<P>
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
Takes a bunch of portable pixmap as input.
|
|
Chooses
|
|
<I>ncolors</I>
|
|
|
|
colors to best represent all of the images, maps the
|
|
existing colors to the new ones, and
|
|
<B>overwrites the input files</B>
|
|
|
|
with the new quantized versions.
|
|
<A NAME="ixAAC"></A>
|
|
<P>
|
|
|
|
If you don't want to overwrite your input files, use the
|
|
<B>-ext</B>
|
|
|
|
option. The output files are then named the same as the input files,
|
|
plus a period and the extension text you specify.
|
|
<P>
|
|
|
|
Verbose explanation: Let's say you've got a dozen pixmaps that you want
|
|
to display on the screen all at the same time. Your screen can only
|
|
display 256 different colors, but the pixmaps have a total of a thousand
|
|
or so different colors. For a single pixmap you solve this problem with
|
|
<I>ppmquant</I>;
|
|
|
|
<A NAME="ixAAD"></A>
|
|
this script solves it for multiple pixmaps. All it does is
|
|
concatenate them together into one big pixmap, run
|
|
<I>ppmquant</I>
|
|
|
|
on that, and then split it up into little pixmaps again.
|
|
<P>
|
|
|
|
(Note that another way to solve this problem is to pre-select a set of
|
|
colors and then use
|
|
<I>ppmquant</I>'s
|
|
|
|
<B>-map</B>
|
|
|
|
option to separately quantize each pixmap to that set.)
|
|
<P>
|
|
<A NAME="lbAE"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?1+ppmquant">ppmquant</A></B>(1),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?5+ppm">ppm</A>(5)</B>
|
|
|
|
<P>
|
|
<A NAME="lbAF"> </A>
|
|
<H2>AUTHOR</H2>
|
|
|
|
Copyright (C) 1991 by Jef Poskanzer.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<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:25 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|