Separate the color components of a PPM file into three separate PGM files. See also: rgb3toppm. More information: https://netpbm.sourceforge.net/doc/ppmtorgb3.html.
rgb3toppm
file.red
file.grn
file.blu
ppmtorgb3 {{path/to/file.ppm}}