PAMTOPFM(1)
π pamtopfm β the Pamtopfm User Manual, bestie edition π
okay so you found the pamtopfm page in the General Commands Manual and you're like "what is this" β don't worry, I got you. sit down, grab a strawberry π, and let's get into it.
β¨ NAME β¨
pamtopfm β Convert Netpbm image to PFM (Portable Float Map)
like. that's the whole vibe. it converts. it's giving translator but make it pixels. π
π SYNOPSIS π
pamtopfm [-endian={big|little}] [-scale=float] [imagefile]
and before you come for me about the flags, some ground rules:
- All options can be abbreviated to their shortest unique prefix. yes bestie, you can be lazy, it's fine.
- You may use two hyphens instead of one. (
--scalegirlies rise up π«Ά) - You may separate an option name and its value with white space instead of an equals sign. the format police will not be called.
π¦ DESCRIPTION π¦
This program is part of Netpbm(1). iconic family. legendary lineage. π
pamtopfm reads a Netpbm image (PNM or PAM) and converts it to a PFM (Portable Float Map) image. simple as that, no notes.
The PFM (Portable Float Map) image format is a lot like PPM, but it uses floating point numbers with no maxval to achieve a High Dynamic Range (HDR) format. so like β glow up, but mathematically. β¨ That means it doesn't have a concept of absolute color, and it can represent generic light intensity information rather than just visual information like PPM does.
here's the example that lowkey makes it click: two pixels that are so close in intensity that the human eye cannot tell them apart are not visually distinct, so a visual image format such as PPM would have no reason to use different sample values for them. but an HDR format would. PPM is like "they look the same, who cares" and PFM is like "no actually, they're different and I will be respecting that." periodt. π
There are details of the PFM format in the "PFM Format Description" (1). go read it if you're that girl.
USC's HDRShop program and a program called Lefty use it. (shoutout to Lefty, whoever you are π«‘)
pamtopfm creates a color PFM image if its input is RGB (PPM) and a non-color PFM otherwise. it reads the room. it matches the energy. π
Use pfmtopam(1) to convert a PFM image to Netpbm format β that's the reverse trip, the return journey, the round trip back home. π
π OPTIONS π
In addition to the options common to all programs based on libnetpbm (most notably -quiet, see Common Options), pamtopfm recognizes the following command line options:
-scale=floatβ this specifies the scale factor of the PFM image. Scale factor is a component of the PFM format. Default is1.0. that's the factory setting bestie, don't touch it unless you know why you're touching it.-endian={big|little}β this specifies the endianness of the PFM image. The samples in the raster of a PFM image are 4 byte IEEE floating point numbers. A parameter of the IEEE format, and therefore the PFM format, is endianness, i.e. whether the specified bytes are ordered from low addresses to high addresses or vice versa.bigmeans big endian β the natural ordering;littlemeans little-endian, the Intel-friendly ordering. Default is whichever endianness the machine on whichpamtopfmruns uses internally, which results in the faster execution. it picks the one that's fastest for your machine because it's nothing if not efficient. π
ngl the endianness thing trips everybody up at first. it's just "which end of the number comes first," and your machine already has an opinion about it. the default is your machine's opinion. let it cook. π³
π SEE ALSO π
Netpbm(1), pfmtopam(1), pam(1)
πΈ HISTORY πΈ
pamtopfm was added to Netpbm in Release 10.22 (April 2004). vintage. retro. a classic that's still eating. π
π 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/pamtopfm.html
and that's the whole page bestie!! π this came to you straight from netpbm documentation, dated 10 April 2004 β yeah, 2004, we been knew, the lore is deep. now go convert something, you absolute icon. π¦β¨π
π¦ where this page comes from
- debian bookworm: netpbm 2:11.01.00-2 Β· MIT
- debian trixie: netpbm 2:11.10.02-1 Β· MIT
- 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