Convert XPM to PFM

Turn XPM 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 XPM files on the dialor turn it to pick what to do

Float pixels from an XPM image.Each color becomes a 32-bit float in an uncompressed PFM file.

  1. What you get

    One PFM file. Each color is stored as a 32-bit float, and the file is uncompressed.

    The values keep the 8- or 16-bit scale of the source, so they run up to 255 or 65535. They are not rescaled to the range 0 to 1.

  2. What it leaves behind

    Transparency is dropped. The PFM holds only the color values.

XPM and PFM.What each format is.

The formats

From · XPM

X PixMap

X PixMap, images as C source.

Extensions
.xpm
MIME type
image/x-xpixmap
Kind
Images
To · 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

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

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

Questions.What people ask about XPM to PFM.

01OF 04

Portable FloatMap is a format in the PNM family that stores floating-point pixels. It is used for HDR and depth maps.

No. They keep the 8- or 16-bit scale, up to 255 or 65535.

No. Transparency is dropped in this conversion.

No. The file is uncompressed, with each color stored as a 32-bit float.

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