CmdID

CmdID / Commands

pnmcolormap

Create quantization color map for a PNM image. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Generate an image using only n_colors or less colors as close as possible to the input image

pnmcolormap n_colors path/to/input.pnm >path/to/output.ppmIdentify

Use the splitspread strategy for determining the output colors, possibly producing a better result for images with small details

pnmcolormap -splitspread n_colors path/to/input.pnm >path/to/output.ppmIdentify

Sort the resulting colormap, which is useful for comparing colormaps

pnmcolormap -sort path/to/input.pnm >path/to/output.ppmIdentify