Because the images making up a MNG are in PNG and JNG format, MNG shares the good features of PNG:
138 M N G CR LF 26 LF # MNG 8-byte signature MHDR maxwidth maxheight ... # MNG Header chunk DEFI 1 visible concrete # MNG Define image chunk IHDR width height ... # PNG Header chunk gAMA 50000 # PNG Gamma chunk cHRM ... # PNG Chromaticity chunk PLTE ... # PNG Palette IDAT ... # PNG Pixel data IEND # End of first PNG datastream DHDR 1 png replace width ht # Delta-PNG header IDAT ... # Delta-PNG pixels DEND # End of Delta-PNG MEND # End of MNG datastreamWhen only a smaller rectangle within the second image has pixels that are different from those in the first image, the DHDR chunk can specify that only a smaller rectangle of pixels (sometimes called a "change box") will be transmitted. Whether the pixels for the full image or for a smaller rectangle are changed, the data can be presented as new values that replace the old ones or as deltas (differences) from the corresponding pixels in the previous image. Usually the data in delta form is much more compressible. Several movies of finite-element calculational results by the U. S. Army Research Laboratory required only about a quarter of the file space when converted from a simple series of PNGs to delta-encoded PNGs.
It is possible to change just the alpha samples in the image, or in selected parts of it, to fade an image in or out against a background image.
Further dramatic savings in the size of the datastream can be achieved when an image or a portion of one is merely relocated. MNG provides a MOVE chunk in which the new coordinates of the image are transmitted instead of having to retransmit the entire image. A CLIP chunk is also available, to make it possible to show only a portion of a previously transmitted image. The MOVE and CLIP chunks can be used for scrolling or panning across an image that is larger than the display area.
138 M N G CR LF 26 LF # MNG 8-byte signature MHDR maxwidth maxheight ... # MNG Header Chunk IHDR width height ... # PNG Header Chunk DHDR 1 ... PLTE ... IDAT ... IEND # Define Image 1 CLON 1 2 DHDR 2 1 1 IDAT ... IEND # Define Image 2 CLON 2 3 DHDR 3 1 1 IDAT ... IEND # Define Image 3 CLON 3 4 DHDR 4 1 1 IDAT ... IEND # Define Image 4 CLON 4 5 DHDR 5 1 1 IDAT ... IEND # Define Image 5 LOOP 0 10 # Begin Loop SHOW 4 2 SHOW 1 5 # Show images 4-2, 1-5 ENDL 0 # End Loop MEND # End MNG
MNG provides four framing modes that can be used with composite images. The framing modes include:
majordomo@dworkin.wustl.eduthat contains the line "subscribe mpng-list" (and nothing else) in the body.
The MNG format specification has not yet been frozen, but it has reached a state where test implementations are possible. There has been discussion of MNG since the completion of the PNG design in March 1995, and the first informal MNG drafts appeared on June 25, 1996. As of December 31, 1998, 55 drafts had been produced for review by the PNG group. The major changes since Draft 33 (issued in late January, 1997) have been the recent addition of several fields to the MHDR chunk, revision of framing modes, addition of the JNG format, improvement of palette animation via a new PPLT chunk, addition of a global PLTE chunk, making the SAVE/SEEK chunks ignorable by simple decoders, and minor redesign of the LOOP chunk. The examples shown above are consistent with Draft 33, except for the reordering of the LOOP chunk fields. Draft 55 was designated MNG-0.9, signifying a move from "alpha" to "beta" status and an intention to "freeze" or at least "gel" the design.
A number of prototype MNG datastreams have been written, and two viewers have been written that are able to process a subset of MNG datastreams (simple movies and composite frames), including delta-encoded images. One has already been used by the U. S. Army for real presentation work as early as September 1996. The prototype MNG files and a viewer ("ARL viewpng", written at the U.S. Army Research Laboratory for use on SGI workstations running IRIX 5.3) and the latest version of the MNG proposal from the PNG Development Group are available at the MNG ftp site,
<URL:ftp://swrinde.nde.swri.edu/pub/mng/>
A more complete viewer, "MNGeye" for Windows-95 and Windows NT, by Gerard
Juyn, was released on
August 1, 1998. It is available at
<URL:http://www.3-t.com/3-T/products/mngi/Homepage.html>
ImageMagick and Paint Shop Pro are supporting subsets of MNG.
<URL:http://www.w3.org/pub/WWW/TR/REC-png-multi.html>
.
2.
Boutell, T., et. al., PNG (Portable Network Graphics) Specification, Version 1.0,
RFC 2083,
<URL:ftp://ds.internic.net/rfc/rfc2083.txt>
3.
Randers-Pehrson, G., et. al., PNG (Portable Network Graphics) Specification,
Version 1.1,
<URL:ftp://swrinde.nde.swri.edu/pub/png/documents/>
4. MNG (Multiple-image Network Graphics) Format, Version 0.9,
<URL:ftp://swrinde.nde.swri.edu/pub/mng/documents/>
.
Glenn Randers-Pehrson 611 Rivershore Court Edgewood, Maryland 21040This is a revised version of an article that appeared in the Winter 1997 issue of the World Wide Web Journal