Image MIME Reference
JPEG-2000
JPEG 2000 Core Image File
image/jp2
VS
Progressive JPEG (Legacy IE Alias)
image/pjpeg
PJPEG
A complete technical comparison of JPEG 2000 Core Image File and Progressive JPEG (Legacy IE Alias) — covering compression, feature support, browser compatibility, magic bytes, and when to choose each format.
PJPEG wins on browser support
Feature Support
| Feature | JPEG-2000 | PJPEG |
|---|---|---|
| Transparency (Alpha) | Yes | ✕ No |
| Animation Support | ✕ No | ✕ No |
| Progressive Loading | Yes | Yes |
| HDR Support | Yes | ✕ No |
| EXIF Metadata | Yes | Yes |
| ICC Color Profile | Yes | Yes |
JPEG 2000 Core Image File
image/jp2
Extension
.jp2.j2k.jpf.jpx.jpm
Container
JP2 (ISO/IEC 15444-1)
Compression
Lossy / Lossless
Algorithm
Discrete Wavelet Transform (DWT)
Color Depth
8-bit, 16-bit, 32-bit, 38-bit
Developed by
Joint Photographic Experts Group
Released
2000
Magic Bytes
00 00 00 0C 6A 50 20 20 0D 0A 87 0A
Progressive JPEG (Legacy IE Alias)
image/pjpeg
Extension
.jpeg.jpg.pjpeg.pjp.jfif
Container
JPEG (ISO/IEC 10918-1)
Compression
Lossy (DCT)
Algorithm
Discrete Cosine Transform (DCT)
Color Depth
8-bit, 12-bit
Developed by
Joint Photographic Experts Group / Microsoft (Alias)
Released
1992
Magic Bytes
FF D8 FF E0 (JFIF) / FF D8 FF E1 (Exif)
Browser Support Comparison
| Browser | JPEG-2000 | PJPEG |
|---|---|---|
|
|
✕ |
✓ All
|
|
|
✕ |
✓ All
|
|
|
✓ 5+
|
✓ All
|
|
|
✕ |
✓ All
|
|
|
✕ |
✓
|
JPEG-2000
JPEG-2000 Strengths
- Superior compression efficiency over baseline JPEG without introducing blocking artifacts
- True mathematically lossless compression available in the same format
- Extremely scalable: a single file can be decoded at various resolutions (thumbnails to full size) without loading the entire file
Limitations
- Very poor native web browser support prevents it from being a web standard
- High computational complexity makes encoding and decoding significantly slower than JPEG
- Early patent concerns and complex licensing hindered its initial adoption rate
PJPEG
PJPEG Strengths
- Progressive JPEGs (which this MIME type attempted to describe) provide excellent perceived loading speeds on slow connections by rendering a low-resolution preview first
- Files sent with this MIME type are fully backwards compatible with any standard JPEG decoder
Limitations
- It is a non-standard MIME type that violates IANA specifications
- Causes strict file upload validation scripts to fail if not explicitly whitelisted or mapped
- Creates unnecessary confusion, as the official image/jpeg MIME type already fully encompasses progressive encoding
When to choose which format
JPEG-2000
Use JPEG-2000 when…
- Digital Cinema (DCP)
- Medical Imaging (DICOM)
- Geospatial Data
- Archival Preservation
PJPEG
Use PJPEG when…
- Legacy Internet Explorer File Uploads
- Progressive Image Rendering (Historical context)