ArticleslgStudy

computer science

JPEG Network Graphics

JPEG Network Graphics is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand JPEG Network Graphics rather than just read about it. In short: 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.

Key takeaways

  • JPEG Network Graphics belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect JPEG Network Graphics to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of JPEG Network Graphics from memory before moving on to harder problems.

Reference excerpt

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. 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.

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

Alternatives Due to the lack of wide adoption of both the JNG and MNG format, it has fallen in disuse in favor of other formats that are in active development with similar qualities:

JPEG XR: Supporting wide color space and a lossy format with transparency (JNG contender, standardized) WebP: Supporting a lossy format with transparency and animation (JNG/MNG contender, standardized) JPEG XL: Supporting wide color spaces, lossy and lossless encoding, animation and transparency (JPEG/PNG replacement contender)

Notes

External links JNG 1.0 specification Original JNG specification as part of the MNG specification Photoshop Plugin (for Photoshop7.0 or greater) Amiga Datatype (for AmigaOS 4.0 or greater) Archived 2019-10-17 at the Wayback Machine

Worked examples

Example 1 — a first encounter with JPEG Network Graphics

Start with the simplest possible case. Write down what JPEG Network Graphics claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to JPEG Network Graphics before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about JPEG Network Graphics ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of JPEG Network Graphics

In research
JPEG Network Graphics appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses JPEG Network Graphics in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
JPEG Network Graphics is common in secondary-school and first-year university syllabi. It links to neighbouring topics JPEG, Portable Network Graphics, Raster graphics file formats, so understanding it makes those chapters shorter.
In everyday life
Look for JPEG Network Graphics outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “JPEG Network Graphics” →

How to study JPEG Network Graphics in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what JPEG Network Graphics means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain JPEG Network Graphics out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is JPEG Network Graphics in simple terms?

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 stan…

Why does JPEG Network Graphics matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study JPEG Network Graphics?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on JPEG Network Graphics.

Tags

  • JPEG
  • Portable Network Graphics
  • Raster graphics file formats

Keep exploring