Options (2)
booleanUse the splitspread strategy for determining the output colors, possibly producing a better result for images with small details
Example:
pnmcolormap {{[-splits|-splitspread]}} {{n_colors}} {{path/to/input.pnm}} > {{path/to/output.ppm}}booleanSort the resulting colormap, which is useful for comparing colormaps
Example:
pnmcolormap {{[-so|-sort]}} {{path/to/input.pnm}} > {{path/to/output.ppm}}Examples (3)
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.ppmUse the splitspread strategy for determining the output colors, possibly producing a better result for images with small details
pnmcolormap [-splits|-splitspread] n_colors path/to/input.pnm > path/to/output.ppmSort the resulting colormap, which is useful for comparing colormaps
pnmcolormap [-so|-sort] path/to/input.pnm > path/to/output.ppmmade by @shridhargupta | data from tldr-pages