Image MIME Reference
AVIF
AV1 Image File Format
image/avif
VS
JPEG 2000 Image Sequence (Obsolete)
image/hsj2
HSJ2
A complete technical comparison of AV1 Image File Format and JPEG 2000 Image Sequence (Obsolete) — covering compression, feature support, browser compatibility, magic bytes, and when to choose each format.
AVIF wins on browser support
Feature Support
| Feature | AVIF | HSJ2 |
|---|---|---|
| Transparency (Alpha) | Yes | Yes |
| Animation Support | Yes | Yes |
| Progressive Loading | ✕ No | Yes |
| HDR Support | Yes | Yes |
| EXIF Metadata | Yes | Yes |
| ICC Color Profile | Yes | Yes |
AV1 Image File Format
image/avif
Extension
.avif
Container
HEIF / ISOBMFF
Compression
AV1 Lossy / AV1 Lossless
Algorithm
AV1
Color Depth
8-bit, 10-bit, 12-bit
Developed by
Alliance for Open Media (AOMedia)
Released
2019
Magic Bytes
XX XX XX XX 66 74 79 70 61 76 69 66
JPEG 2000 Image Sequence (Obsolete)
image/hsj2
Extension
.hsj2
Container
HEIF / ISOBMFF (ISO/IEC 15444-16 Obsolete)
Compression
Lossy / Lossless
Algorithm
Motion JPEG 2000 (ISO/IEC 15444-3)
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 68 73 6A 32
Browser Support Comparison
| Browser | AVIF | HSJ2 |
|---|---|---|
|
|
✓ 85+
|
✕ |
|
|
✓ 93+
|
✕ |
|
|
✓ 16+
|
✕ |
|
|
✓ 121+
|
✕ |
|
|
✕ | ✕ |
AVIF
AVIF Strengths
- Best-in-class compression — typically 20–50% smaller than WebP at equivalent quality
- Native HDR and wide color gamut (BT.2020) support
- Supports 8, 10, and 12-bit color depth
Limitations
- Encoding is highly CPU-intensive — significantly slower than JPEG or WebP
- Requires Edge 121+ (not supported in earlier Edge versions)
- Limited support in native desktop image viewers
HSJ2
HSJ2 Strengths
- Historically attempted to combine Motion JPEG 2000 sequences with the flexible metadata capabilities of the HEIF container
- Supported mathematically lossless compression and scalable wavelet decoding
Limitations
- Officially deprecated by the standardization body (ISO/IEC JTC 1)
- Completely superseded by image/hej2k, rendering hsj2 files obsolete for any new development or archiving
- Zero web browser compatibility and negligible modern software support
When to choose which format
AVIF
Use AVIF when…
- Next-Gen Websites
- HDR Photography
- High-Quality Web Images
HSJ2
Use HSJ2 when…
- Legacy Archival
- Deprecated Workflows