Options (4)
booleanReplace the colors in an image with those in the specified color palette
Example:
pnmremap {{[-ma|-mapfile]}} {{path/to/palette_file.ppm}} {{path/to/input.pnm}} > {{path/to/output.pnm}}booleanUse Floyd-Steinberg dithering for representing colors missing in the color palette
Example:
pnmremap {{[-ma|-mapfile]}} {{path/to/palette_file.ppm}} {{[-fs|-floyd]}} {{path/to/input.pnm}} > {{path/to/output.pnm}}booleanUse the first color in the palette for representing colors missing in the color palette
Example:
pnmremap {{[-ma|-mapfile]}} {{path/to/palette_file.ppm}} {{[-fi|-firstisdefault]}} {{path/to/input.pnm}} > {{path/to/output.pnm}}-mbooleanUse the specified color for representing colors missing in the color palette
Example:
pnmremap {{[-ma|-mapfile]}} {{path/to/palette_file.ppm}} {{[-m|-missingcolor]}} {{color}} {{path/to/input.pnm}} > {{path/to/output.pnm}}Examples (4)
Replace the colors in an image with those in the specified color palette
pnmremap [-ma|-mapfile] path/to/palette_file.ppm path/to/input.pnm > path/to/output.pnmUse Floyd-Steinberg dithering for representing colors missing in the color palette
pnmremap [-ma|-mapfile] path/to/palette_file.ppm [-fs|-floyd] path/to/input.pnm > path/to/output.pnmUse the first color in the palette for representing colors missing in the color palette
pnmremap [-ma|-mapfile] path/to/palette_file.ppm [-fi|-firstisdefault] path/to/input.pnm > path/to/output.pnmUse the specified color for representing colors missing in the color palette
pnmremap [-ma|-mapfile] path/to/palette_file.ppm [-m|-missingcolor] color path/to/input.pnm > path/to/output.pnmmade by @shridhargupta | data from tldr-pages