Multiple-image Network Graphics: Difference between revisions

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search
imported>Okterakt
formatting
 
imported>TooManyFingers
Server support: Copy editing. Lack of browser support is an effect of low adoption, not a cause of it.
Line 60: Line 60:


===Server support===
===Server support===
Web servers generally don't come pre-configured to support MNG files.<ref>{{cite web|url=http://meta.wikimedia.org/w/index.php?title=Help:Images_and_other_uploaded_files&oldid=4194673 |title=Help:Images and other uploaded files |work=Wikimedia Meta-Wiki |publisher=Wikimedia Foundation |date=2 October 2012 |access-date=18 November 2012}}</ref><ref>{{Cite web|url=https://help.lycos.com/kb_article.php?ref=4470-EIHB-9773|archive-url=https://web.archive.org/web/20140812150940/https://help.lycos.com/kb_article.php?ref=4470-EIHB-9773|url-status=dead|title=Database Error|archive-date=12 August 2014|website=help.lycos.com}}</ref>
Web servers are generally not pre-configured to support MNG files.<ref>{{cite web|url=http://meta.wikimedia.org/w/index.php?title=Help:Images_and_other_uploaded_files&oldid=4194673 |title=Help:Images and other uploaded files |work=Wikimedia Meta-Wiki |publisher=Wikimedia Foundation |date=2 October 2012 |access-date=18 November 2012}}</ref><ref>{{Cite web|url=https://help.lycos.com/kb_article.php?ref=4470-EIHB-9773|archive-url=https://web.archive.org/web/20140812150940/https://help.lycos.com/kb_article.php?ref=4470-EIHB-9773|url-status=dead|title=Database Error|archive-date=12 August 2014|website=help.lycos.com}}</ref>


The MNG developers had hoped that MNG would replace GIF for animated images on the [[World Wide Web]], just as PNG had done for still images.<ref>{{Cite web|url=http://www.libpng.org/pub/mng/#history|title=MNG (Multiple-image Network Graphics) Home Page|website=libpng.org}}</ref> However, with the expiration of LZW patents and existence of alternative file formats such as APNG, Flash and [[Scalable Vector Graphics|SVG]], combined with lack of MNG-supporting viewers and services, web usage was far less than expected.
The MNG developers had hoped that MNG would replace GIF for animated images on the [[World Wide Web]], just as PNG had done for still images.<ref>{{Cite web|url=http://www.libpng.org/pub/mng/#history|title=MNG (Multiple-image Network Graphics) Home Page|website=libpng.org}}</ref> However, with the expiration of LZW patents and existence of other alternative file formats such as APNG, Flash, and [[Scalable Vector Graphics|SVG]], web usage of MNG was far less than its developers had expected.


==Technical details==
==Technical details==
The structure of MNG files is essentially the same as that of PNG files, differing only in the slightly different signature (<code>8A 4D 4E 47 0D 0A 1A 0A</code> in [[hexadecimal]], where <code>4D 4E 47</code> is ASCII for "MNG" – see [[Portable Network Graphics#File header|Portable Network Graphics: File header]]) and the use of a much greater variety of [[Portable Network Graphics#"Chunks" within the file|chunks]] to support all the animation features that it provides. Images to be used in the animation are stored in the MNG file as encapsulated PNG or [[JPEG Network Graphics|JNG]] images.
The structure of MNG files is essentially the same as that of PNG files, differing only in the slightly different signature (<code>8A 4D 4E 47 0D 0A 1A 0A</code> in [[hexadecimal]], where <code>4D 4E 47</code> is ASCII for "MNG" – see [[Portable Network Graphics#File header|Portable Network Graphics: File header]]) and the use of a much greater variety of [[Portable Network Graphics#"Chunks" within the file|chunks]] to support all the animation features that it provides. Images to be used in the animation are stored in the MNG file as encapsulated PNG or [[JPEG Network Graphics|JNG]] images.


Two versions of MNG of reduced complexity are also defined: MNG-LC (low complexity) and MNG-VLC (very low complexity). These allow applications to include some level of MNG support without having to implement the entire MNG specification, just as the [[Scalable Vector Graphics|SVG]] standard offers the "SVG Basic" and "SVG Tiny" subsets.
To allow applications to include some level of MNG support without having to implement the entire MNG specification, two reduced-complexity versions of MNG are also defined: MNG-LC (low complexity) and MNG-VLC (very low complexity). These reduced specifications are conceptually similar to the "SVG Basic" and "SVG Tiny" subsets offered in the [[Scalable Vector Graphics|SVG]] standard.


MNG does not have a registered [[MIME]] media type, but <code>video/x-mng</code> or <code>image/x-mng</code> can be used.
MNG does not have a registered [[MIME]] media type, but <code>video/x-mng</code> or <code>image/x-mng</code> can be used.
MNG animations may be included in [[HTML]] pages using the <code><embed></code> or <code><object></code> tag.
MNG animations may be included in [[HTML]] pages using the <code><embed></code> or <code><object></code> tag.


MNG can either be lossy or lossless, depending whether the frames are encoded in PNG (lossless) or [[JPEG Network Graphics|JNG]] (lossy).
Saving a file as MNG can be either lossy or lossless, depending on whether its frames are encoded in PNG (lossless) or [[JPEG Network Graphics|JNG]] (lossy).


==Alternatives==
==Alternatives==
Most modern web browsers support animations in [[Animated Portable Network Graphics|APNG]], [[SVG animation|SVG]], [[WebP]], and [[WebM]]. {{As of|2024|02}} only [[Apple Safari]] supports [[HEIF]] and [[JPEG XL]].<ref>{{cite web |last=Deveria |first=Alexis |title=Can I use... Browser support tables for modern web technologies |website=Can I use... Browser support tables for modern web technologies |date=2024-02-17 |url=http://caniuse.com |access-date=2024-02-21}} See: [http://caniuse.com/mng MNG],  
Most modern web browsers support animations in [[Animated Portable Network Graphics|APNG]], [[SVG animation|SVG]], [[WebP]], and [[WebM]]. {{As of|2024|02}} only [[Apple Safari]] supports [[HEIF]] and [[JPEG XL]].<ref>{{cite web |last=Deveria |first=Alexis |title=Can I use... Browser support tables for modern web technologies |website=Can I use... Browser support tables for modern web technologies |date=2024-02-17 |url=http://caniuse.com |access-date=2024-02-21}} See: [http://caniuse.com/mng MNG],  
[http://caniuse.com/apng Animated PNG], [http://caniuse.com/svg-smil SVG SMIL animation], [http://caniuse.com/webp WebP], [http://caniuse.com/webm WebM], [https://caniuse.com/avif AVIF], [https://caniuse.com/jpegxl JPEG XL], [https://caniuse.com/heif HEIF/HEIC], [https://caniuse.com/css-animation CSS Animation], [https://caniuse.com/web-animation Web Animations API], [https://caniuse.com/sr_flash Adobe Flash].</ref> The most common alternatives have been [[Animated GIF]] and – up until its deprecation in 2017<ref>{{cite web|title=Flash & The Future of Interactive Content|publisher=[[Adobe Inc.]]|date=July 25, 2017|url=https://theblog.adobe.com/adobe-flash-update/|archive-url=https://web.archive.org/web/20171202123704/https://theblog.adobe.com/adobe-flash-update/|archive-date=December 2, 2017}}</ref> – [[Adobe Flash]]. GIF images are restricted to 256 colors with limited compression, but the format is supported in all graphical web browsers and is still widely used.  
[http://caniuse.com/apng Animated PNG], [http://caniuse.com/svg-smil SVG SMIL animation], [http://caniuse.com/webp WebP], [http://caniuse.com/webm WebM], [https://caniuse.com/avif AVIF], [https://caniuse.com/jpegxl JPEG XL], [https://caniuse.com/heif HEIF/HEIC], [https://caniuse.com/css-animation CSS Animation], [https://caniuse.com/web-animation Web Animations API], [https://caniuse.com/sr_flash Adobe Flash].</ref> [[Internet Explorer]] only supported GIF, CSS, and Flash animations.


Animations can be generated ad hoc in a browser with the [[Cascading Style Sheets#CSS 3|CSS 3]] features [[CSS animations|animations]], transitions, and [[Sprite (computer graphics)#Sprites by CSS|sprites]], or also the [[JavaScript]] [[web animations API]], by specifying frames or motions of still images or rendered shapes. This can be resource-intensive, and the animation generally cannot be saved in a portable image file or posted on [[imageboards]].
The most common alternatives to MNG have been [[Animated GIF]] and – until it was deprecated in 2017<ref>{{cite web|title=Flash & The Future of Interactive Content|publisher=[[Adobe Inc.]]|date=July 25, 2017|url=https://theblog.adobe.com/adobe-flash-update/|archive-url=https://web.archive.org/web/20171202123704/https://theblog.adobe.com/adobe-flash-update/|archive-date=December 2, 2017}}</ref> – [[Adobe Flash]]. GIF images are restricted to 256 colors with limited compression, but the format is supported in all graphical web browsers and is still widely used.  


[[Internet Explorer]] only supported GIF, CSS, and Flash animations.
Animations can also be generated ad hoc in a browser with the [[Cascading Style Sheets#CSS 3|CSS 3]] features [[CSS animations|animations]], transitions, and [[Sprite (computer graphics)#Sprites by CSS|sprites]], or with the [[JavaScript#Website client-side usage|web animations API of JavaScript]], by specifying frames or motions of still images or rendered shapes. Ad-hoc animations can be resource-intensive, and they generally cannot be saved in a portable file or posted on [[imageboards]].


== See also ==
== See also ==

Revision as of 22:21, 30 June 2025

Template:Short description Template:Use dmy dates

Script error: No such module "Infobox".Template:Template otherScript error: No such module "Check for unknown parameters".

Multiple-image Network Graphics (MNG) is a graphics file format published in 2001 for animated images. Its specification is publicly documented and there are free software reference implementations available.

MNG is closely related to the PNG image format. When PNG development started in early 1995, developers decided not to incorporate support for animation, because the majority of the PNG developers felt that overloading a single file type with both still and animation features is a bad design, both for users (who have no simple way of determining to which class a given image file belongs) and for web servers (which should use a MIME type starting with image/ for stills and video/ for animations—GIF notwithstanding),[1] but work soon started on MNG as an animation-supporting version of PNG. Version 1.0 of the MNG specification was released on 31 January 2001.

File support

Support

Gwenview has native MNG support. GIMP can export images as MNG files. Imagemagick can create a MNG file from a series of PNG files. With the MNG plugin, Irfanview can read a MNG file.[2] If MPlayer is linked against libmng, it and all its graphical front-ends like Gnome MPlayer can display MNG files.

Mozilla browsers and Netscape 6.0, 6.01 and 7.0 included native support for MNG until the code was removed in 2003 due to code size and little actual usage,[3] causing complaints on the Mozilla development site.[4] Mozilla later added support for APNG as a simpler alternative.[5] Similarly, early versions of the Konqueror browser included MNG support but it was later dropped. MNG support was never included in Google Chrome, Internet Explorer, Opera, or Safari.

Product Support status
Image processing
Chasys Draw IES Yes
GIMP Partial
Gwenview Yes
ImageMagick Yes
Irfanview Partial, via plugin
KMPlayer Yes
Konvertor Yes
MPlayer Yes
XnView Yes

Server support

Web servers are generally not pre-configured to support MNG files.[6][7]

The MNG developers had hoped that MNG would replace GIF for animated images on the World Wide Web, just as PNG had done for still images.[8] However, with the expiration of LZW patents and existence of other alternative file formats such as APNG, Flash, and SVG, web usage of MNG was far less than its developers had expected.

Technical details

The structure of MNG files is essentially the same as that of PNG files, differing only in the slightly different signature (8A 4D 4E 47 0D 0A 1A 0A in hexadecimal, where 4D 4E 47 is ASCII for "MNG" – see Portable Network Graphics: File header) and the use of a much greater variety of chunks to support all the animation features that it provides. Images to be used in the animation are stored in the MNG file as encapsulated PNG or JNG images.

To allow applications to include some level of MNG support without having to implement the entire MNG specification, two reduced-complexity versions of MNG are also defined: MNG-LC (low complexity) and MNG-VLC (very low complexity). These reduced specifications are conceptually similar to the "SVG Basic" and "SVG Tiny" subsets offered in the SVG standard.

MNG does not have a registered MIME media type, but video/x-mng or image/x-mng can be used. MNG animations may be included in HTML pages using the <embed> or <object> tag.

Saving a file as MNG can be either lossy or lossless, depending on whether its frames are encoded in PNG (lossless) or JNG (lossy).

Alternatives

Most modern web browsers support animations in APNG, SVG, WebP, and WebM. Template:As of only Apple Safari supports HEIF and JPEG XL.[9] Internet Explorer only supported GIF, CSS, and Flash animations.

The most common alternatives to MNG have been Animated GIF and – until it was deprecated in 2017[10]Adobe Flash. GIF images are restricted to 256 colors with limited compression, but the format is supported in all graphical web browsers and is still widely used.

Animations can also be generated ad hoc in a browser with the CSS 3 features animations, transitions, and sprites, or with the web animations API of JavaScript, by specifying frames or motions of still images or rendered shapes. Ad-hoc animations can be resource-intensive, and they generally cannot be saved in a portable file or posted on imageboards.

See also

References

Template:Reflist

External links

Script error: No such module "Navbox". Template:Graphics file formats

  1. Script error: No such module "citation/CS1".
  2. Script error: No such module "citation/CS1".
  3. Script error: No such module "citation/CS1".
  4. Script error: No such module "citation/CS1".
  5. Script error: No such module "citation/CS1".
  6. Script error: No such module "citation/CS1".
  7. Script error: No such module "citation/CS1".
  8. Script error: No such module "citation/CS1".
  9. Script error: No such module "citation/CS1". See: MNG, Animated PNG, SVG SMIL animation, WebP, WebM, AVIF, JPEG XL, HEIF/HEIC, CSS Animation, Web Animations API, Adobe Flash.
  10. Script error: No such module "citation/CS1".