| 1 |
\ |
| 2 |
.\" This man page was generated by the Netpbm tool 'makeman' from HTML source. |
| 3 |
.\" Do not hand-hack it! If you have bug fixes or improvements, please find |
| 4 |
.\" the corresponding HTML page on the Netpbm website, generate a patch |
| 5 |
.\" against that, and send it to the Netpbm maintainer. |
| 6 |
.TH "Ppmquant User Manual" 1 "22 October 2003" "netpbm documentation" |
| 7 |
|
| 8 |
.SH NAME |
| 9 |
|
| 10 |
ppmquant - quantize the colors in a PPM image down to a specified number |
| 11 |
|
| 12 |
.UN synopsis |
| 13 |
.SH SYNOPSIS |
| 14 |
|
| 15 |
\fBppmquant\fP |
| 16 |
[\fB-floyd\fP|\fB-fs\fP] |
| 17 |
\fIncolors\fP |
| 18 |
[\fIppmfile\fP] |
| 19 |
\fBppmquant\fP |
| 20 |
[\fB-floyd\fP|\fB-fs\fP] |
| 21 |
[\fB-nofloyd\fP|\fB-nofs\fP] |
| 22 |
\fB-mapfile\fP |
| 23 |
\fImapfile\fP |
| 24 |
[\fIppmfile\fP] |
| 25 |
.PP |
| 26 |
All options can be abbreviated to their shortest unique prefix. You |
| 27 |
may use two hyphens instead of one to designate an option. You may |
| 28 |
use either white space or equals signs between an option name and its |
| 29 |
value. |
| 30 |
|
| 31 |
|
| 32 |
.UN description |
| 33 |
.SH DESCRIPTION |
| 34 |
.PP |
| 35 |
This program is part of |
| 36 |
.BR "Netpbm" (1)\c |
| 37 |
\&. |
| 38 |
.PP |
| 39 |
\fBppmquant\fP is obsolete. All it does now is invoke |
| 40 |
\fBpnmquant\fP or \fBpnmremap\fP. You should use one of those |
| 41 |
programs in any new program, or if you are modifying an old program, |
| 42 |
and your program does not have to work with a version of Netpbm before |
| 43 |
9.21 (January 2001). \fBppmquant\fP exists only for name |
| 44 |
compatibility. |
| 45 |
.PP |
| 46 |
\fBpnmquant\fP is fully backward compatible with \fBppmquant\fP |
| 47 |
\fIwithout\fP the \fB-mapfile\fP option; \fBpnmremap\fP is fully |
| 48 |
backward compatible with \fBppmquant\fP \fIwith\fP the |
| 49 |
\fB-mapfile\fP option. |
| 50 |
.PP |
| 51 |
Except with differences suggested by the syntax synopsis above, |
| 52 |
\fBppmquant\fP's function is the same as \fBpnmquant\fP and |
| 53 |
\fBpnmremap\fP. |
| 54 |
.PP |
| 55 |
Before Netpbm 10.19 (November 2003), \fBppmquant\fP was a completely |
| 56 |
separate program from \fBpnmquant\fP, and was a bona fide PPM program. |
| 57 |
That means if you gave it a PGM or PBM image as input, it would process it |
| 58 |
as if it were PPM and generate a PPM output. Now, since it is really a |
| 59 |
PNM program, it processes PBM and PGM inputs as what they are and produces |
| 60 |
the same kind of output. |
| 61 |
.PP |
| 62 |
Note: The reason \fBppmquant\fP was changed in Netpbm 10.19 is |
| 63 |
that for some time before that, \fBppmquant\fP had a serious bug that |
| 64 |
would have been difficult to fix -- it chose the wrong color set. |
| 65 |
Maintaining two versions of the same code did not make sense. |
| 66 |
|
| 67 |
.UN seealso |
| 68 |
.SH SEE ALSO |
| 69 |
.BR "pnmquant" (1)\c |
| 70 |
\&, |
| 71 |
.BR "pnmremap" (1)\c |
| 72 |
\&, |
| 73 |
.BR "pnmcolormap" (1)\c |
| 74 |
\&, |
| 75 |
.BR "pamseq" (1)\c |
| 76 |
\&, |
| 77 |
.BR "ppm" (1)\c |
| 78 |
\& |
| 79 |
|
| 80 |
.UN author |
| 81 |
.SH AUTHOR |
| 82 |
|
| 83 |
Copyright (C) 1989, 1991 by Jef Poskanzer. |
| 84 |
.SH DOCUMENT SOURCE |
| 85 |
This manual page was generated by the Netpbm tool 'makeman' from HTML |
| 86 |
source. The master documentation is at |
| 87 |
.IP |
| 88 |
.B http://netpbm.sourceforge.net/doc/ppmquant.html |
| 89 |
.PP |