Convert PNM to PFM
Turn PNM images into PFM. A Portable Float Map with each color as a 32-bit float, uncompressed.
Converted in an isolated sandbox on our serversDeleted after 24 hours
Drop PNM files on the dialor turn it to pick what to do
PNM images as floating-point PFM.Each color becomes a 32-bit float in one uncompressed file.
What you get
A Portable Float Map, the PNM family format for HDR and depth maps. Each color value is stored as a 32-bit float, and the file is uncompressed.
The conversion returns one file.
How values are scaled
The values keep their original scale. An 8-bit PNM stays at 0 to 255, and a 16-bit PNM stays at 0 to 65535. They are not rescaled to 0 to 1.
A program that expects PFM values between 0 and 1 needs to account for this. Check the range your software reads before you use the file.
Going back
To return to the simpler format, use PFM to PNM. For other conversions in the PNM family, see every PNM conversion.
PNM and PFM.What each format is.
The formats
Portable Anymap
Portable anymap images, the simplest raster format: PBM, PGM and PPM.
- Extensions
- .pnm .ppm .pgm .pbm
- MIME type
- image
/x -portable -anymap - Kind
- Images
Portable FloatMap
Floating-point pixels in the PNM family, used for HDR and depth maps.
- Extensions
- .pfm
- MIME type
- image
/x -portable -floatmap - Kind
- Images
In your code.The same PNM to PFM conversion through the API, for your app or your agent.
$ cv convert photo.pnm photo.pfm$ cv convert photo.pnm photo.pfmQuestions.What people ask about PNM to PFM.
No. The values keep their 8- or 16-bit scale, up to 255 or 65535.
No. The file is uncompressed, and each color is a 32-bit float.
PNM covers PBM, PGM and PPM images, with the extensions pnm, ppm, pgm and pbm.
No. This conversion has no options and returns one file.