Convert PFM to EXR

Turn PFM images into OpenEXR. A half-float OpenEXR picture of the same size with ZIP compression, the floats taken unchanged as linear light, values above 1 included, without an alpha channel; a one-plane map becomes a gray picture.

Converted in an isolated sandbox on our serversDeleted after 24 hours

Drop PFM files on the dialor turn it to pick what to do

HDR float pixels in an OpenEXR file.The picture keeps its size and its float values, including those above 1.

  1. What you get

    One EXR file with the same width and height as the PFM. It is a half-float OpenEXR picture with ZIP compression.

    The float values are taken unchanged as linear light. Values above 1 are kept, so bright areas of an HDR image are not clipped to white.

  2. What changes

    The file has no alpha channel, so the picture is fully opaque.

    A PFM with one plane, such as a depth map, becomes a gray picture.

  3. Going back

    To turn an EXR into a PFM, use EXR to PFM. For other options, see every EXR conversion.

PFM and EXR.What each format is.

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 · EXR

OpenEXR

OpenEXR, the high dynamic range image format of visual effects work.

Extensions
.exr
MIME type
image/x-exr
Kind
Images

In your code.The same PFM to EXR conversion through the API, for your app or your agent.

terminal
$ cv convert photo.pfm photo.exr
$ cv convert photo.pfm photo.exr

Questions.What people ask about PFM to EXR.

01OF 04

Yes. The floats are taken unchanged as linear light, values above 1 included.

It becomes a gray picture in the EXR.

No. The output has no alpha channel.

No. The output is always a half-float picture with ZIP compression, and this conversion has no options.

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