PNM(5)
๐ 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
- arch rolling: netpbm 10.86.51-2 ยท Artistic-1.0 AND GPL-2.0-only AND LGPL-2.0-only AND MIT
- centos-stream 10: netpbm-progs 11.09.00-1.el10 ยท BSD-3-Clause AND GPL-2.0-only AND LGPL-2.1-or-later AND GPL-3.0-or-later AND IJG AND MIT AND NTP AND PostgreSQL AND LicenseRef-MIT-CRL-Xim AND LicenseRef-Fedora-Public-Domain
- centos-stream 9: netpbm-progs 10.95.00-3.el9 ยท BSD and GPLv2 and IJG and MIT and Public Domain
- debian bookworm: netpbm 2:11.01.00-2 ยท MIT
- debian trixie: netpbm 2:11.10.02-1 ยท MIT
- fedora 43: netpbm-progs 11.10.00-2.fc43 ยท BSD-3-Clause AND GPL-2.0-only AND LGPL-2.1-or-later AND GPL-3.0-or-later AND IJG AND MIT AND NTP AND PostgreSQL AND LicenseRef-MIT-CRL-Xim AND LicenseRef-Fedora-Public-Domain
- fedora 43: netpbm-progs 11.13.00-1.fc43 ยท BSD-3-Clause AND GPL-2.0-only AND LGPL-2.1-or-later AND GPL-3.0-or-later AND IJG AND MIT AND NTP AND PostgreSQL AND LicenseRef-MIT-CRL-Xim AND LicenseRef-Fedora-Public-Domain
- fedora 44: netpbm-progs 11.13.00-2.fc44 ยท BSD-3-Clause AND GPL-2.0-only AND LGPL-2.1-or-later AND GPL-3.0-or-later AND IJG AND MIT AND NTP AND PostgreSQL AND LicenseRef-MIT-CRL-Xim AND LicenseRef-Fedora-Public-Domain
- ubuntu noble: netpbm 2:11.05.02-1.1build1 ยท MIT
- ubuntu resolute: netpbm 2:11.10.02-1build1 ยท MIT
- ubuntu stonking: netpbm 2:11.13.03+ds-2 ยท MIT
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms