The Netpbm formats are a family of simple raster image file formats, associated with the Netpbm library and suite of image processing utilities.
- PBM (portable bitmap) is a bi-level image format.
- PGM (portable graymap) is a grayscale image format.
- PPM (portable pixmap) is a color image format.
- PNM (portable anymap) is a collective name for PBM, PGM, and PPM. A .pnm file may use any of those formats.
- PAM: Refer to PAM (Portable Arbitrary Map). Although PAM is one of the Netpbm formats, it's different enough that it's best documented in a separate article.
Identifiers and Identification
Each file begins with two ASCII characters, which serve as a signature.
The PBM, PGM, and PPM formats come in two varieties: a text (or "plain" or "ASCII") format, and a binary (or "raw") format.
- PAM (Portable Arbitrary Map)
- PFM (Portable Float Map)
- PFS (Portable Floatmap Stream)
- XV thumbnail
The PBM/PGM/PPM/PNM formats are widely supported. Software listed here has been arbitrarily selected.
- http://samples.libav.org/image-samples/ → *.ppm, *.pgm