Radiance RGBE Image (.hdr)

Radiance Standard

Radiance RGBE (HDR) is the foundational high dynamic range format developed for the Radiance synthetic imaging system, storing photometrically accurate luminance values using a shared 8-bit exponent.

Inspect & Metadata

Operating systems and file analyzers identify HDR files by inspecting the leading binary byte sequence:

Select or drop files here

100% private in-browser conversion - files never leave your device

or paste Ctrl+V
Zero-Network-Transmission Privacy Guarantee: 0 bytes uploaded to external servers. All processing occurred locally in your browser sandbox.

Byte-Level Header Signature (Magic Bytes)

Operating systems and file analyzers identify HDR files by inspecting the leading binary byte sequence:

HEX SIGNATURE (OFFSET 0):

23 3F 52 41 44 49 41 4E 43 45 0A

ASCII REPRESENTATION: #?RADIANCE\n

Standardization: Radiance Synthetic Imaging System Standard

Technical Specifications

Container ArchitectureASCII header ending with empty line followed by resolution string and binary RLE scanlines
CompressionAdaptive adaptive run-length encoding (RLE) applied per-channel scanline
Byte EndiannessBig-Endian / Network byte order
Color SpacesLinear Rec.709 RGB with CIE chromaticity coordinates
Channels & StructureRGBE: Red, Green, Blue (8-bit mantissas) + shared 8-bit Exponent
Max DimensionsPractically unlimited (32-bit unsigned resolution strings)
TransparencyNone (physical radiant luminance measurements)
Streaming & ProgressiveSequential scanline-by-scanline streaming playback

Technical Comparison Matrix: HDR vs Competitors

Technical AttributeHDR (Current)EXRTIFFJPEG
Pixel Encoding32-bit RGBE (shared 8-bit exponent)16-bit half / 32-bit float per channelInteger 8/16-bit or 32-bit float8-bit gamma-encoded integer
Primary Use Case360-degree environment lighting (IBL)VFX multi-pass compositingPhotography & prepressStandard web graphics
Dynamic Range Scope76 orders of magnitude (10^-38 to 10^38)Practically infinite float rangeVaries by bit depthLimited 8-bit SDR range
Channels SupportedRGB onlyUnlimited arbitrary channelsMultiple arbitrary channelsRGB / CMYK

Common Corruption Modes & Hex Recovery Guide

Image displays horizontal streak bands across the entire frame width.

Root Cause: Corrupted run-length count byte in scanline RLE decompression.

Recovery: Reconstruct damaged scanline markers using File2File HDR Repair or convert to EXR.

Security Analysis & Parser Attack Vectors

Radiance HDR decoders often parse ASCII header lines using unbounded string routines that can trigger stack buffer overflows.

Known Attack Vectors

  • Unbounded sprintf/sscanf calls when reading resolution string headers ('-Y %d +X %d').
  • Heap out-of-bounds write during malformed RLE scanline decoding.
  • Integer overflow when allocating destination 32-bit floating point buffers.

Defensive Best Practices: Validate ASCII header length and scanline dimensions before allocating image buffers.

Historical Origins & Milestones

2000Paul Debevec popularizes HDR image-based lighting (IBL) in computer graphics using Radiance .hdr files.
1997Adaptive scanline run-length encoding standardized to reduce file sizes.
1989Greg Ward invents the RGBE 32-bit pixel encoding and .hdr format at Lawrence Berkeley National Laboratory.

Key Advantages & Pros

  • Compact 32-bit per pixel memory footprint while spanning 76 orders of magnitude of physical light luminance.
  • Universal support across 3D rendering packages (Blender, Unreal Engine, Unity, Cinema 4D) for 360-degree environment maps.
  • Simple, robust file structure easily implemented across all software platforms.

Technical Limitations & Cons

  • Quantization banding can occur in extreme dark regions due to shared 8-bit exponent encoding.
  • RGB channels cannot store negative numbers or arbitrary multi-pass layers.
  • Largely superseded by OpenEXR for multi-pass visual effects production.

Interesting Technical Trivia

  • Every Radiance HDR file starts with the text header '#?RADIANCE' or '#?RGBE'.
  • The format was created to simulate physical architectural lighting in building design before structures were built.
  • Paul Debevec's iconic 1997 SIGGRAPH paper 'Recovering High Dynamic Range Radiance Maps from Photographs' used this format to revolutionize CGI lighting.

Frequently Asked Technical Questions

What is an HDRI file used for in 3D?

HDRI (.hdr) files are used as 360-degree panoramic environment maps to provide photorealistic real-world lighting, shadows, and reflections on 3D objects.

How does RGBE 32-bit encoding work?

Instead of storing three separate floating-point numbers, RGBE uses 8 bits each for red, green, and blue, plus a shared 8-bit exponent, fitting full HDR dynamic range into just 4 bytes per pixel.

Can I convert HDR to JPG?

Yes. File2File.app can tone-map and convert 32-bit Radiance HDR files into standard JPG or PNG images directly in your browser.