CmdID

CmdID / Commands

ppmchange

Change all pixels of one color in a PPM image to another color. 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

Exchange the first color in each oldcolor - newcolor pair with the second color

ppmchange oldcolor1 newcolor1 oldcolor2 newcolor2 ... path/to/input.ppm >path/to/output.ppmIdentify

Specify how similar colors must be in order to be considered the same

ppmchange -closeness percentage oldcolor1 newcolor1 oldcolor2 newcolor2 ... path/to/input.ppm >path/to/output.ppmIdentify

Replace all pixels not specified in the arguments by a color

ppmchange -remainder color oldcolor1 newcolor1 oldcolor2 newcolor2 ... path/to/input.ppm >path/to/output.ppmIdentify