summaryrefslogtreecommitdiffstats
path: root/upstream/fedora-rawhide/man5/pnm.5
blob: a1e68a0319bb6bcac0dac28e7ec9235fc0654d6d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
\
.\" This man page was generated by the Netpbm tool 'makeman' from HTML source.
.\" Do not hand-hack it!  If you have bug fixes or improvements, please find
.\" the corresponding HTML page on the Netpbm website, generate a patch
.\" against that, and send it to the Netpbm maintainer.
.TH "The PNM Format" 5 "27 November 2013" "netpbm documentation"

.SH NAME

pnm - Netpbm superformat

.UN description
.SH DESCRIPTION
.PP
The PNM format is just an abstraction of the PBM, PGM, and PPM
formats.  I.e. the name "PNM" refers collectively to
PBM, PGM, and PPM.
.PP
The name "PNM" is an acronym derived from "Portable
Any Map." This derivation makes more sense if you consider
it in the context of the other Netpbm format names: PBM, PGM, and PPM.
.PP
The more general term "Netpbm format" refers to the PNM
formats plus PAM.
.PP
PNM is principally used with
.BR "Netpbm" (1)\c
\&.
.PP
Note that besides being names of formats, PBM, PGM, PPM, and PNM
are also classes of programs.  A PNM program can take PBM, PGM, or PPM
input.  That's nothing special -- a PPM program can too.  But a PNM
program can often produce multiple output formats as well, and a PNM
program can see the difference between PBM, PGM, and PPM input and
respond to each differently whereas a PPM program sees everything as
if it were PPM.  This is discussed more in
.BR "the
description of the netpbm programs" (1)\c
\&.
.PP
"pnm" also appears in the names of the most general
.BR "Netpbm library routines" (1)\c
\&, some of which aren't even
related to the PNM format.

.UN internetmediatype
.SH INTERNET MEDIA TYPE
.PP
No Internet Media Type (aka MIME type, content type) for PNM has been
registered with the IANA, but the value \f(CWimage/x-portable-anymap\fP
is conventional.
.PP
Note that there are also conventional Internet Media Types for each of the
PNM subformats.  The recommended practice is to use those in preference to the
PNM code when it is convenient to do so.

.UN filename
.SH FILE NAME
.PP
There are no requirements on the name of a PNM file, but the convention is
to use the suffix "pbm", "pgm", or "ppm",
depending on the particular subformat, or "pnm" if it is not
convenient to distinguish the subformats.


.UN seealso
.SH SEE ALSO
.BR "ppm" (1)\c
\&,
.BR "pgm" (1)\c
\&,
.BR "pbm" (1)\c
\&,
.BR "pam" (1)\c
\&,
.BR "programs that process PNM" (1)\c
\&,
.BR "libnetpbm" (1)\c
\&
.SH DOCUMENT SOURCE
This manual page was generated by the Netpbm tool 'makeman' from HTML
source.  The master documentation is at
.IP
.B http://netpbm.sourceforge.net/doc/pnm.html
.PP