

To distinguish ASCII and binary PGM forms, special ID markers are used: P2 (ASCII) and P5 (binary).Ī plaintext. pgm file is either a plaintext (ASCII) or binary file with a definition of an 8-bit grayscale bitmap image. Poskanzer), a Unix-originating cross-platform set of utilities to work with graphic images.Ī.

PNM was introduced with netpbm (initially Pbmplus by J. pgm extension denotes the open 'Portable GrayMap' (PGM) file type and format that belongs to the wider PNM (Portable aNy Map) series of elementary graphical formats.
