Image MIME Reference
JPX
JPEG 2000 Part 2 (Extended)
image/jpx
VS
Progressive JPEG (Legacy IE Alias)
image/pjpeg
PJPEG
A complete technical comparison of JPEG 2000 Part 2 (Extended) 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 | JPX | PJPEG |
|---|---|---|
| Transparency (Alpha) | Yes | ✕ No |
| Animation Support | Yes | ✕ No |
| Progressive Loading | Yes | Yes |
| HDR Support | Yes | ✕ No |
| EXIF Metadata | Yes | Yes |
| ICC Color Profile | Yes | Yes |
JPEG 2000 Part 2 (Extended)
image/jpx
Extension
.jpx.jpf
Container
ISOBMFF / JPX (ISO/IEC 15444-2)
Compression
Lossy / Lossless
Algorithm
Discrete Wavelet Transform (DWT)
Color Depth
8-bit, 16-bit, 32-bit, 38-bit
Developed by
Joint Photographic Experts Group (JPEG)
Released
2002
Magic Bytes
00 00 00 0C 6A 50 20 20 0D 0A 87 0A ... 66 74 79 70 6A 70 78 20
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 | JPX | PJPEG |
|---|---|---|
|
|
✕ |
✓ All
|
|
|
✕ |
✓ All
|
|
|
✕ |
✓ All
|
|
|
✕ |
✓ All
|
|
|
✕ |
✓
|
JPX
JPX Strengths
- Removes the color space limitations of baseline JP2, adding native support for CMYK, CIE Lab, and custom vendor color spaces
- Supports multiple codestreams in a single file, allowing for rich compositing and animation
- Enables fragmented files where image data and metadata can reside in separate physical files via data references
Limitations
- Extremely complex specification makes full software implementation rare, leading to compatibility issues
- Zero web browser support, rendering it unsuitable for public internet distribution
- Often overkill for standard imaging tasks where baseline JP2 or modern alternatives like AVIF suffice
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
JPX
Use JPX when…
- Prepress & Commercial Printing (CMYK)
- Geospatial Data
- Archival Preservation
- Medical Imaging
PJPEG
Use PJPEG when…
- Legacy Internet Explorer File Uploads
- Progressive Image Rendering (Historical context)