PNM(5)

๐Ÿ“ฆ
version 11.13.03 ยท 3 versions
, in arch rolling, centos-stream 10, centos-stream 9, debian bookworm, debian trixie, fedora 43, fedora 44, ubuntu noble, ubuntu resolute, ubuntu stonking

๐Ÿ’– PNM โ€” the Netpbm superformat, bestie ๐Ÿ’–

okay so this is the manual page for pnm from the File Formats Manual section, and honestly? it's giving lore. let's get into it ๐Ÿซถ


โœจ NAME โœจ

pnm โ€” the Netpbm superformat ๐Ÿ’…


๐ŸŒธ DESCRIPTION ๐ŸŒธ

okay so bestie, the PNM format is literally just an abstraction of the PBM, PGM, and PPM formats. like, the name "PNM" refers collectively to PBM, PGM, and PPM. that's it, that's the whole vibe โœจ

the name "PNM" is an acronym derived from "Portable Any Map." and ngl, that derivation makes so much more sense if you consider it in the context of the other Netpbm format names: PBM, PGM, and PPM. iykyk ๐Ÿงš

the more general term "Netpbm format" refers to the PNM formats plus PAM. so PAM is the plus-one at the party, periodt.

PNM is principally used with Netpbm(1).

๐Ÿšจ okay here's a thing people get confused about, so listen up: besides being names of formats, PBM, PGM, PPM, and PNM are also names of classes of programs.

a PNM program can take PBM, PGM, or PPM input. and that's nothing special โ€” a PPM program can too, no cap. 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. it's giving main character energy fr fr. this is discussed more in the description of the netpbm programs" (1).

also "pnm" appears in the names of the most general Netpbm library routines(1), and some of those aren't even related to the PNM format at all. iconic honestly ๐Ÿ’€


๐ŸŒˆ INTERNET MEDIA TYPE ๐ŸŒˆ

no Internet Media Type (aka MIME type, content type) for PNM has been registered with the IANA, but the value image/x-portable-anymap is conventional. so like, that's the vibe we all agreed on, it's just not official ๐Ÿ’œ

and btw, 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. so like, if you can be specific, be specific, bestie ๐ŸŽ€


๐Ÿฆ‹ FILE NAME ๐Ÿฆ‹

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. so like โ€” name it whatever you want, but the group chat expects those suffixes, ok? ๐Ÿ˜Œ


โญ SEE ALSO โญ

  • ppm(1)
  • pgm(1)
  • pbm(1)
  • pam(1)
  • programs that process PNM(1)
  • libnetpbm(1)

๐Ÿ“œ DOCUMENT SOURCE ๐Ÿ“œ

this manual page was generated by the Netpbm tool makeman from HTML source. the master documentation is at:

http://netpbm.sourceforge.net/doc/pnm.html

and that's the whole page, bestie!! ๐Ÿซถ this came to you straight from the netpbm documentation, dated 27 November 2013, and it's the manual for The PNM Format(5). slay, go read the sourceforge page, mwah ๐Ÿ’–โœจ๐ŸŽ€

๐Ÿ“ฆ where this page comes from