Image MIME Reference
JNG
JPEG Network Graphics
image/x-jng
VS
JPEG 2000 Core Image File
image/jp2
JPEG-2000
A complete technical comparison of JPEG Network Graphics and JPEG 2000 Core Image File — covering compression, feature support, browser compatibility, magic bytes, and when to choose each format.
JPEG-2000 wins on browser support
Feature Support
| Feature | JNG | JPEG-2000 |
|---|---|---|
| Transparency (Alpha) | Yes | Yes |
| Animation Support | ✕ No | ✕ No |
| Progressive Loading | Yes | Yes |
| HDR Support | ✕ No | Yes |
| EXIF Metadata | Yes | Yes |
| ICC Color Profile | Yes | Yes |
JPEG Network Graphics
image/x-jng
Extension
.jng
Container
PNG-style Chunk Structure (JHDR, JDAT, IDAT, IEND)
Compression
Lossy (JPEG/DCT for color) / Lossless (Deflate for alpha mask)
Algorithm
JPEG (Discrete Cosine Transform)Deflate (LZ77)
Color Depth
8-bit, 12-bit, 24-bit (RGB), 32-bit (RGBA)
Developed by
MNG Development Group (Glenn Randers-Pehrson et al.)
Released
2001
Magic Bytes
8B 4A 4E 47 0D 0A 1A 0A
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
Browser Support Comparison
| Browser | JNG | JPEG-2000 |
|---|---|---|
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ |
✓ 5+
|
|
|
✕ | ✕ |
|
|
✕ | ✕ |
JNG
JNG Strengths
- Solved a massive technical hurdle in the early 2000s by combining high-compression lossy photographic data with crisp, 8-bit alpha transparency
- Utilized the highly robust, extensible chunk-based architecture of the PNG format
- Provided an excellent, bandwidth-saving alternative to massive 32-bit transparent PNGs for web design
Limitations
- Failed to achieve critical mass; browser vendors largely abandoned the MNG/JNG standard due to implementation complexity
- Completely obsolete today, having been superseded by natively supported, superior formats like WebP, AVIF, and HEIC
- Decoding requires a hybrid engine that can parse PNG chunks while simultaneously decoding a JPEG stream and a Deflate stream, complicating software support
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
When to choose which format
JNG
Use JNG when…
- Embedded frames in MNG animations
- Historical web graphics requiring lossy compression with transparency
JPEG-2000
Use JPEG-2000 when…
- Digital Cinema (DCP)
- Medical Imaging (DICOM)
- Geospatial Data
- Archival Preservation