Convert XPM to EXR

Turn XPM images into OpenEXR. A half-float OpenEXR picture of the same size with ZIP compression, its colors converted from sRGB to linear light and premultiplied by the transparency, as EXR tools expect.

Converted in an isolated sandbox on our serversDeleted after 24 hours

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

An XPM picture as a half-float EXR.Same size, with colors in linear light and ZIP compression.

  1. What you get

    An OpenEXR picture with the same width and height as the XPM. It is stored as half-float with ZIP compression, and you get one file.

    The colors are converted from sRGB to linear light, then premultiplied by the transparency, as EXR tools expect. Compositing and VFX programs can read the result in the form they work with.

  2. Transparency

    Opaque pictures get a solid alpha channel, so the EXR always has one. Where the XPM has transparent areas, the colors are multiplied by that transparency.

  3. No extra brightness

    Nothing comes out brighter than white. An XPM holds only ordinary display colors, so there is no wider range to carry over. The EXR format can hold such a range, but this picture does not use it.

    The conversion has no options. To go the other way, use EXR to XPM.

XPM and EXR.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 · 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 XPM to EXR conversion through the API, for your app or your agent.

terminal
$ cv convert photo.xpm photo.exr
$ cv convert photo.xpm photo.exr

Questions.What people ask about XPM to EXR.

01OF 04

Yes. The width and height stay the same.

The colors are converted from sRGB to linear light, which is what EXR tools expect. They are also premultiplied by the transparency.

Yes. Opaque pictures get a solid alpha channel, and transparent areas are carried over as transparency.

No. The XPM holds no range beyond white, so nothing comes out brighter than white.

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