Image MIME Reference
APNG
Animated Portable Network Graphics
image/vnd.mozilla.apng
VS
Radiance HDR
image/vnd.radiance
Radiance
A complete technical comparison of Animated Portable Network Graphics and Radiance HDR — covering compression, feature support, browser compatibility, magic bytes, and when to choose each format.
APNG wins on browser support
Feature Support
| Feature | APNG | Radiance |
|---|---|---|
| Transparency (Alpha) | Yes | ✕ No |
| Animation Support | Yes | ✕ No |
| Progressive Loading | Yes | ✕ No |
| HDR Support | ✕ No | Yes |
| EXIF Metadata | Yes | ✕ No |
| ICC Color Profile | Yes | ✕ No |
Animated Portable Network Graphics
image/vnd.mozilla.apng
Extension
.apng.png
Container
PNG Chunk Stream
Compression
Deflate (Lossless)
Algorithm
Deflate (zlib)
Color Depth
8-bit (Indexed), 24-bit (TrueColor), 32-bit (RGBA)
Developed by
Mozilla Corporation (Stuart Parmenter & Vladimir Vukićević)
Released
2004
Magic Bytes
89 50 4E 47 0D 0A 1A 0A
Radiance HDR
image/vnd.radiance
Extension
.hdr.pic.rgbe.xyze
Container
Radiance Information Header
Compression
Run-Length Encoding (RLE) / Uncompressed
Algorithm
Adaptive Run-Length Encoding (RLE)
Color Depth
32-bit (8-bit per channel RGB + 8-bit shared Exponent)
Developed by
Greg Ward (Lawrence Berkeley National Laboratory)
Released
1989
Magic Bytes
23 3F 52 41 44 49 41 4E 43 45
Browser Support Comparison
| Browser | APNG | Radiance |
|---|---|---|
|
|
✓ 59
|
✕ |
|
|
✓ 3
|
✕ |
|
|
✓ 8
|
✕ |
|
|
✓ 79
|
✕ |
|
|
✕ | ✕ |
APNG
APNG Strengths
- Supports 8-bit alpha transparency, completely solving the ugly 'white halo' problem inherent to GIFs
- Gracefully degrades; viewers that do not support APNG will render a perfectly valid, static PNG of the first frame
- Provides lossless compression that retains absolute pixel-perfect quality for UI elements and line art
Limitations
- Because it relies on lossless Deflate compression, file sizes for complex, video-like animations can be massive compared to lossy formats like WebP or AVIF
- Was initially rejected by the official PNG group, delaying its adoption for nearly a decade
- Lacks native hardware decoding acceleration, unlike video-based animated formats (like MP4 or WebM)
Radiance
Radiance Strengths
- Universally supported by almost every 3D modeling software, renderer, and game engine in existence
- RGBE encoding offers a brilliant balance between High Dynamic Range capability and small file size (compared to 32-bit float OpenEXR)
- Simple, easy-to-parse ASCII header followed by straightforward RLE binary data
Limitations
- Does not support alpha transparency (no way to store an isolated light source with a transparent background)
- The shared exponent architecture can occasionally introduce banding or color artifacts in extreme edge cases compared to true 16-bit/32-bit floating-point formats like OpenEXR
- Zero native browser support for 2D viewing
When to choose which format
APNG
Use APNG when…
- High-Quality Web Animations
- Stickers (Apple iMessage, LINE, Discord)
- UI Loaders with Alpha Transparency
- GIF Replacement
Radiance
Use Radiance when…
- Image-Based Lighting (IBL)
- 3D Environment Maps (HDRI Skydomes)
- Lighting Simulation
- VFX and CGI Rendering