Image MIME Reference
HEJ2K
JPEG 2000 Image (HEIF Container)
image/hej2k
VS
JPEG XR Image (HEIF Container)
image/jxra
JPEG-XR-(HEIF)
A complete technical comparison of JPEG 2000 Image (HEIF Container) and JPEG XR Image (HEIF Container) — covering compression, feature support, browser compatibility, magic bytes, and when to choose each format.
Equal browser support
Feature Support
| Feature | HEJ2K | JPEG-XR-(HEIF) |
|---|---|---|
| Transparency (Alpha) | Yes | Yes |
| Animation Support | ✕ No | ✕ No |
| Progressive Loading | Yes | Yes |
| 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
JPEG XR Image (HEIF Container)
image/jxra
Extension
.jxra
Container
HEIF / ISOBMFF (ISO/IEC 23008-12 / Annex F of ITU-T T.832)
Compression
Lossy / Lossless
Algorithm
JPEG XR (Lapped Biorthogonal Transform)
Color Depth
8-bit, 16-bit, 32-bit (Float)
Developed by
ISO/IEC JTC 1 / ITU-T
Released
2019
Magic Bytes
XX XX XX XX 66 74 79 70 6A 78 72 41
Browser Support Comparison
| Browser | HEJ2K | JPEG-XR-(HEIF) |
|---|---|---|
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
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
JPEG-XR-(HEIF)
JPEG-XR-(HEIF) Strengths
- Combines the deep color (32-bit float) and mathematically lossless compression of JPEG XR with the robust metadata architecture of HEIF
- Allows grouping multiple images, exposure brackets, or focal stacks into a single file collection
Limitations
- Practically non-existent software and operating system support compared to standard HEIC or legacy JPEG XR (.jxr)
- Zero web browser support, rendering it entirely unsuitable for public web deployment
- Eclipsed by modern standards like AVIF and JPEG XL which offer superior compression with much broader industry backing
When to choose which format
HEJ2K
Use HEJ2K when…
- Medical Imaging
- Geospatial Data
- Scientific Archiving
JPEG-XR-(HEIF)
Use JPEG-XR-(HEIF) when…
- Specialized Archival
- Experimental Imaging Workflows
- High Dynamic Range (HDR) Imaging