PPM / PNM
What is a PPM / PNM file?
The Portable Pixel Map (PPM) format is a lowest-common-denominator color image format developed by Jef Poskanzer as part of the Netpbm project. It stores pixels as uncompressed RGB triplets (Red, Green, Blue) in either a plain ASCII text format (P3 header) or a more efficient binary format (P6 header). The file structure is extremely minimal, consisting of a magic number identifier, dimensions (width and height), maximum color value, and the pixel data itself, making it easily parsable by simple scripts but inefficient for storage compared to compressed formats like JPEG or PNG.
How to open a PPM / PNM file
Native support for PPM files is absent in standard Windows or macOS photo viewers. Users typically require specialized image manipulation software to view or convert these files. GIMP (GNU Image Manipulation Program) and IrfanView are the primary tools for opening PPM files on desktop environments. On Linux systems, the Netpbm toolkit and ImageMagick suite provide command-line utilities for processing and converting PPM data.
- Full Name
- Portable Pixel Map
- Developed By
- Jef Poskanzer (Netpbm)
- Initial Release
- 1988
- MIME Type
- image/x-portable-pixmap