World Library  
Flag as Inappropriate
Email this Article

JPEG Network Graphics

Article Id: WHEBN0000016194
Reproduction Date:

Title: JPEG Network Graphics  
Author: World Heritage Encyclopedia
Language: English
Subject: Portable Network Graphics, CALS Raster file format, HDRi (data format), Hershey fonts, Cartesian Perceptual Compression
Publisher: World Heritage Encyclopedia

JPEG Network Graphics

JPEG Network Graphics (JNG, ) is a JPEG-based graphics file format which is closely related to PNG: it uses the PNG file structure (with a different signature) as a container format to wrap JPEG-encoded image data.

JNG was created as an adjunct to the MNG animation format, but may be used as a stand-alone format. JNG files embed an 8-bit or 12-bit JPEG datastream in order to store color data, and may embed another datastream (1, 2, 4, 8, 16-bit PNG, or 8-bit JPEG grayscale image) for transparency information. However, a JNG may contain two separate JPEG datastreams for color information (one 8-bit and one 12-bit) to permit decoders that are unable to (or do not wish to) handle 12-bit datastreams to display the 8-bit datastream instead, if one is present.

Version 1.0 of the JNG specification was released on January 31, 2001 (initially as part of the MNG specification). Usually, all the applications supporting the MNG file format can handle JNG files too. For example, Konqueror has native MNG/JNG support, and MNG/JNG plugins are available for Opera, Internet Explorer, and Mozilla Firefox. The Mozilla Application Suite (and hence Netscape) originally supported MNG/JNG, but native support was removed in Mozilla 1.5a by developers, and Mozilla has not supported the format since, despite requests from its users. Safari does not support MNG/JNG.

JNG enhances the capabilities of the JFIF format (the usual JPEG file format) by supporting transparency, two consecutive color streams (one 8-bit and the other 12-bit), and other useful PNG features like color correction, gamma correction, embedded color profiles, PNG-style metadata, checksums, etc. The transparency information inside a JNG file (as an alpha channel) can be saved either in lossless PNG format or in lossy JPEG format. This way, users can benefit from the power of JPEG compression while preserving lossless (PNG-compressed) transparency information.

The chunk-based structure of JNG files is essentially the same as that of PNG files, differing only in the slightly different signature and the use of different chunks.

Network Graphics signatures
Name Signature
hexadecimal ASCII + C0, C1
PNG 89 50 4E 47 0D 0A 1A 0A  0x80 "PNG" CR LF SUB LF
MNG 8A 4D 4E 47 0D 0A 1A 0A LF | 0x80 "MNG" CR LF SUB LF
JNG 8B 4A 4E 47 0D 0A 1A 0A  0x80 "JNG" CR LF SUB LF

JNG does not have a registered Internet media type, but image/x-jng can be used.

External links

  • JNG 1.0 specification
  • Photoshop Plugin (for Photoshop7.0 or greater)
  • Amiga Datatype (for AmigaOS 4.0 or greater)
This article was sourced from Creative Commons Attribution-ShareAlike License; additional terms may apply. World Heritage Encyclopedia content is assembled from numerous content providers, Open Access Publishing, and in compliance with The Fair Access to Science and Technology Research Act (FASTR), Wikimedia Foundation, Inc., Public Library of Science, The Encyclopedia of Life, Open Book Publishers (OBP), PubMed, U.S. National Library of Medicine, National Center for Biotechnology Information, U.S. National Library of Medicine, National Institutes of Health (NIH), U.S. Department of Health & Human Services, and, which sources content from all federal, state, local, tribal, and territorial government publication portals (.gov, .mil, .edu). Funding for and content contributors is made possible from the U.S. Congress, E-Government Act of 2002.
Crowd sourced content that is contributed to World Heritage Encyclopedia is peer reviewed and edited by our editorial staff to ensure quality scholarly research articles.
By using this site, you agree to the Terms of Use and Privacy Policy. World Heritage Encyclopedia™ is a registered trademark of the World Public Library Association, a non-profit organization.

Copyright © World Library Foundation. All rights reserved. eBooks from World eBook Library are sponsored by the World Library Foundation,
a 501c(4) Member's Support Non-Profit Organization, and is NOT affiliated with any governmental agency or department.