CmdID

CmdID / Commands

pnmremap

Replace the colors in 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

Replace the colors in an image with those in the specified color palette

pnmremap -mapfile path/to/palette_file.ppm path/to/input.pnm >path/to/output.pnmIdentify

Use Floyd-Steinberg dithering for representing colors missing in the color palette

pnmremap -mapfile path/to/palette_file.ppm -floyd path/to/input.pnm >path/to/output.pnmIdentify

Use the first color in the palette for representing colors missing in the color palette

pnmremap -mapfile path/to/palette_file.ppm -firstisdefault path/to/input.pnm >path/to/output.pnmIdentify

Use the specified color for representing colors missing in the color palette

pnmremap -mapfile path/to/palette_file.ppm -missingcolor color path/to/input.pnm >path/to/output.pnmIdentify