SUPPORT THE WORK

GetWiki

APNG

ARTICLE SUBJECTS
aesthetics  →
being  →
complexity  →
database  →
enterprise  →
ethics  →
fiction  →
history  →
internet  →
knowledge  →
language  →
licensing  →
linux  →
logic  →
method  →
news  →
perception  →
philosophy  →
policy  →
purpose  →
religion  →
science  →
sociology  →
software  →
truth  →
unix  →
wiki  →
ARTICLE TYPES
essay  →
feed  →
help  →
system  →
wiki  →
ARTICLE ORIGINS
critical  →
discussion  →
forked  →
imported  →
original  →
APNG
[ temporary import ]
please note:
- the content below is remote from Wikipedia
- it has been imported raw for GetWiki
{{short description|File format}}{{other uses}}







factoids
The Animated Portable Network Graphics (APNG) file format is an extension to the Portable Network Graphics (PNG) specification. It allows for animated PNG files that work similarly to animated GIF files, while supporting 24-bit images and 8-bit transparency not available for GIFs. It also retains backward compatibility with non-animated PNG files.The first frame of an APNG file is stored as a normal PNG stream, so most standard PNG decoders are able to display the first frame of an APNG file. The frame speed data and extra animation frames are stored in extra chunks (as provided for by the original PNG specification). APNG competes with Multiple-image Network Graphics (MNG), a comprehensive format for bitmapped animations created by the same team as PNG. APNG's advantage is the smaller library size and compatibility with older PNG implementations.As of July, 2019, the only major browsers that still don't support APNG are Internet Explorer and Microsoft Edge.WEB,weblink July 10, 2019, However, the new Chromium-based Edge has APNG support (which can be verfied by opening this page in an Edge dev-channel release as of August, 2019).In a comparison made between GIF, APNG and WebP, it was shown that APNG kept lower file size while keeping at least equal quality.WEB,weblink GIF vs APNG vs WebP, littlesvr, 2019-04-02,

History

File:Brain MRI apng 105px 100ms.png|thumb|An APNG of an MRIMRIThe APNG specification was created in 2004 by Stuart Parmenter and Vladimir Vukićević of the Mozilla Corporation to allow for storing the animations needed for interfaces such as throbbers. In May 2003, Mozilla had scrapped support for MNG animations, which provides a superset of APNG functionality, citing concerns about the large file size required for the expansive MNG decoder library (300 KB);WEB,weblink Bug 18574 - (mng) restore support for MNG animation format and JNG image format, 1999-11-11, martin, 2010-03-30, Mozilla, the APNG decoder, built on the back of the PNG decoder, was a much smaller component.Among users and maintainers of the PNG and MNG formats, APNG had a lukewarm reception. In particular, PNG was conceived to be a single-image format.WEB,weblink PNG (Portable Network Graphics) Specification, Version 1.1#8.4. Multiple-image extension, libpng, 2010-03-30, APNG hides the subsequent frames in PNG ancillary chunks in such a way that APNG-unaware applications would ignore them, but there are otherwise no changes to the format to allow software to distinguish between animated and non-animated images. Some of the main concerns arising from this were the inability of applications to negotiate for PNG and APNG, or distinguish between PNG and APNG once received, or for legacy software to even inform users that there are additional frames. Glenn Randers-Pehrson spearheaded efforts to reconcile the PNG purists' position with that of APNG proponents by recommending changes to APNG's format and proposing the use of a unique MIME type (e.g., video/png), but the APNG proponents only added the different MIME type (image/apng)WEB,weblink APNG Specification, Version 1.0#MIME type, Mozilla, 2017-12-10, while insisting on the use of the .png extension instead of .apng, leading to the format not being approved by the PNG Development Group.WEB,weblink ImageMagick can't detect animated PNG, 2017-12-10, The PNG group officially rejected APNG as an official extension on April 20, 2007.WEB,weblink VOTE FAILED: APNG 20070405a, SourceForge mailing list, 2007-04-20, There have been several subsequent proposals for a simple animated graphics format based on PNG using several different approaches.WEB,weblink Discussion for a simple "animated" PNG format, 2009-02-26,weblink" title="web.archive.org/web/20090226103407weblink">weblink 2011-07-12, Mozilla Firefox added support for APNG in version 3 trunk builds on March 23, 2007.WEB,weblink Gran Paradiso Alpha 3 release notes, Mozilla, 2007-03-23, 2010-03-30,weblink" title="web.archive.org/web/20091226221450weblink">weblink December 26, 2009, dead, However, because libpng is the PNG Group's reference implementation of the official specification, APNG support can never be supported in the main libpng distribution so long as it remains unratified by the Group. Iceweasel 3 supports APNG by using Mozilla's unofficial variant of libpng.WEB,weblink Debian Bug #486827 Iceweasel cannot render APNG image, 2011-08-26, Debian, 2011-09-18, File:APNG Assembler Logo.svg|105px|thumb|right|The Logo of APNG Assembler, a free softwarefree softwareIn 2008 WorldDMB adopted APNG as a backward compatible extension to enable animation as part of the MOT SlideShow user application for Digital Radio. "APNG 1.0 Specification - Animated Portable Network Graphics" is included as normative Annex A in the ETSI standard TS 101 499 V2.2.1.WEB, Digital Audio Broadcasting (DAB); MOT SlideShow; User Application (pdf) Specification,weblink ETSI, 30 January 2013, In 2010 Commercial Radio Broadcasters in Sydney began to include APNG animations in DAB+ digital radio broadcasts.{{Citation needed|date=December 2010}} These APNG animations are carried by the "MOT slideshow" application which accompanies the audio services. It is expected that other cities in Australia will follow in early 2011.{{Citation needed|date=December 2010}}{{Update inline|reason=Did they?|date=July 2015}}Mozilla's role in extending the PNG format to APNG echoes Netscape's much earlier role in popularizing animated GIFs.{{Citation needed|date=December 2013}}In 2016, Apple adopted the APNG format as the preferred format for animated stickers in iOS 10 iMessage apps.WEB,weblink Messaging - Extensions - iOS Human Interface Guidelines, Inc., Apple, developer.apple.com, 2016-10-12, On March 15, 2017 APNG support was added to Chromium.WEB,weblink Anzwix / Chromium / Add support for Animated PNG, 2017-03-15,

Support

{{See also|Comparison of layout engines (graphics)#Image format support}}{{See also|Comparison of web browsers#Image format support}}{| class = "wikitable"|+ List of computer programs and their support of APNG, along with their version numbers and release date! Field !! Software !! Supports? !! Since Imageprocessing| APNG Assembler| {{yes}}AUTHOR=MAXST, SourceForge, | cphktool APNG Anime Maker| {{yes}}PUBLISHER=CPHKTOOL, 2010-06-28, | APNG Disassembler| {{yes}}AUTHOR=MAXST, SourceForge, | APNG Optimizer| {{yes}}AUTHOR=MAXST, SourceForge, | FFmpeg| {{yes}weblinkACCESSDATE=2016-07-09, | Gamani GIF Movie Gear| {{yes}}PUBLISHER=GAMANI, 2009-08-25, | GIMPNeeds plug-in}}HTTP://REGISTRY.GIMP.ORG/NODE/24394>TITLE=APNG PLUG-INARCHIVE-URL=HTTPS://WEB.ARCHIVE.ORG/WEB/20140525213646/HTTP://REGISTRY.GIMP.ORG/NODE/24394URL-STATUS=DEAD, | {{N/A}}| ImageJ| {{yes}}PUBLISHER=IMAGEJ ARCHIVEURL= HTTPS://WEB.ARCHIVE.ORG/WEB/20090521092716/HTTP://RSB.INFO.NIH.GOV/IJ/NOTES.HTML URL-STATUS= LIVE, | Imagine| {{yes}}ACCESSDATE=2017-09-01 ARCHIVEURL=HTTPS://WEB.ARCHIVE.ORG/WEB/20111008163945/HTTP://NYAM.PE.KR/DEV/IMAGINE/DOC/WHATSNEW.TXT, October 8, 2011, | IrfanViewRead-only}}| v. 4.40 (31 July 2015)| Konvertor| {{yes}}ACCESS-DATE=2010-05-19ARCHIVE-DATE=2010-05-12, dead, | KSquirrel| {{yes}}PUBLISHER=SOURCEFORGE, 2009-05-23, | Paint.NETNeeds plugin}}HTTP://FORUMS.GETPAINT.NET/INDEX.PHP?/TOPIC/13454-ANIMATED-IMAGE-24-AGIF-APNG/>TITLE=ANIMATED IMAGE 2.4 - AGIF & APNG, Paint.NET Forum, | {{N/A}}| RealWorld Paint| {{yes}}| VirtualDubNeeds plugin}}HTTP://VDUBAPNGMOD.SOURCEFORGE.NET>TITLE=SOURCEFORGE.NET: VIRTUALDUB APNG MODAfter loading a video, an APNG file can be created via the "File{{!}}Export{{!}}Animated PNG" menu item.}}| {{N/A}}| XnViewRead-only}}Microsoft Windows>Windows have been released since APNG support was added.| Sciter and HTMLayout UI enginesRead-only}}| since 2008|KritaACCESSDATE=2018-09-18, | {{N/A}} BrowserEngines| Webkit| {{yes}}DATE=MAR 17, 2015WEBKIT>ACCESSDATE=2015-03-17, Blink (web engine)>Blink| {{yes}} | June 2017 WebbrowsersMozilla Firefox(Gecko (software)>Gecko layout engine)| {{yes}}DATE=JULY 4, 2008LAST=PARMENTERAUTHOR3=ANDREW SMITH MOZILLA>ACCESSDATE=2009-05-23DATE=OCTOBER 1, 2008 MOZILLA >ACCESSDATE=2009-05-23 URL-STATUS=DEAD ARCHIVEDATE=2008-11-13, SeaMonkey(Gecko (software)>Gecko layout engine)| {{yes}}| v. 2Mozilla Corporation software rebranded by the Debian project>Iceweasel and other Debian rebrandings(Gecko layout engine)| {{yes}}| v. 4.0~b12Safari (web browser)>Safari(WebKit layout engine)| {{yes}}WEBSITE=CAN I USE... SUPPORT TABLES FOR HTML5, CSS3, ETC, Google Chrome and Chromium (web browser)>Chromium(Blink layout engine)| {{yes}}WORK=CHROME RELEASESLANGUAGE=EN-US, Internet Explorer(Trident (layout engine)>Trident layout engine)| {{no}}| {{N/A}}Microsoft Edge(EdgeHTML>EdgeHTML layout engine)WEBSITE=MICROSOFT EDGE DEVELOPMENT, 2017-07-29, | {{N/A}}Opera (web browser)>Opera v12 and earlier(Presto layout engine)| {{Yes}}PUBLISHER=OPERA SOFTWARE, 2009-05-23, Opera (web browser)>Opera 15 and later(Blink layout engine)| {{Yes}}PUBLISHER=OPERA SOFTWARE, 2017-06-26, Pale Moon (web browser)>Pale Moon (Goanna layout engine)| {{Yes}}| v. 27 MobilebrowsersiOS Safari (web browser)>Safari| {{yes}}| v. 8.0| Firefox for Android| {{yes}}| {{dunno}}| Samsung Internet for Android| {{yes}}| v. 7.0| Opera Mobiledate=November 2017}}| {{Dunno}}{{notelist}}A server-side library exists that allows web browsers that support the canvas tag, but do not support APNG, to display APNGs.WEB,weblink APNG-canvas Library, Examples of such browsers include Microsoft Edge and Internet Explorer 9.

Technical details

A PNG file consists of the PNG Signature (8 special bytes), followed by a series of chunks. A chunk consists of four parts: Length (4 bytes), Chunk type (4 bytes), Chunk data (length bytes) and CRC (Cyclic Redundancy Code / Checksum, 4 bytes).{| class="wikitable" style="text-align: center;"|+ Structure of a single PNG chunk Length (4 bytes) Chunk type (4 bytes) Chunk data (length bytes) CRC (4 bytes)There are about 20 different chunk types, but for a minimal PNG, only 3 are required: The IHDR (image header) chunk, one or more IDAT (image data) chunks and the IEND (image end) chunk.{| class="wikitable" style="text-align: center;"|+ Structure of a very simple PNG file 89 50 4E 47 0D 0A 1A 0APNG signature IHDRImage header IDATImage data IENDImage endThe next graphic shows the contents of such a minimal PNG file, representing just one red pixel. The PNG signature bytes and the individual chunks are marked with colors. On the left side, the byte values are shown in hex format, on the right side as their equivalent characters from ISO-8859-1 with unrecognized and control characters replaced with periods. This dual display is common for hex editors. Note that the chunks are easy to identify because of their human readable 4-byte type names (in this example IHDR, IDAT & IEND).{| class="wikitable"! Hex! As Characters89 50 4E 47 0D 0A 1A 0A 00 00 00 0D 49 48 44 52DE 00 00 00 0E 49 44 41 54 78 DA 62 F8 CF C0 0010 60 00 03 01 01 00 66 FD 9F 24 00 00 00 00 4945 4E 44 AE 42 60 82.PNG........IHDR..............wSÞ....IDATxÚbøÏÀ..`.....fý.$....IEND®B`.The APNG specification introduces three new chunks: The animation control chunk (acTL), the frame control chunk (fcTL) and the frame data chunk (fdAT). The animation control chunk is a kind of "marker" chunk, telling the parser that this is an animated png. It contains information about how many frames the animation consists of and how many times the animation should play before coming to rest. The frame control chunk contains several bits of information, the most important of which is the display time of the following frame. The frame data chunks have the same structure as the IDAT chunks, except preceded by a sequence number. Sequence numbers apply to both frame control and frame data chunks, which together follow a common sequence, thus enabling the order and timing of frames to be recoveredChunk Sequence Numbers (APNG spec) should an APNG-unaware PNG editor re-order them as allowed by PNG chunk ordering rules.Chunk Ordering Rules (PNG 1.2 spec)A program wanting to assemble several individual PNG files to an animated PNG could proceed as follows:
  1. Take all chunks of the first PNG file as a building basis.
  2. Insert an animation control chunk (acTL) after the image header chunk (IHDR).
  3. If the first PNG is to be part of the animation, insert a frame control chunk (fcTL) before the image data chunk (IDAT).
  4. For each of the remaining frames, add a frame control chunk (fcTL) and a frame data chunk (fdAT). Then add the image end chunk (IEND). The content for the frame data chunks (fdAT) is taken from the image data chunks (IDAT) of their respective source images.
The next diagram illustrates this process.frame|none|Diagram illustrating a possible way to assemble an animated png from 3 individual PNG filesThe PNG specification was designed with future extensions in mind. An application reading a PNG file is supposed to simply ignore any chunks which it does not understand. This is the reason why APNG is backwards compatible. Existing applications just recognize the first frame and ignore the additional animation chunks.

Alternatives

Raster formats

The MNG file format is a more powerful alternative to APNG, although it's a more complex format.{{Citation needed|date=November 2012}} It also has less web browser support. Mozilla and Netscape browsers removed the MNG support in 2003,Bug 195280 – Removal of MNG/JNG support and MNG support was never included in Google Chrome, Internet Explorer, Opera, or Safari.The GIF file format has better application and browser support than APNG, but it is limited to 256 colors per frame and supports only index transparency, by mapping one of the palette colors to transparent.WebM, a video format, has been adopted by some sites such as 4chan as an alternative to other animated formats, including APNG. WebM VP9 supports both lossy and lossless compression, but no transparency.Google WebP also supports Truecolor with alpha channel animation.

Vector formats

SVG combined with scripting or SMIL can animate vector graphics and can incorporate raster graphics. (See SVG animation.)

Scripting and other methods

Dynamic graphics created with the HTML 5 canvas Object can also be animated. The APNG addon for Google Chrome uses this technique to display APNG images.CSS Animations is a proposed module for Cascading Style Sheets that allows for the animation of XML elements using CSS.An alternative method for animations in web pages is to use conventional static images and animate them using JavaScriptWEB,weblink AniPNG Demonstration, 2008-12-08, or plugin based technologies like Adobe Flash, Microsoft Silverlight and Java.

References

{{Reflist|30em}}

External links

{{Commons category|Animated PNG}} {{Graphics file formats}}{{Compression formats}}

- content above as imported from Wikipedia
- "APNG" does not exist on GetWiki (yet)
- time: 8:11pm EDT - Thu, Sep 19 2019
[ this remote article is provided by Wikipedia ]
LATEST EDITS [ see all ]
GETWIKI 09 JUL 2019
Eastern Philosophy
History of Philosophy
GETWIKI 09 MAY 2016
GETWIKI 18 OCT 2015
M.R.M. Parrott
Biographies
GETWIKI 20 AUG 2014
GETWIKI 19 AUG 2014
CONNECT