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.

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  1. 01 · grayscale

    Grayscale

    Turns colors into shades of gray, which often makes the file smaller.

  2. 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
  3. 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
  4. 04 · rotate

    Rotate

    Turns the result clockwise by a quarter, a half or three quarters.

    90 · 180 · 270

The formats

From · PFM

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
To · PNG

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.

terminal
$ cv convert photo.pfm photo.png
$ cv convert photo.pfm photo.png

Questions.What people ask about PFM to PNG.

01OF 04

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.

More conversions.Other ways in and out of PFM and PNG.