Where PGM comes from
PGM arrived with Poskanzer's pbmplus toolkit in 1988 alongside PBM and PPM, and the trio has been maintained as Netpbm ever since. Its enduring niche is scientific and machine-vision work: because the file is a header followed by raw samples in a declared range, an instrument can produce it and an algorithm can consume it without either side agreeing on a codec.