Netpbm formats

From Just Solve the File Format Problem
(Difference between revisions)
Jump to: navigation, search
(PRONOM)
(Cleanup)
Line 3: Line 3:
 
|subcat=Graphics
 
|subcat=Graphics
 
|extensions={{ext|pbm}} {{ext|pgm}}<br>{{ext|ppm}} {{ext|pnm}}<br>{{ext|pam}}
 
|extensions={{ext|pbm}} {{ext|pgm}}<br>{{ext|ppm}} {{ext|pnm}}<br>{{ext|pam}}
 +
|pronom={{PRONOM|fmt/408}},<br>{{PRONOM|fmt/405}}, others
 
}}
 
}}
 
== Overview ==
 
== Overview ==
Line 13: Line 14:
 
'''PPM''' (portable pixmap) is a color image format.
 
'''PPM''' (portable pixmap) is a color image format.
  
'''PNM''' (portable anymap) is not really a format, but is a collective name for PBM, PGM, and PPM.
+
'''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.
+
'''PAM''' (portable arbitrary map) is a more sophisticated format which supports everything the PBM, PGM, and PPM formats do, and then some. Some resources name this format "Portable Any Map", but that appears to be an error.
 
+
The PBM, PGM, and PPM formats come in two varieties: a text ("plain") format, and a binary ("raw") format. PAM is binary-only.
+
  
 
== 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.
  
* PBM, text: <code>P1</code> (PRONOM:{{PRONOM|x-fmt/164}})
+
The PBM, PGM, and PPM formats come in two varieties: a text ("plain") format, and a binary ("raw") format. PAM is binary-only.
* PGM, text: <code>P2</code> (PRONOM:{{PRONOM|fmt/407}})
+
 
* PPM, text: <code>P3</code> (PRONOM:{{PRONOM|x-fmt/178}})
+
{| class="wikitable"
* PBM, binary: <code>P4</code> (PRONOM:{{PRONOM|fmt/409}})
+
! Format
* PGM, binary: <code>P5</code> (PRONOM:{{PRONOM|fmt/406}})
+
! Signature
* PPM, binary: <code>P6</code> (PRONOM:{{PRONOM|fmt/408}})
+
! PRONOM
* PAM: <code>P7</code> (PRONOM:{{PRONOM|fmt/405}}, incorrectly named "Portable Any Map" as of 3/2013)
+
|-
 +
|PBM, text || <code>P1</code> || {{PRONOM|x-fmt/164}}
 +
|-
 +
|PGM, text || <code>P2</code> || {{PRONOM|fmt/407}}
 +
|-
 +
|PPM, text || <code>P3</code> || {{PRONOM|x-fmt/178}}
 +
|-
 +
|PBM, binary || <code>P4</code> || {{PRONOM|fmt/409}}
 +
|-
 +
|PGM, binary || <code>P5</code> || {{PRONOM|fmt/406}}
 +
|-
 +
|PPM, binary ||  <code>P6</code> || {{PRONOM|fmt/408}}
 +
|-
 +
|PAM || <code>P7</code> || {{PRONOM|fmt/405}}
 +
|}
  
 
== See also ==
 
== See also ==
Line 34: Line 47:
  
 
== Specifications ==
 
== Specifications ==
* [http://netpbm.sourceforge.net/doc/pbm.html PBM]
+
* [http://netpbm.sourceforge.net/doc/pbm.html PBM Format Specification]
* [http://netpbm.sourceforge.net/doc/pgm.html PGM]
+
* [http://netpbm.sourceforge.net/doc/pgm.html PGM Format Specification]
* [http://netpbm.sourceforge.net/doc/ppm.html PPM]
+
* [http://netpbm.sourceforge.net/doc/ppm.html PPM Format Specification]
* [http://netpbm.sourceforge.net/doc/pam.html PAM]
+
* [http://netpbm.sourceforge.net/doc/pam.html PAM Format Specification]
  
 
== Software ==
 
== Software ==
Line 43: Line 56:
  
 
== External links ==
 
== External links ==
* [[Wikipedia:Netpbm format]]
+
* [[Wikipedia:Netpbm format|Wikipedia: Netpbm format]]
* [[Wikipedia:PAM graphics format]]
+
* [[Wikipedia:PAM graphics format|Wikipedia: PAM graphics format]]

Revision as of 06:42, 18 March 2013

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

Contents

Overview

The Netpbm formats are a set of uncompressed 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 (portable arbitrary map) is a more sophisticated format which supports everything the PBM, PGM, and PPM formats do, and then some. Some resources name this format "Portable Any Map", but that appears to be an error.

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. PAM is binary-only.

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
PAM P7 fmt/405

See also

Specifications

Software

External links

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox