Convert PFM to PNG
Turn PFM images into PNG. Same size, with values from 0 to 1 shown as black to white without a brightness curve.
Converted in an isolated sandbox on our serversDeleted after 24 hours
Drop PFM files on the dialor turn it to pick what to do
A PNG from floating-point pixels.The image keeps its width and height. Values from 0 to 1 become black to white.
What you get
A PNG at the same width and height as the PFM. Values from 0 to 1 are shown as black to white, without a brightness curve.
The conversion gives one file.
What gets clipped
Values outside the range from 0 to 1 are clipped. A depth or disparity map needs scaling first, so that its values fall between 0 and 1 before you convert it.
Options
Set Grayscale to turn colors into shades of gray, which often makes the file smaller. Set Max width or Max height to shrink a larger image while keeping its shape. Images that are already smaller stay as they are, so nothing is enlarged.
Set Rotate to turn the result clockwise by 90, 180 or 270 degrees.
When it fails
If the file could not be parsed, the conversion stops with
input_corrupted.
PFM and PNG.What each format is, and the options this conversion takes.
- 01 · grayscale
Grayscale
Turns colors into shades of gray, which often makes the file smaller.
- 02 · max_height
Max height (px)
Shrinks anything taller than this, keeping its shape. Anything shorter stays as it is, so nothing is ever enlarged.
1 to 20000 - 03 · max_width
Max width (px)
Shrinks anything wider than this, keeping its shape. Anything narrower stays as it is, so nothing is ever enlarged.
1 to 20000 - 04 · rotate
Rotate
Turns the result clockwise by a quarter, a half or three quarters.
90 · 180 · 270
The formats
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
PNG
Lossless raster images with an alpha channel. Screenshots, icons and graphics with sharp edges.
- Extensions
- .png
- MIME type
- image
/png - Kind
- Images
In your code.The same PFM to PNG conversion through the API, for your app or your agent.
$ cv convert photo.pfm photo.png$ cv convert photo.pfm photo.pngQuestions.What people ask about PFM to PNG.
Yes. The width and height stay the same, unless you set Max width or Max height to shrink it.
Values outside 0 to 1 are clipped. Scale the depth or disparity map first so its values fall in that range.
No. Values from 0 to 1 are shown as black to white without a brightness curve.
The file could not be parsed, and the conversion stops with input_corrupted.