.TL Pnmquant User Manual .SH 1 pnmquant .LP Updated: 22 October 2003 .br Table Of Contents .SH 2 NAME .LP pnmquant - quantize the colors in a Netpbm image to a smaller set .SH 2 SYNOPSIS .LP \fBpnmquant\fR [\fB-center\fR|\fB-meancolor\fR|\fB-meanpixel\fR] [\fB-floyd\fR|\fB-fs\fR] [\fB-nofloyd\fR|\fB-nofs\fR] [\fB-spreadbrightness\fR|\fB-spreadluminosity\fR] \fIncolors\fR [\fIpnmfile\fR] .LP 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. .SH 2 DESCRIPTION .LP .LP This program is part of Netpbm. .LP \fBpnmquant\fR reads a PNM image as input. It chooses \fIncolors\fR colors to best represent the image, maps the existing colors to the new ones, and writes a PNM image as output. .LP This program is simply a combination of \fBpnmcolormap\fR and \fBpnmremap\fR, 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 \fBpnmquant\fR. .LP It is much faster to call \fBpnmcolormap\fR and \fBpnmremap\fR directly than to run \fBpnmquant\fR. You save the overhead of the Perl interpreter and creating two extra processes. \fBpnmquant\fR is just a convenience. .LP \fBpnmquant\fR did not exist before Netpbm 9.21 (January 2001). Before that, \fBppmquant\fR did the same thing, but only on PPM images. \fBppmquant\fR continues to exist, but is only a front end (for name compatibility) to \fBpnmquant\fR. .SH 2 SEE ALSO .LP \fBpnmcolormap\fR, \fBpnmremap\fR, \fBppmquantall\fR, \fBpamdepth\fR, \fBppmdither\fR, \fBppmquant\fR, \fBpnm\fR .br \l'5i' .SH 2 Table Of Contents .LP .IP \(bu NAME .IP \(bu SYNOPSIS .IP \(bu DESCRIPTION .IP \(bu SEE ALSO .LP