Netpbm formats

From Just Solve the File Format Problem
(Difference between revisions)
Jump to: navigation, search
(Moved PAM to its own article)
Line 3: Line 3:
 
|subcat=Graphics
 
|subcat=Graphics
 
|extensions={{ext|pbm}}, {{ext|pgm}}, {{ext|ppm}}, {{ext|pnm}}
 
|extensions={{ext|pbm}}, {{ext|pgm}}, {{ext|ppm}}, {{ext|pnm}}
 +
|mimetypes={{mimetype|image/x-portable-anymap}}, others
 
|pronom={{PRONOM|fmt/408}}, others
 
|pronom={{PRONOM|fmt/408}}, others
 
|released=1988
 
|released=1988
Line 15: Line 16:
 
* '''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.
 
* '''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 ==
+
== Identifiers and 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.
+
The PBM, PGM, and PPM formats come in two varieties: a text (or "plain" or "ASCII") format, and a binary (or "raw") format.
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 24: Line 25:
 
! Signature
 
! Signature
 
! PRONOM
 
! PRONOM
 +
! MIME type
 
|-
 
|-
|PBM, text || <code>P1</code> || {{PRONOM|x-fmt/164}}
+
|PBM, text || <code>P1</code> || {{PRONOM|x-fmt/164}} ||rowspan="2"| {{mimetype|image/x-portable-bitmap}}, {{mimetype|image/x-portable-anymap}}
|-
+
|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}}
 
|PBM, binary || <code>P4</code> || {{PRONOM|fmt/409}}
 +
|-
 +
|PGM, text || <code>P2</code> || {{PRONOM|fmt/407}} ||rowspan="2"| {{mimetype|image/x-portable-graymap}}, {{mimetype|image/x-portable-anymap}}
 
|-
 
|-
 
|PGM, binary || <code>P5</code> || {{PRONOM|fmt/406}}
 
|PGM, binary || <code>P5</code> || {{PRONOM|fmt/406}}
 +
|-
 +
|PPM, text || <code>P3</code> || {{PRONOM|x-fmt/178}} ||rowspan="2"| {{mimetype|image/x-portable-pixmap}}, {{mimetype|image/x-portable-anymap}}
 
|-
 
|-
 
|PPM, binary ||  <code>P6</code> || {{PRONOM|fmt/408}}
 
|PPM, binary ||  <code>P6</code> || {{PRONOM|fmt/408}}
Line 48: Line 50:
  
 
== Software ==
 
== Software ==
 +
The PBM/PGM/PPM/PNM formats are widely supported. Software listed here has been arbitrarily selected.
 
* [[Netpbm]]
 
* [[Netpbm]]
 +
* [[ImageMagick]]
  
 
== External links ==
 
== External links ==
 
* [[Wikipedia:Netpbm format|Wikipedia: Netpbm format]]
 
* [[Wikipedia:Netpbm format|Wikipedia: Netpbm format]]

Revision as of 16:34, 7 December 2013

File Format
Name Netpbm formats
Ontology
Extension(s) .pbm, .pgm, .ppm, .pnm
MIME Type(s) image/x-portable-anymap, others
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.

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.

Format Signature PRONOM MIME type
PBM, text P1 x-fmt/164 image/x-portable-bitmap, image/x-portable-anymap
PBM, binary P4 fmt/409
PGM, text P2 fmt/407 image/x-portable-graymap, image/x-portable-anymap
PGM, binary P5 fmt/406
PPM, text P3 x-fmt/178 image/x-portable-pixmap, image/x-portable-anymap
PPM, binary P6 fmt/408

See also

Specifications

Software

The PBM/PGM/PPM/PNM formats are widely supported. Software listed here has been arbitrarily selected.

External links

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox