Image MIME Reference
HEJ2K
JPEG 2000 Image (HEIF Container)
image/hej2k
VS
Kodak Digital Camera Raw
image/x-kodak-dcr
Kodak-DCR
A complete technical comparison of JPEG 2000 Image (HEIF Container) and Kodak Digital Camera Raw — covering compression, feature support, browser compatibility, magic bytes, and when to choose each format.
Equal browser support
Feature Support
| Feature | HEJ2K | Kodak-DCR |
|---|---|---|
| Transparency (Alpha) | Yes | ✕ No |
| Animation Support | ✕ No | ✕ No |
| Progressive Loading | Yes | ✕ No |
| HDR Support | Yes | Yes |
| EXIF Metadata | Yes | Yes |
| ICC Color Profile | Yes | Yes |
JPEG 2000 Image (HEIF Container)
image/hej2k
Extension
.hej2
Container
HEIF / ISOBMFF (ISO/IEC 15444-16)
Compression
Lossy / Lossless
Algorithm
JPEG 2000HTJ2K
Color Depth
8-bit, 10-bit, 12-bit, 16-bit
Developed by
ISO/IEC JTC 1 / ITU-T
Released
2019
Magic Bytes
XX XX XX XX 66 74 79 70 6A 32 6B 69
Kodak Digital Camera Raw
image/x-kodak-dcr
Extension
.dcr
Container
TIFF/EP
Compression
Uncompressed / Lossless JPEG
Algorithm
NoneLossless JPEG (ITU-T81)
Color Depth
12-bit (Per Channel)
Developed by
Eastman Kodak Company
Released
1998
Magic Bytes
49 49 2A 00 or 4D 4D 00 2A
Browser Support Comparison
| Browser | HEJ2K | Kodak-DCR |
|---|---|---|
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
HEJ2K
HEJ2K Strengths
- Brings the extensive capabilities of the HEIF container (like EXIF/XMP, thumbnails, and depth maps) to JPEG 2000
- Supports mathematically lossless compression via wavelet transformation
- High scalability and progressive decoding out of the box
Limitations
- Extremely limited software support outside of niche industries
- Zero native compatibility with web browsers
- High computational complexity compared to simpler formats like JPEG or PNG
Kodak-DCR
Kodak-DCR Strengths
- Preserves the full dynamic range and uncompressed raw sensor data captured by foundational professional digital cameras
- Utilizes the standard TIFF container structure, ensuring that open-source decoders like LibRaw can easily parse and interpret the files long after official vendor support has ended
Limitations
- Completely obsolete proprietary format tied to camera hardware that is no longer manufactured
- Shares the TIFF magic header, leading to widespread misidentification by automated MIME detection libraries
- Cannot be natively viewed in web browsers or standard operating system image viewers without specialized codecs
When to choose which format
HEJ2K
Use HEJ2K when…
- Medical Imaging
- Geospatial Data
- Scientific Archiving
Kodak-DCR
Use Kodak-DCR when…
- Vintage Professional Digital Photography (Kodak DCS series)
- Non-destructive Image Post-Processing
- Raw Imaging Archival