Image MIME Reference
FLIF
Free Lossless Image Format
image/flif
VS
JPEG 2000 Image (HEIF Container)
image/hej2k
HEJ2K
A complete technical comparison of Free Lossless Image Format and JPEG 2000 Image (HEIF Container) — covering compression, feature support, browser compatibility, magic bytes, and when to choose each format.
Equal browser support
Feature Support
| Feature | FLIF | HEJ2K |
|---|---|---|
| Transparency (Alpha) | Yes | Yes |
| Animation Support | Yes | ✕ No |
| Progressive Loading | Yes | Yes |
| HDR Support | Yes | Yes |
| EXIF Metadata | Yes | Yes |
| ICC Color Profile | Yes | Yes |
Free Lossless Image Format
image/flif
Extension
.flif
Container
FLIF Bitstream
Compression
Lossless (MANIAC Entropy Coding)
Algorithm
MANIAC (Meta-Adaptive Near-zero Integer Arithmetic Coding)
Color Depth
1-bit to 16-bit (Per Channel), Grayscale, RGB, RGBA, CMYK
Developed by
Jon Sneyers and Pieter Wuille (Cloudinary)
Released
2015
Magic Bytes
46 4C 49 46
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
Browser Support Comparison
| Browser | FLIF | HEJ2K |
|---|---|---|
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
FLIF
FLIF Strengths
- Achieves some of the highest lossless compression ratios ever developed for raster images
- Incredible progressive decoding allows an image to be highly recognizable even after only 5% of the file has been downloaded
- Supports animations and complex alpha channels losslessly
Limitations
- Officially abandoned in favor of JPEG XL
- Zero native support in web browsers or standard operating system previewers
- Encoding speed can be significantly slower than standard PNG or WebP compression
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
When to choose which format
FLIF
Use FLIF when…
- Archival of Uncompressed Image Assets
- Bandwidth-Constrained Progressive Image Loading (Historical)
- Medical and Scientific Imaging Storage
HEJ2K
Use HEJ2K when…
- Medical Imaging
- Geospatial Data
- Scientific Archiving