OpenEXR

Also known as: EXR

On this page 7

OpenEXR, often shortened to EXR, is an open high-dynamic-range raster image format that stores pixel values as 16-bit or 32-bit floating-point numbers, together with any number of named channels, layers and metadata. Within 3D file formats & pipelines, it is the standard container for rendered frames, render passes and texture data that must keep scene-referred light values without clipping.

The format was developed at Industrial Light & Magic and released as open source in 2003. Today the Academy Software Foundation maintains the reference library, and virtually every renderer, compositing package and texturing tool in professional 3D graphics & animation reads and writes it.

How OpenEXR stores image data

OpenEXR stores an image as a set of independently named channels, each holding one numeric value per pixel. A beauty render usually has R, G, B and A, but a file can also hold depth, normals, motion vectors or object IDs. Channels are grouped into layers by dot notation, so diffuse.R and specular.R live side by side in one file.

Values are scene-referred, meaning they represent relative light intensity rather than display brightness. A bright window can hold a value of 50.0 while a shadow holds 0.002, and both survive later exposure changes. Color interpretation is described by metadata such as chromaticities, and pipelines usually manage it with OpenColorIO.

The format supports three pixel types, summarized below with their practical ranges.

Pixel typeBits per channelRange and precisionTypical content
HALF16Up to 65,504, about 3 decimal digitsBeauty renders, color passes
FLOAT32About 7 decimal digits, very wide rangeDepth, position, displacement
UINT32Whole numbers 0 to about 4.29 billionObject and material IDs
Pixel data types in OpenEXR

Key structural features of the format

OpenEXR files are organized either in scanline blocks or in tiles. Scanline files suit full-frame playback and compositing, while tiled files let a renderer load only the region it needs and can store mipmap or ripmap levels, which makes them efficient for large textures.

Each file defines a data window and a display window. The display window is the intended frame, and the data window covers the pixels actually stored, which can be larger for overscan or smaller for a cropped region. Since version 2.0, a file can contain multiple parts with different resolutions and deep data, where each pixel stores a list of samples at different depths.

These options matter for asset pipelines because they decide how much data a tool must read. A compositor that needs only the specular layer of a multi-part file can skip the other parts entirely, and a renderer that samples a distant texture can read a small mipmap level instead of the full-resolution image.

FeatureWhat it providesCommon use
Scanline layoutRows stored in blocksCompositing, playback
Tiled layoutFixed-size rectangular tilesLarge textures, partial loading
Mipmaps and ripmapsPrefiltered smaller levelsTexture filtering in renderers
Multi-part filesSeveral images in one fileStereo views, separate AOV parts
Deep dataMany samples per pixel with depthDeep compositing of volumes
Custom attributesArbitrary typed metadataCamera data, frame numbers
Structural options and their purpose

Compression methods and their trade-offs

OpenEXR offers several lossless and lossy compression schemes, and the choice affects file size, read speed and image fidelity. Lossless ZIP and PIZ are the safe defaults for production work, while lossy DWAA and DWAB, contributed by DreamWorks Animation, can shrink files several times over with little visible loss.

MethodTypeStrengthBest fit
ZIPLosslessGood ratio, 16-line blocksFinal renders, archives
ZIPSLosslessSingle-line blocks, fast random accessCompositing reads
PIZLosslessWavelet, strong on grainy imagesNoisy renders, film scans
PXR24Lossy for FLOATRounds 32-bit floats to 24 bitsDepth passes
B44 and B44ALossy, fixed rateFast decoding for playbackReal-time review
DWAA and DWABLossy, DCT basedVery small filesDailies, large AOV sets
Common OpenEXR compression options

A practical rule is to keep data passes lossless and apply lossy compression only to color passes. Lossy methods applied to normals, depth or IDs can introduce errors that break relighting or produce edge artifacts in mattes.

OpenEXR compared with other image formats

OpenEXR differs from display formats because it preserves unclipped linear light values rather than encoded display values. Formats such as PNG and JPEG store 8-bit or 16-bit integers for a defined output range, so overexposed regions clip permanently. Radiance HDR stores high dynamic range but only three channels with limited precision.

FormatDynamic rangeChannelsMain role
OpenEXRHigh, floating pointUnlimited, namedRenders, VFX, textures
Radiance HDRHigh, shared exponentRGB onlyLegacy environment maps
TIFF (16-bit)Limited integer rangeFew, fixedPrint, scanning
PNGLow, display referredRGB and alphaWeb graphics, UI
DDS and KTX 2.0Depends on GPU formatGPU block formatsReal-time textures
How OpenEXR relates to neighboring formats

Practical pitfalls in production pipelines

Most OpenEXR problems in pipelines come from color management and storage habits, not from the format itself. Because values are linear, an EXR viewed without a proper view transform looks dark and flat, which leads some artists to wrongly bake a gamma curve into the data.

  • Storing display-referred sRGB values in an EXR, which breaks linear compositing math.
  • Writing every pass as 32-bit FLOAT, doubling disk use where HALF is sufficient.
  • Using lossy compression on data passes such as normals or cryptomatte IDs.
  • Forgetting that HALF overflows above 65,504, which matters for very bright light sources.
  • Ignoring the data window, so overscan pixels are lost during conversion.

Explained without jargon

OpenEXR is a picture file made for computer graphics and film effects. Ordinary photos store brightness in a fixed range, so very bright spots turn pure white and the detail is gone. OpenEXR keeps the real brightness values, even very large or very small ones.

It can also hold many extra layers in one file. One layer might show only reflections, another only shadows, another only distance. Artists can adjust each layer later without rendering the whole scene again. That saves hours of computer time.

A typical use case

A small visual effects team renders a 240-frame shot of a car driving through a rainy street at night. Each frame is written as a multi-layer OpenEXR file in HALF precision with ZIP compression, containing the beauty image plus diffuse, specular, emission, depth, motion vector and cryptomatte passes.

During compositing, the client asks for brighter headlights and softer reflections on the wet asphalt. The compositor raises the emission layer by two stops and blurs the specular layer, using depth to add atmospheric haze. Because the values were never clipped, the headlights bloom naturally. The change takes an afternoon instead of a two-day re-render on the farm.