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 type | Bits per channel | Range and precision | Typical content |
|---|---|---|---|
| HALF | 16 | Up to 65,504, about 3 decimal digits | Beauty renders, color passes |
| FLOAT | 32 | About 7 decimal digits, very wide range | Depth, position, displacement |
| UINT | 32 | Whole numbers 0 to about 4.29 billion | Object and material IDs |
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.
| Feature | What it provides | Common use |
|---|---|---|
| Scanline layout | Rows stored in blocks | Compositing, playback |
| Tiled layout | Fixed-size rectangular tiles | Large textures, partial loading |
| Mipmaps and ripmaps | Prefiltered smaller levels | Texture filtering in renderers |
| Multi-part files | Several images in one file | Stereo views, separate AOV parts |
| Deep data | Many samples per pixel with depth | Deep compositing of volumes |
| Custom attributes | Arbitrary typed metadata | Camera data, frame numbers |
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.
| Method | Type | Strength | Best fit |
|---|---|---|---|
| ZIP | Lossless | Good ratio, 16-line blocks | Final renders, archives |
| ZIPS | Lossless | Single-line blocks, fast random access | Compositing reads |
| PIZ | Lossless | Wavelet, strong on grainy images | Noisy renders, film scans |
| PXR24 | Lossy for FLOAT | Rounds 32-bit floats to 24 bits | Depth passes |
| B44 and B44A | Lossy, fixed rate | Fast decoding for playback | Real-time review |
| DWAA and DWAB | Lossy, DCT based | Very small files | Dailies, large AOV sets |
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.
| Format | Dynamic range | Channels | Main role |
|---|---|---|---|
| OpenEXR | High, floating point | Unlimited, named | Renders, VFX, textures |
| Radiance HDR | High, shared exponent | RGB only | Legacy environment maps |
| TIFF (16-bit) | Limited integer range | Few, fixed | Print, scanning |
| PNG | Low, display referred | RGB and alpha | Web graphics, UI |
| DDS and KTX 2.0 | Depends on GPU format | GPU block formats | Real-time textures |
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.