rawtopgm Command Examples

Convert a raw greyscale image to a PGM image. More information: https://netpbm.sourceforge.net/doc/rawtopgm.html.

rawtopgm {{width}} {{height}} {{path/to/image.raw}} > {{path/to/output.pgm}}

rawtopgm {{path/to/image.raw}} > {{path/to/output.pgm}}

rawtopgm {{width}} {{height}} {{[-bt|-bottomfirst]}} {{path/to/image.raw}} > {{path/to/output.pgm}}

rawtopgm {{width}} {{height}} {{[-h|-headerskip]}} {{n}} {{path/to/image.raw}} > {{path/to/output.pgm}}

rawtopgm {{width}} {{height}} {{[-r|-rowskip]}} {{m}} {{path/to/image.raw}} > {{path/to/output.pgm}}

rawtopgm {{width}} {{height}} {{[-m|-maxval]}} {{n}} {{path/to/image.raw}} > {{path/to/output.pgm}}

rawtopgm {{width}} {{height}} -bpp {{1|2}} {{[-l|-littleendian]}} {{path/to/image.raw}} > {{path/to/output.pgm}}