commands.sh

pgmtoppm

all

Colorize a PGM image.

More info →

Options (3)

-bboolean

Map 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}}
-wboolean

Map 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}}
-mboolean

Map 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.ppm

Map 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.ppm
made by @shridhargupta | data from tldr-pages