Image MIME Reference
DjVu
DjVu Document
image/vnd.djvu
VS
JPEG XS Image (HEIF Container)
image/jxsi
JPEG-XS-(HEIF)
A complete technical comparison of DjVu Document and JPEG XS Image (HEIF Container) — covering compression, feature support, browser compatibility, magic bytes, and when to choose each format.
Equal browser support
Feature Support
| Feature | DjVu | JPEG-XS-(HEIF) |
|---|---|---|
| Transparency (Alpha) | Yes | Yes |
| Animation Support | ✕ No | ✕ No |
| Progressive Loading | Yes | ✕ No |
| HDR Support | ✕ No | Yes |
| EXIF Metadata | ✕ No | Yes |
| ICC Color Profile | ✕ No | Yes |
DjVu Document
image/vnd.djvu
Extension
.djvu.djv
Container
Interchange File Format (IFF)
Compression
JB2 (Bi-tonal Text) / IW44 (Wavelet Background) / BZZ (General Data/Text)
Algorithm
JB2IW44BZZ
Color Depth
1-bit (Foreground Text), 24-bit (Background)
Developed by
AT&T Labs (Yann LeCun, Léon Bottou, Patrick Haffner, Paul G. Howard)
Released
1996
Magic Bytes
41 54 26 54 46 4F 52 4D
JPEG XS Image (HEIF Container)
image/jxsi
Extension
.jxsi.jxs.hif
Container
HEIF / ISOBMFF (ISO/IEC 23008-12)
Compression
Lossy (Visually Lossless) / Mathematically Lossless
Algorithm
JPEG XS (ISO/IEC 21122-1)
Color Depth
8-bit, 10-bit, 12-bit, 14-bit, 16-bit
Developed by
Joint Photographic Experts Group (JPEG)
Released
2019
Magic Bytes
XX XX XX XX 66 74 79 70 6A 78 73 69
Browser Support Comparison
| Browser | DjVu | JPEG-XS-(HEIF) |
|---|---|---|
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
DjVu
DjVu Strengths
- Unmatched compression ratios for high-resolution scanned documents (often 5 to 10 times smaller than equivalent JPEG/TIFF-based PDFs)
- Separates text layers cleanly from backgrounds, allowing for highly legible text even at low file sizes
- Embedded OCR (Optical Character Recognition) text layers allow for fast searching
Limitations
- Lacks native support in modern operating systems and web browsers, requiring third-party software
- Largely superseded by PDF/A and modern PDF compression standards in standard corporate workflows
- Not suitable for vector graphics or born-digital documents (like Word exports), where standard PDF is far superior
JPEG-XS-(HEIF)
JPEG-XS-(HEIF) Strengths
- Provides sub-millisecond encoding and decoding latency while retaining visually lossless quality
- Brings the extensive metadata, EXIF, XMP, and color-profiling capabilities of the HEIF container to JPEG XS
- Allows grouping of multiple high-quality JPEG XS frames into a single collection file
Limitations
- Zero web browser compatibility, limiting it entirely to professional and industrial hardware workflows
- Extremely niche adoption compared to standard HEVC-based HEIC or raw JPEG XS codestreams
- Requires custom parsing logic to extract the JPEG XS codestream from the HEIF boxes
When to choose which format
DjVu
Use DjVu when…
- Scanned Books and Manuals
- Digital Libraries (e.g., Internet Archive)
- Historical Document Archiving
JPEG-XS-(HEIF)
Use JPEG-XS-(HEIF) when…
- Live Broadcast Infrastructure
- Medical Imaging & Archival
- Video over IP Networks
- Automotive & Drone Systems