Options (3)
-bbooleanMap all greyscale values of the input image to all colors between the two specified colors
Example:
pgmtoppm {{[-b|-black]}} {{red}} {{[-w|-white]}} {{blue}} {{path/to/input.pgm}} > {{path/to/output.ppm}}-wbooleanMap all greyscale values of the input image to all colors between the two specified colors
Example:
pgmtoppm {{[-b|-black]}} {{red}} {{[-w|-white]}} {{blue}} {{path/to/input.pgm}} > {{path/to/output.ppm}}-mbooleanMap all greyscale values of the input image to colors according to the specified colormap
Example:
pgmtoppm {{[-m|-map]}} {{path/to/colormap.ppm}} {{path/to/input.pgm}} > {{path/to/output.ppm}}Examples (2)
Map all greyscale values of the input image to all colors between the two specified colors
pgmtoppm [-b|-black] red [-w|-white] blue path/to/input.pgm > path/to/output.ppmMap all greyscale values of the input image to colors according to the specified colormap
pgmtoppm [-m|-map] path/to/colormap.ppm path/to/input.pgm > path/to/output.ppmmade by @shridhargupta | data from tldr-pages