.\" This man page was generated by the Netpbm tool 'makeman' from HTML source. Pnmquant User Manual - Online Linux Manual PageSection : 0
Updated : 09 February 2019
Source : netpbm documentation
NAMEpnmquant - quantize the colors in a Netpbm image to a smaller set .UN synopsis
SYNOPSISpnmquant [-center|-meancolor|-meanpixel] [-floyd|-fs] [-nofloyd|-nofs] [-spreadbrightness|-spreadluminosity] {[-norandom]|[-randomseed=n]} ncolors [pnmfile] 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. .UN description
DESCRIPTIONThis program is part of Netpbm(1). pnmquant reads a PNM image as input. It chooses ncolors colors to best represent the image, maps the existing colors to the new ones, and writes a PNM image as output. This program is simply a combination of pnmcolormap and pnmremap, 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 pnmquant. You may actually get fewer than ncolors colors in the output because
the method pnmcolormap uses to choose the best set of colors for the
image is not the same as the method pnmremap uses to determine the
best color from the set to represent an individual color. For example,
pnmcolormap may include salmon in the color map as the best
representative of a pink pixel in the input and include coral in the color
map as the best representative of an actual coral pixel in the input. But
pnmremap is free to use any color in the color map to represent that
pink pixel and would find coral is a closer match for pink than salmon and
therefore use coral for pink. pnmremap might not use salmon
for any pixel. This waste of a slot in the color map is a consequence of the approximate
method pnmcolormap uses in order to compute the color map with a
practical amount of computation. .UN separate
Running pnmcolormap and pnmremap SeparatelyIt is much faster to call pnmcolormap and pnmremap directly than to run pnmquant. You save the overhead of the Perl interpreter and creating two extra processes. pnmquant is just a convenience. Here is an example of the relationship between the programs: This:
$ pnmquant 256 myimage.pnm >/tmp/colormap.pnm >myimage256.pnm
does essentially this:
$ pnmcolormap 256 myimage.pnm >/tmp/colormap.pnm
$ pnmremap -mapfile=/tmp/colormap.pnm myimage.pnm >myimage256.pnm
.UN options
OPTIONSIn addition to the options common to all programs based on libnetpbm (most notably -quiet, see
Common Options ), pnmquant recognizes the following command line options: .UN pnmcolormapopt
Options Passed to pnmcolormapThese options control the selection of the palette. They are options to pnmcolormap(1). -center -meancolor -meanpixel -spreadbrightness -spreadluminosity .UN pnmremapopt
Options Passed to pnmremapThese options control which color from the palette the program uses to
replace a pixel of a certain color from the input. They are options to pnmremap(1). -floyd -fs -nofloyd -nofs -norandom -randomseed -norandom .UN history
HISTORYpnmquant did not exist before Netpbm 9.21 (January 2001). Before that, ppmquant did the same thing, but only on PPM images. ppmquant continues to exist, but is only a front end (for name compatibility) to pnmquant. -version did not exist before Netpbm 10.75 (June 2016). -norandom did not exist before Netpbm 10.82 (March 2018). .UN seealso
SEE ALSO"pnmcolormap(1), "pnmremap(1), "ppmquantall(1), "pamdepth(1), "ppmdither(1), "ppmquant(1), "pnm(1)
DOCUMENT SOURCEThis manual page was generated by the Netpbm tool 'makeman' from HTML source. The master documentation is at http://netpbm.sourceforge.net/doc/pnmquant.html 0
Johanes Gumabo
Data Size : 19,308 byte
man-pnmquant.1Build : 2024-12-05, 20:55 :
Visitor Screen : x
Visitor Counter ( page / site ) : 2 / 200,555
Visitor ID : :
Visitor IP : 3.138.134.247 :
Visitor Provider : AMAZON-02 :
Provider Position ( lat x lon ) : 39.962500 x -83.006100 : x
Provider Accuracy Radius ( km ) : 1000 :
Provider City : Columbus :
Provider Province : Ohio , : ,
Provider Country : United States :
Provider Continent : North America :
Visitor Recorder : Version :
Visitor Recorder : Library :
Online Linux Manual Page : Version : Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page : Library : lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page : Library : lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base : Version : Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base : Library : lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36
Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.
ERROR : Need New Coding : (rof_escape_sequence|91|pnmquant.1|1/2|\" This man page was generated by the Netpbm tool 'makeman' from HTML source. |.\" This man page was generated by the Netpbm tool 'makeman' from HTML source.
) (parse_manual_page_|249|pnmquant.1|1/2|\"|.\" This man page was generated by the Netpbm tool 'makeman' from HTML source.
) (parse_manual_page_|249|pnmquant.1|11|UN|.UN synopsis
) (parse_manual_page_|249|pnmquant.1|28|UN|.UN description
) (parse_manual_page_|249|pnmquant.1|62|UN|.UN separate
) (parse_manual_page_|249|pnmquant.1|92|UN|.UN options
) (parse_manual_page_|249|pnmquant.1|103|UN|.UN pnmcolormapopt
) (parse_manual_page_|249|pnmquant.1|125|UN|.UN pnmremapopt
) (parse_manual_page_|249|pnmquant.1|152|UN|.UN history
) (parse_manual_page_|249|pnmquant.1|165|UN|.UN seealso
)