Image MIME Reference
AVIF
AV1 Image File Format
image/avif
VS
DjVu Document
image/vnd.djvu
DjVu
A complete technical comparison of AV1 Image File Format and DjVu Document — covering compression, feature support, browser compatibility, magic bytes, and when to choose each format.
AVIF wins on browser support
Feature Support
| Feature | AVIF | DjVu |
|---|---|---|
| Transparency (Alpha) | Yes | Yes |
| Animation Support | Yes | ✕ No |
| Progressive Loading | ✕ No | Yes |
| HDR Support | Yes | ✕ No |
| EXIF Metadata | Yes | ✕ No |
| ICC Color Profile | Yes | ✕ No |
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
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
Browser Support Comparison
| Browser | AVIF | DjVu |
|---|---|---|
|
|
✓ 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
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
When to choose which format
AVIF
Use AVIF when…
- Next-Gen Websites
- HDR Photography
- High-Quality Web Images
DjVu
Use DjVu when…
- Scanned Books and Manuals
- Digital Libraries (e.g., Internet Archive)
- Historical Document Archiving