Netpbm formats

From Just Solve the File Format Problem
(Difference between revisions)
Jump to: navigation, search
m (See also)
(Moved PAM to its own article)
Line 2: Line 2:
 
|formattype=electronic
 
|formattype=electronic
 
|subcat=Graphics
 
|subcat=Graphics
|extensions={{ext|pbm}}, {{ext|pgm}}, {{ext|ppm}}, {{ext|pnm}}, {{ext|pam}}
+
|extensions={{ext|pbm}}, {{ext|pgm}}, {{ext|ppm}}, {{ext|pnm}}
|pronom={{PRONOM|fmt/408}}, {{PRONOM|fmt/405}}, others
+
|pronom={{PRONOM|fmt/408}}, others
 +
|released=1988
 
}}
 
}}
 
The '''Netpbm formats''' are a family of simple raster image file formats, associated with the [[Netpbm]] library and suite of image processing utilities.
 
The '''Netpbm formats''' are a family of simple raster image file formats, associated with the [[Netpbm]] library and suite of image processing utilities.
  
 
== Formats ==
 
== Formats ==
'''PBM''' (portable bitmap) is a bi-level image format.
+
* '''PBM''' (portable bitmap) is a bi-level image format.
 
+
* '''PGM''' (portable graymap) is a grayscale 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.
'''PPM''' (portable pixmap) is a color image format.
+
* '''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.
 
+
'''PNM''' (portable anymap) is a collective name for PBM, PGM, and PPM. A .pnm file may use any of those formats.
+
 
+
'''PAM''' (portable arbitrary map) is a more sophisticated format which supports everything the PBM, PGM, and PPM formats do, and then some. Some resources incorrectly name this format "Portable Any Map".
+
  
 
== Identification ==
 
== Identification ==
 
Each file begins with two ASCII characters, which serve as a signature.
 
Each file begins with two ASCII characters, which serve as a signature.
  
The PBM, PGM, and PPM formats come in two varieties: a text ("plain") format, and a binary ("raw") format. PAM is binary-only.
+
The PBM, PGM, and PPM formats come in two varieties: a text ("plain") format, and a binary ("raw") format.
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 39: Line 36:
 
|-
 
|-
 
|PPM, binary ||  <code>P6</code> || {{PRONOM|fmt/408}}
 
|PPM, binary ||  <code>P6</code> || {{PRONOM|fmt/408}}
|-
 
|PAM || <code>P7</code> || {{PRONOM|fmt/405}}
 
 
|}
 
|}
  
 
== See also ==
 
== See also ==
 +
* [[PAM (Portable Arbitrary Map)]]
 
* [[PFM (Portable Float Map)]]
 
* [[PFM (Portable Float Map)]]
  
Line 50: Line 46:
 
* [http://netpbm.sourceforge.net/doc/pgm.html PGM Format Specification]
 
* [http://netpbm.sourceforge.net/doc/pgm.html PGM Format Specification]
 
* [http://netpbm.sourceforge.net/doc/ppm.html PPM Format Specification]
 
* [http://netpbm.sourceforge.net/doc/ppm.html PPM Format Specification]
* [http://netpbm.sourceforge.net/doc/pam.html PAM Format Specification]
 
  
 
== Software ==
 
== Software ==
Line 57: Line 52:
 
== External links ==
 
== External links ==
 
* [[Wikipedia:Netpbm format|Wikipedia: Netpbm format]]
 
* [[Wikipedia:Netpbm format|Wikipedia: Netpbm format]]
* [[Wikipedia:PAM graphics format|Wikipedia: PAM graphics format]]
 

Revision as of 16:17, 7 December 2013

File Format
Name Netpbm formats
Ontology
Extension(s) .pbm, .pgm, .ppm, .pnm
PRONOM fmt/408, others
Released 1988

The Netpbm formats are a family of simple raster image file formats, associated with the Netpbm library and suite of image processing utilities.

Contents

Formats

  • 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.

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 ("plain") format, and a binary ("raw") format.

Format Signature PRONOM
PBM, text P1 x-fmt/164
PGM, text P2 fmt/407
PPM, text P3 x-fmt/178
PBM, binary P4 fmt/409
PGM, binary P5 fmt/406
PPM, binary P6 fmt/408

See also

Specifications

Software

External links

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox