Netpbm formats

From Just Solve the File Format Problem
(Difference between revisions)
Jump to: navigation, search
Line 2: Line 2:
 
|formattype=electronic
 
|formattype=electronic
 
|subcat=Graphics
 
|subcat=Graphics
|extensions={{ext|pbm}}<br>{{ext|pgm}}<br>{{ext|ppm}}<br>{{ext|pnm}}<br>{{ext|pam}}
+
|extensions={{ext|pbm}} {{ext|pgm}}<br>{{ext|ppm}} {{ext|pnm}}<br>{{ext|pam}}
 
}}
 
}}
 
== Overview ==
 
== Overview ==
Line 17: Line 17:
 
'''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.
  
The PBM, PGM, and PPM formats come in two varieties: a text format, and a binary format. PAM is binary-only.
+
The PBM, PGM, and PPM formats come in two varieties: a text ("plain") format, and a binary ("raw") format. PAM is binary-only.
 +
 
 +
== Identification ==
 +
Each file begins with two ASCII characters, which serve as a signature.
 +
 
 +
* PBM, text: <code>P1</code>
 +
* PGM, text: <code>P2</code>
 +
* PPM, text: <code>P3</code>
 +
* PGM, binary: <code>P4</code>
 +
* PPM, binary: <code>P5</code>
 +
* PPM, binary: <code>P6</code>
 +
* PAM: <code>P7</code>
 +
 
 +
== See also ==
 +
* [[PFM]]
  
 
== Specifications ==
 
== Specifications ==

Revision as of 06:18, 13 March 2013

File Format
Name Netpbm formats
Ontology
Extension(s) .pbm .pgm
.ppm .pnm
.pam

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 not really a format, but is a collective name for PBM, PGM, and PPM.

PAM (portable arbitrary map) is a more sophisticated format which supports everything the PBM, PGM, and PPM formats do, and then some.

The PBM, PGM, and PPM formats come in two varieties: a text ("plain") format, and a binary ("raw") format. PAM is binary-only.

Identification

Each file begins with two ASCII characters, which serve as a signature.

  • PBM, text: P1
  • PGM, text: P2
  • PPM, text: P3
  • PGM, binary: P4
  • PPM, binary: P5
  • PPM, binary: P6
  • PAM: P7

See also

Specifications

Software

External links

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox