mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-23 20:02:09 +02:00
462 B
462 B
pnmquant
Quantize the colors in a PNM image into a smaller set. This command is a combination of
pnmcolormap
andpnmremap
and accepts the union of their options, except-mapfile
. See also:pnmquantall
. More information: https://netpbm.sourceforge.net/doc/pnmquant.html.
- Generate an image using only
n_colors
or less colors as close as possible to the input image:
pnmquant {{n_colors}} {{path/to/input.pnm}} > {{path/to/output.pnm}}