pgmtoppm Command Examples

Colorize a PGM image. More information: https://netpbm.sourceforge.net/doc/pgmtoppm.html.

pgmtoppm {{[-b|-black]}} {{red}} {{[-w|-white]}} {{blue}} {{path/to/input.pgm}} > {{path/to/output.ppm}}

pgmtoppm {{[-m|-map]}} {{path/to/colormap.ppm}} {{path/to/input.pgm}} > {{path/to/output.ppm}}