Image MIME Reference
DPX
Digital Picture Exchange
image/dpx
VS
Sony SR2 Raw Image
image/x-sony-sr2
Sony-SR2
A complete technical comparison of Digital Picture Exchange and Sony SR2 Raw Image — covering compression, feature support, browser compatibility, magic bytes, and when to choose each format.
Equal browser support
Feature Support
| Feature | DPX | Sony-SR2 |
|---|---|---|
| Transparency (Alpha) | Yes | ✕ No |
| Animation Support | ✕ No | ✕ No |
| Progressive Loading | ✕ No | ✕ No |
| HDR Support | Yes | Yes |
| EXIF Metadata | ✕ No | Yes |
| ICC Color Profile | ✕ No | Yes |
Digital Picture Exchange
image/dpx
Extension
.dpx
Container
DPX (SMPTE ST 268)
Compression
Uncompressed / RLE (Rarely used)
Algorithm
Uncompressed
Color Depth
8-bit, 10-bit, 12-bit, 16-bit, 32-bit (Float)
Developed by
SMPTE (Society of Motion Picture and Television Engineers)
Released
1994
Magic Bytes
53 44 50 58 (Big-endian) / 58 50 44 53 (Little-endian)
Sony SR2 Raw Image
image/x-sony-sr2
Extension
.sr2
Container
TIFF-based (Proprietary)
Compression
Uncompressed / Sony Proprietary Lossless
Algorithm
NoneSony Proprietary Lossless
Color Depth
12-bit (Per Channel)
Developed by
Sony Corporation
Released
2005
Magic Bytes
49 49 2A 00
Browser Support Comparison
| Browser | DPX | Sony-SR2 |
|---|---|---|
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
DPX
DPX Strengths
- Industry standard for transferring uncompressed, high-fidelity film and VFX data
- Rich industry-specific metadata including timecode, keykode, and film stock information
- Supports logarithmic color spaces (LogC, Cineon) to preserve the massive dynamic range of film negatives
Limitations
- Massive file sizes (e.g., a single 4K 10-bit frame is ~50MB, resulting in ~1.2GB per second at 24fps)
- Zero native support in web browsers or consumer OS image viewers
- Requires heavy-duty, fast storage infrastructure (RAID/NVMe) to playback in real-time
Sony-SR2
Sony-SR2 Strengths
- Retains raw, unprocessed sensor data from legacy cameras, allowing modern raw processors to extract vastly superior image quality than what was possible in 2005
- Utilizes a standard TIFF container structure, ensuring that community-maintained open-source decoding libraries (like LibRaw) can easily parse and maintain support for it indefinitely
Limitations
- Completely obsolete format that has not been utilized in a new camera release in over a decade
- MIME detection via magic bytes is unreliable due to TIFF header spoofing, requiring deeper EXIF inspection
- Cannot be natively viewed in web browsers or standard operating system image viewers without specialized decoders
When to choose which format
DPX
Use DPX when…
- Film Scanning
- Visual Effects (VFX)
- Digital Intermediate (DI)
- Color Grading
- Archival
Sony-SR2
Use Sony-SR2 when…
- Legacy Sony Cyber-shot/Alpha Photography
- Non-destructive Image Post-Processing
- Raw Imaging Archival