Convert PFM to XPM

Turn PFM images into XPM. Values from 0 to 1 are shown as black to white without a brightness curve, and values outside that range are clipped, so depth or disparity maps need scaling first.

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 floats as an X PixMap.Values from 0 to 1 become black to white in a C source file.

  1. What you get

    One XPM file, an X11 pixmap written as C source text. It has a color palette and transparency.

    Values from 0 to 1 are shown as black to white, with no brightness curve applied.

  2. What gets clipped

    Values outside the range of 0 to 1 are clipped. A depth or disparity map often holds values outside that range, so scale it first.

  3. Going back

    To turn an XPM into a PFM again, use XPM to PFM. The page for every PFM conversion lists the other options for PFM files.

PFM and XPM.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 · XPM

X PixMap

X PixMap, images as C source.

Extensions
.xpm
MIME type
image/x-xpixmap
Kind
Images

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

terminal
$ cv convert photo.pfm photo.xpm
$ cv convert photo.pfm photo.xpm

Questions.What people ask about PFM to XPM.

01OF 04

Values from 0 to 1 are shown as black to white. No brightness curve is applied.

They are clipped. Scale the values into the range of 0 to 1 first if you want to keep the differences between them.

Yes. Depth and disparity maps need scaling first, because values outside 0 to 1 are clipped.

It is an X11 pixmap written as C source text. It has a color palette and transparency.

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