Netpbm formats
(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) | + | '''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. |
− | + | ||
− | + | ||
== 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. | |
− | + | ||
− | + | {| class="wikitable" | |
− | + | ! Format | |
− | + | ! Signature | |
− | + | ! PRONOM | |
− | + | |- | |
+ | |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
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 |