Convert PNM to EXR

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

A PNM picture as an OpenEXR file.Same size, half-float, with colors in linear light and the transparency applied.

  1. What you get

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

    Opaque pictures get a solid alpha channel, so the EXR always carries transparency data.

  2. What changes

    The colors are converted from sRGB to linear light. They are also premultiplied by the transparency, as EXR tools expect. The stored values are therefore not the same numbers as in the PNM file.

    Nothing comes out brighter than white. The source holds no wider range, so the EXR does not gain any extra highlights.

  3. Going the other way

    To turn an EXR back into a PNM, use EXR to PNM. For other conversions of this format, see every PNM conversion.

PNM and EXR.What each format is.

The formats

From · PNM

Portable Anymap

Portable anymap images, the simplest raster format: PBM, PGM and PPM.

Extensions
.pnm .ppm .pgm .pbm
MIME type
image/x-portable-anymap
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 PNM to EXR conversion through the API, for your app or your agent.

terminal
$ cv convert photo.pnm photo.exr
$ cv convert photo.pnm photo.exr

Questions.What people ask about PNM to EXR.

01OF 04

Yes. The width and height stay the same.

Yes. Opaque pictures get a solid alpha channel. Pictures with transparency have their colors premultiplied by it.

No. Nothing comes out brighter than white, since the PNM holds no wider range.

PNM covers PBM, PGM and PPM images, and this conversion takes PNM as its source.

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