JPEG Network Graphics
image/x-jng
Released 2001
· by MNG Development Group (Glenn Randers-Pehrson et al.)
The image/x-jng MIME type represents the JPEG Network Graphics (JNG) format. Created by the developers of the PNG format in 2001, JNG was designed as a sub-format of Multiple-image Network Graphics (MNG). It essentially combines the lossy compression of standard JPEG with the chunk-based file structure and 8-bit alpha channel transparency of PNG. This allowed for highly compressed photographic images with smooth transparency—a feature JPEG notoriously lacks. Despite its technical merits, it failed to gain widespread adoption, as modern browsers dropped MNG/JNG support in the early 2000s, and formats like WebP and AVIF have since solved the "lossy with alpha" problem more efficiently.
Technical Specifications
.jng
JPEG (Discrete Cosine Transform)Deflate (LZ77)
image/jng
Magic Bytes & HTTP Headers
\x8BJNG\r\n\x1A\n
Browser Support Matrix
| Browser | Status | Min Version |
|---|---|---|
|
|
Not Supported | — |
|
|
Not Supported | — |
|
|
Not Supported | — |
|
|
Not Supported | — |
|
|
Not Supported | Legacy |
Advantages & Limitations
- 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
- 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
Developer Code Snippets
File Detection Steps
How to programmatically detect a image/x-jng
file by reading its raw bytes:
- 1 JNG files use an 8-byte signature that intentionally mirrors the PNG specification.
- 2 Check the first 8 bytes for: 8B 4A 4E 47 0D 0A 1A 0A (Hex).
- 3 Notice it matches the PNG signature (89 50 4E 47...), but the first byte is 0x8B and the text characters are 'JNG' instead of 'PNG'.
Software Support
ImageMagick
Conversion Tools
Share & Embed
[](https://freewebptojpg.com/mime/image/jng)
<iframe src="https://freewebptojpg.com/mime/image/jng/embed" width="100%" height="280" style="border:1px solid #cbd5e1;border-radius:8px;" title="JNG Specs"></iframe>
JSON API
All data on this page is available as a free, open JSON API. Use it in your project, documentation, or tooling.
GET https://freewebptojpg.com/mime/image/jng.json
Open JSON
Frequently Asked Questions
What is a JNG file?
A JNG (JPEG Network Graphics) file is an image format that stores photographic image data using JPEG compression, but encapsulates it within a PNG-like chunk structure to allow for an 8-bit alpha channel (transparency).
What is the difference between JNG and standard JPEG?
Standard JPEGs do not support transparency. JNG solved this by storing the color data as a compressed JPEG stream (JDAT chunk) and storing the transparency mask as a separate, lossless PNG stream (IDAT chunk) within the same file.
Do web browsers support JNG images?
No. While Mozilla briefly supported MNG and JNG in the early 2000s, support was removed in 2003 to reduce code bloat. Today, WebP, AVIF, and JPEG XL have completely replaced JNG's use case for web imagery.