Convert HDR to XPM

Turn HDR images into XPM. The light is converted to 8-bit sRGB without tone mapping, so values brighter than white are clipped.

Converted in an isolated sandbox on our serversDeleted after 24 hours

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

Radiance HDR as an XPM image.The brightness is clipped to 8-bit sRGB. The result is C source text.

  1. What you get

    One XPM file, which is an X11 pixmap written as C source text. It holds a color palette and supports transparency.

  2. What gets clipped

    The light in an HDR file is converted to 8-bit sRGB without tone mapping. Values brighter than white are clipped, so very bright areas do not keep their extra brightness in the XPM.

HDR and XPM.What each format is.

The formats

From · HDR

Radiance HDR

Radiance HDR images with real-world brightness values.

Extensions
.hdr
MIME type
image/vnd.radiance
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 HDR to XPM conversion through the API, for your app or your agent.

terminal
$ cv convert photo.hdr photo.xpm
$ cv convert photo.hdr photo.xpm

Questions.What people ask about HDR to XPM.

01OF 04

No. The light is converted to 8-bit sRGB without tone mapping, and values brighter than white are clipped.

XPM is X PixMap, which stores images as C source. The output is an X11 pixmap written as C source text.

Yes. The XPM is written with a color palette, and it supports transparency.

A separate conversion exists for that direction: XPM to HDR.

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