CINXE.COM
APNG Specification - MozillaWiki
<!DOCTYPE html> <html lang="en" dir="ltr" class="client-nojs"> <head> <meta charset="UTF-8"/> <title>APNG Specification - MozillaWiki</title> <script>document.documentElement.className = document.documentElement.className.replace( /(^|\s)client-nojs(\s|$)/, "$1client-js$2" );</script> <script>(window.RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgCanonicalNamespace":"","wgCanonicalSpecialPageName":false,"wgNamespaceNumber":0,"wgPageName":"APNG_Specification","wgTitle":"APNG Specification","wgCurRevisionId":1097754,"wgRevisionId":1097754,"wgArticleId":16916,"wgIsArticle":true,"wgIsRedirect":false,"wgAction":"view","wgUserName":null,"wgUserGroups":["*"],"wgCategories":[],"wgBreakFrames":false,"wgPageContentLanguage":"en","wgPageContentModel":"wikitext","wgSeparatorTransformTable":["",""],"wgDigitTransformTable":["",""],"wgDefaultDateFormat":"dmy","wgMonthNames":["","January","February","March","April","May","June","July","August","September","October","November","December"],"wgMonthNamesShort":["","Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"wgRelevantPageName":"APNG_Specification","wgRelevantArticleId":16916,"wgRequestId":"a8d2e256145b28923c1ad505","wgIsProbablyEditable":false,"wgRestrictionEdit":[],"wgRestrictionMove":[],"srfFilteredConfig":null,"wgWikiEditorEnabledModules":{"toolbar":true,"dialogs":true,"preview":true,"publish":false},"wgPageFormsAutocompleteValues":[],"wgPageFormsAutocompleteOnAllChars":false,"wgPageFormsFieldProperties":[],"wgPageFormsCargoFields":[],"wgPageFormsDependentFields":[],"wgPageFormsGridValues":[],"wgPageFormsGridParams":[],"wgPageFormsShowOnSelect":[],"wgPageFormsScriptPath":"/extensions/PageForms","edgValues":null,"wgPageFormsEDSettings":null,"wgPreferredVariant":"en"});mw.loader.implement("user.options",function($,jQuery,require,module){mw.user.options.set({"variant":"en"});});mw.loader.implement("user.tokens",function ( $, jQuery, require, module ) { mw.user.tokens.set({"editToken":"+\\","patrolToken":"+\\","watchToken":"+\\","csrfToken":"+\\"});/*@nomin*/; });mw.loader.load(["ext.smw.style","mediawiki.page.startup","ext.Bugzilla","skins.vector.js"]);});</script> <link rel="stylesheet" href="/load.php?debug=false&lang=en&modules=ext.Sandstone.main%7Cmediawiki.legacy.commonPrint%2Cshared%7Cmediawiki.sectionAnchor%7Cmediawiki.skinning.interface%7Cskins.vector.styles&only=styles&skin=vector"/> <link rel="stylesheet" href="/load.php?debug=false&lang=en&modules=ext.smw.style%7Cext.smw.tooltip.styles&only=styles&skin=vector"/> <meta name="ResourceLoaderDynamicStyles" content=""/> <link rel="stylesheet" href="/load.php?debug=false&lang=en&modules=site&only=styles&skin=vector"/> <script async="" src="/load.php?debug=false&lang=en&modules=startup&only=scripts&skin=vector"></script> <meta name="generator" content="MediaWiki 1.27.4"/> <link rel="alternate" media="only screen and (max-width: 720px)" href="https://m.wiki.mozilla.org/APNG_Specification"/> <link rel="alternate" type="application/rdf+xml" title="APNG Specification" href="/index.php?title=Special:ExportRDF/APNG_Specification&xmlmime=rdf"/> <link rel="shortcut icon" href="/skins/common/favicon.ico"/> <link rel="search" type="application/opensearchdescription+xml" href="/opensearch_desc.php" title="MozillaWiki (en)"/> <link rel="EditURI" type="application/rsd+xml" href="https://wiki.mozilla.org/api.php?action=rsd"/> </head> <body class="mediawiki ltr sitedir-ltr ns-0 ns-subject page-APNG_Specification rootpage-APNG_Specification skin-vector action-view"> <div id="mw-page-base" class="noprint"></div> <div id="mw-head-base" class="noprint"></div> <div id="content" class="mw-body" role="main"> <a id="top"></a> <div class="mw-indicators"> </div> <h1 id="firstHeading" class="firstHeading" lang="en">APNG Specification</h1> <div id="bodyContent" class="mw-body-content"> <div id="siteSub">From MozillaWiki</div> <div id="contentSub"></div> <div id="jump-to-nav" class="mw-jump"> Jump to: <a href="#mw-head">navigation</a>, <a href="#p-search">search</a> </div> <div id="mw-content-text" lang="en" dir="ltr" class="mw-content-ltr"><p>APNG 1.0 </p><p>Authors: </p> <ul><li> Stuart Parmenter <pavlov@pavlov.net></li> <li> Vladimir Vukicevic <vladimir@pobox.com></li> <li> Andrew Smith <asmith16@littlesvr.ca></li></ul> <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div> <ul> <li class="toclevel-1 tocsection-1"><a href="#Overview"><span class="tocnumber">1</span> <span class="toctext">Overview</span></a> <ul> <li class="toclevel-2 tocsection-2"><a href="#Terminology"><span class="tocnumber">1.1</span> <span class="toctext">Terminology</span></a></li> <li class="toclevel-2 tocsection-3"><a href="#Error_Handling"><span class="tocnumber">1.2</span> <span class="toctext">Error Handling</span></a></li> </ul> </li> <li class="toclevel-1 tocsection-4"><a href="#Structure"><span class="tocnumber">2</span> <span class="toctext">Structure</span></a> <ul> <li class="toclevel-2 tocsection-5"><a href="#Chunk_Sequence_Numbers"><span class="tocnumber">2.1</span> <span class="toctext">Chunk Sequence Numbers</span></a></li> <li class="toclevel-2 tocsection-6"><a href="#.60acTL.60:_The_Animation_Control_Chunk"><span class="tocnumber">2.2</span> <span class="toctext">`acTL`: The Animation Control Chunk</span></a></li> <li class="toclevel-2 tocsection-7"><a href="#.60fcTL.60:_The_Frame_Control_Chunk"><span class="tocnumber">2.3</span> <span class="toctext">`fcTL`: The Frame Control Chunk</span></a></li> <li class="toclevel-2 tocsection-8"><a href="#.60fdAT.60:_The_Frame_Data_Chunk"><span class="tocnumber">2.4</span> <span class="toctext">`fdAT`: The Frame Data Chunk</span></a></li> </ul> </li> <li class="toclevel-1 tocsection-9"><a href="#MIME_type"><span class="tocnumber">3</span> <span class="toctext">MIME type</span></a></li> <li class="toclevel-1 tocsection-10"><a href="#Revisions_to_this_Specification"><span class="tocnumber">4</span> <span class="toctext">Revisions to this Specification</span></a> <ul> <li class="toclevel-2 tocsection-11"><a href="#From_0.1"><span class="tocnumber">4.1</span> <span class="toctext">From 0.1</span></a></li> <li class="toclevel-2 tocsection-12"><a href="#From_0.2"><span class="tocnumber">4.2</span> <span class="toctext">From 0.2</span></a></li> <li class="toclevel-2 tocsection-13"><a href="#From_0.3"><span class="tocnumber">4.3</span> <span class="toctext">From 0.3</span></a></li> <li class="toclevel-2 tocsection-14"><a href="#From_0.4"><span class="tocnumber">4.4</span> <span class="toctext">From 0.4</span></a></li> <li class="toclevel-2 tocsection-15"><a href="#From_0.5"><span class="tocnumber">4.5</span> <span class="toctext">From 0.5</span></a></li> <li class="toclevel-2 tocsection-16"><a href="#From_0.6"><span class="tocnumber">4.6</span> <span class="toctext">From 0.6</span></a></li> <li class="toclevel-2 tocsection-17"><a href="#From_0.7"><span class="tocnumber">4.7</span> <span class="toctext">From 0.7</span></a></li> <li class="toclevel-2 tocsection-18"><a href="#From_0.8"><span class="tocnumber">4.8</span> <span class="toctext">From 0.8</span></a></li> <li class="toclevel-2 tocsection-19"><a href="#From_0.9"><span class="tocnumber">4.9</span> <span class="toctext">From 0.9</span></a></li> <li class="toclevel-2 tocsection-20"><a href="#From_0.10"><span class="tocnumber">4.10</span> <span class="toctext">From 0.10</span></a></li> </ul> </li> <li class="toclevel-1 tocsection-21"><a href="#Test_Encoder_and_Sample_Images"><span class="tocnumber">5</span> <span class="toctext">Test Encoder and Sample Images</span></a></li> <li class="toclevel-1 tocsection-22"><a href="#A._References"><span class="tocnumber">6</span> <span class="toctext">A. References</span></a></li> <li class="toclevel-1 tocsection-23"><a href="#B._Tests"><span class="tocnumber">7</span> <span class="toctext">B. Tests</span></a></li> </ul> </div> <h1><span class="mw-headline" id="Overview">Overview</span></h1> <p>APNG is an extension of the <a rel="nofollow" class="external text" href="http://www.w3.org/TR/PNG/">PNG</a> format, adding support for animated images. It is intended to be a replacement for simple animated images that have traditionally used the <a rel="nofollow" class="external text" href="http://www.w3.org/Graphics/GIF/spec-gif89a.txt">GIF</a> format, while adding support for 24-bit images and 8-bit transparency. APNG is a simpler alternative to MNG, providing a spec suitable for the most common usage of animated images on the Internet. </p><p>APNG is backwards-compatible with PNG; any PNG decoder should be able to ignore the APNG-specific chunks and display a single image. </p> <h2><span class="mw-headline" id="Terminology">Terminology</span></h2> <p>The "default image" is the image described by the standard `IDAT` chunks, and is the image that is displayed by decoders that do not support APNG. </p><p>The "canvas" is the area on the output device on which the frames are to be displayed. The contents of the canvas are not necessarily available to the decoder. As per the PNG Specification, if a `bKGD` chunk exists it may be used to fill the canvas if there is no preferable background. </p><p>The "output buffer" is a pixel array with dimensions specified by the width and height parameters of the PNG `IHDR` chunk. Conceptually, each frame is constructed in the output buffer before being composited onto the canvas. The contents of the output buffer are available to the decoder. The corners of the output buffer are mapped to the corners of the canvas. </p><p>"Fully transparent black" means red, green, blue and alpha components are all set to zero. </p><p>For purposes of chunk descriptions, an "unsigned int" shall be a 32-bit unsigned integer in network byte order limited to the range 0 to (2^31)-1; an "unsigned short" shall be a 16-bit unsigned integer in network byte order with the range 0 to (2^16)-1; a "byte" shall be an 8-bit unsigned integer with the range 0 to (2^8)-1. </p> <h2><span class="mw-headline" id="Error_Handling">Error Handling</span></h2> <p>APNG is designed to allow incremental display of frames before the entire image has been read. This implies that some errors may not be detected until partway through the animation. It is strongly recommended that when any error is encountered decoders should discard all subsequent frames, stop the animation, and revert to displaying the default image. A decoder which detects an error before the animation has started should display the default image. An error message may be displayed to the user if appropriate. </p> <h1><span class="mw-headline" id="Structure">Structure</span></h1> <p>An APNG stream is a normal PNG stream as defined in the <a rel="nofollow" class="external text" href="http://www.w3.org/TR/PNG/">PNG Specification</a>, with three additional chunk types describing the animation and providing additional frame data. </p><p>To be recognized as an APNG, an `acTL` chunk must appear in the stream before any `IDAT` chunks. The `acTL` structure is described below. </p><p>Conceptually, at the beginning of each play the output buffer must be completely initialized to a fully transparent black rectangle, with width and height dimensions from the `IHDR` chunk. </p><p>The default image may be included as the first frame of the animation by the presence of a single `fcTL` chunk before `IDAT`. Otherwise, the default image is not part of the animation. </p><p>Subsequent frames are encoded in `fdAT` chunks, which have the same structure as `IDAT` chunks, except preceded by a sequence number. Information for each frame about placement and rendering is stored in `fcTL` chunks. The full layout of `fdAT` and `fcTL` chunks is described below. </p><p>The boundaries of the entire animation are specified by the width and height parameters of the PNG `IHDR` chunk, regardless of whether the default image is part of the animation. The default image should be appropriately padded with fully transparent pixels if extra space will be needed for later frames. </p><p>Each frame is identical for each play, therefore it is safe for applications to cache the frames. </p> <h2><span class="mw-headline" id="Chunk_Sequence_Numbers">Chunk Sequence Numbers</span></h2> <p>The `fcTL` and `fdAT` chunks have a 4 byte sequence number. Both chunk types share the sequence. The purpose of this number is to detect (and optionally correct) sequence errors in an Animated PNG, since the PNG specification does not impose ordering restrictions on ancillary chunks. </p><p>The first `fcTL` chunk must contain sequence number 0, and the sequence numbers in the remaining `fcTL` and `fdAT` chunks must be in order, with no gaps or duplicates. </p><p>The tables below illustrates the use of sequence numbers for images with more than one frame and more than one `fdAT` chunk. </p><p>If the default image is the first frame: </p> <pre> Sequence number Chunk (none) `acTL` 0 `fcTL` first frame (none) `IDAT` first frame / default image 1 `fcTL` second frame 2 first `fdAT` for second frame 3 second `fdAT` for second frame .... </pre> <p>If the default image is not part of the animation: </p> <pre> Sequence number Chunk (none) `acTL` (none) `IDAT` default image 0 `fcTL` first frame 1 first `fdAT` for first frame 2 second `fdAT` for first frame .... </pre> <p>Decoders must treat out-of-order APNG chunks as an error. APNG-aware PNG editors should restore them to correct order using the sequence numbers. </p> <h2><span class="mw-headline" id=".60acTL.60:_The_Animation_Control_Chunk">`acTL`: The Animation Control Chunk</span></h2> <p>The `acTL` chunk is an ancillary chunk as defined in the PNG Specification. It must appear before the first `IDAT` chunk within a valid PNG stream. </p><p>The `acTL` chunk contains: </p> <pre> byte 0 num_frames (unsigned int) Number of frames 4 num_plays (unsigned int) Number of times to loop this APNG. 0 indicates infinite looping. </pre> <p>`num_frames` indicates the total number of frames in the animation. This must equal the number of `fcTL` chunks. 0 is not a valid value. 1 is a valid value for a single-frame APNG. If this value does not equal the actual number of frames it should be treated as an error. </p><p>`num_plays` indicates the number of times that this animation should play; if it is 0, the animation should play indefinitely. If nonzero, the animation should come to rest on the final frame at the end of the last play. </p> <h2><span class="mw-headline" id=".60fcTL.60:_The_Frame_Control_Chunk">`fcTL`: The Frame Control Chunk</span></h2> <p>The `fcTL` chunk is an ancillary chunk as defined in the PNG Specification. It must appear before the `IDAT` or `fdAT` chunks of the frame to which it applies, specifically: </p> <ul><li> For the default image, if a `fcTL` chunk is present it must appear before the first `IDAT` chunk. Position relative to the `acTL` chunk is not specified.</li> <li> For the first frame excluding the default image (which may be either the first or second frame), the `fcTL` chunk must appear after all `IDAT` chunks and before the `fdAT` chunks for the frame.</li> <li> For all subsequent frames, the `fcTL` chunk for frame N must appear after the `fdAT` chunks from frame N-1 and before the `fdAT` chunks for frame N.</li> <li> Other ancillary chunks are allowed to appear among the APNG chunks, including between `fdAT` chunks.</li></ul> <p>Exactly one `fcTL` chunk is required for each frame. </p><p>Format: </p> <pre> byte 0 sequence_number (unsigned int) Sequence number of the animation chunk, starting from 0 4 width (unsigned int) Width of the following frame 8 height (unsigned int) Height of the following frame 12 x_offset (unsigned int) X position at which to render the following frame 16 y_offset (unsigned int) Y position at which to render the following frame 20 delay_num (unsigned short) Frame delay fraction numerator 22 delay_den (unsigned short) Frame delay fraction denominator 24 dispose_op (byte) Type of frame area disposal to be done after rendering this frame 25 blend_op (byte) Type of frame area rendering for this frame </pre> <p>The frame must be rendered within the region defined by `x_offset`, `y_offset`, `width`, and `height`. The offsets must be non-negative, the dimensions must be positive, and the region may not fall outside of the default image. </p><p>Constraints on frame regions: </p> <pre> `x_offset` >= 0 `y_offset` >= 0 `width` > 0 `height` > 0 `x_offset` + `width` <= `IHDR` width `y_offset` + `height` <= `IHDR` height </pre> <p>The `delay_num` and `delay_den` parameters together specify a fraction indicating the time to display the current frame, in seconds. If the denominator is 0, it is to be treated as if it were 100 (that is, `delay_num` then specifies 1/100ths of a second). If the the value of the numerator is 0 the decoder should render the next frame as quickly as possible, though viewers may impose a reasonable lower bound. </p><p>Frame timings should be independent of the time required for decoding and display of each frame, so that animations will run at the same rate regardless of the performance of the decoder implementation. </p><p>`dispose_op` specifies how the output buffer should be changed at the end of the delay (before rendering the next frame). </p><p>Valid values for `dispose_op` are: </p> <pre> value 0 APNG_DISPOSE_OP_NONE 1 APNG_DISPOSE_OP_BACKGROUND 2 APNG_DISPOSE_OP_PREVIOUS </pre> <ul><li> APNG_DISPOSE_OP_NONE: no disposal is done on this frame before rendering the next; the contents of the output buffer are left as is.</li> <li> APNG_DISPOSE_OP_BACKGROUND: the frame's region of the output buffer is to be cleared to fully transparent black before rendering the next frame.</li> <li> APNG_DISPOSE_OP_PREVIOUS: the frame's region of the output buffer is to be reverted to the previous contents before rendering the next frame.</li></ul> <p>If the first `fcTL` chunk uses a `dispose_op` of APNG_DISPOSE_OP_PREVIOUS it should be treated as APNG_DISPOSE_OP_BACKGROUND. </p><p>`blend_op` specifies whether the frame is to be alpha blended into the current output buffer content, or whether it should completely replace its region in the output buffer. </p><p>Valid values for `blend_op` are: </p> <pre> value 0 APNG_BLEND_OP_SOURCE 1 APNG_BLEND_OP_OVER </pre> <p>If `blend_op` is APNG_BLEND_OP_SOURCE all color components of the frame, including alpha, overwrite the current contents of the frame's output buffer region. If `blend_op` is APNG_BLEND_OP_OVER the frame should be composited onto the output buffer based on its alpha, using a simple OVER operation as described in the "Alpha Channel Processing" section of the PNG specification [PNG-1.2]. Note that the second variation of the sample code is applicable. </p><p>Note that for the first frame the two blend modes are functionally equivalent due to the clearing of the output buffer at the beginning of each play. </p><p>The `fcTL` chunk corresponding to the default image, if it exists, has these restrictions: </p> <ul><li> The `x_offset` and `y_offset` fields must be 0.</li> <li> The `width` and `height` fields must equal the corresponding fields from the `IHDR` chunk.</li></ul> <p>As noted earlier, the output buffer must be completely initialized to fully transparent black at the beginning of each play. This is to ensure that each play of the animation will be identical. Decoders are free to avoid an explicit clear step as long as the result is guaranteed to be identical. For example, if the default image is included in the animation, and uses a `blend_op` of APNG_BLEND_OP_SOURCE, clearing is not necessary because the entire output buffer will be overwritten. </p><p>Note, at the end of the fcTL chunk is a 32-bit CRC checksum. The checksum is calculated using the fcTL chunk and includes the 'fcTL' bytes. </p> <h2><span class="mw-headline" id=".60fdAT.60:_The_Frame_Data_Chunk">`fdAT`: The Frame Data Chunk</span></h2> <p>The `fdAT` chunk has the same purpose as an `IDAT` chunk. It has the same structure as an `IDAT` chunk, except preceded by a sequence number. </p><p>At least one `fdAT` chunk is required for each frame. The compressed datastream is then the concatenation of the contents of the data fields of all the `fdAT` chunks within a frame. When decompressed, the datastream is the complete pixel data of a PNG image, including the filter byte at the beginning of each scanline, similar to the uncompressed data of all the `IDAT` chunks. It utilizes the same bit depth, color type, compression method, filter method, interlace method, and palette (if any) as the default image. </p><p>Format: </p> <pre> byte 0 sequence_number (unsigned int) Sequence number of the animation chunk, starting from 0 4 frame_data X bytes Frame data for this frame </pre> <p>Each frame inherits every property specified by any critical or ancillary chunks before the first `IDAT` in the file, except the width and height, which come from the `fcTL` chunk. </p><p>If the PNG `pHYs` chunk is present, the APNG images and their `x_offset` and `y_offset` values must be scaled in the same way as the main image. Conceptually, such scaling occurs while mapping the output buffer onto the canvas. </p> <h1><span class="mw-headline" id="MIME_type">MIME type</span></h1> <p>APNG can be identified using the <code>image/apng</code> MIME type. </p> <h1><span class="mw-headline" id="Revisions_to_this_Specification">Revisions to this Specification</span></h1> <h2><span class="mw-headline" id="From_0.1">From 0.1</span></h2> <ul><li> Renamed chunks to `anIm` and `frAm` to comply with chunk naming conventions in the PNG spec.</li></ul> <ul><li> Added a more detailed explanation of APNG structure in Section 2.</li></ul> <ul><li> Added information for png interaction with other chunks in section 3.2.</li></ul> <ul><li> Changed `frAm` chunk offsets and delay into signed integers.</li></ul> <h2><span class="mw-headline" id="From_0.2">From 0.2</span></h2> <ul><li> Changed `frAm` chunk to `afRa` to avoid conflict with MNG `FRAM` chunk.</li></ul> <ul><li> Changed format: instead of sequences of IHDR..IDAT..IEND, frames other than frame 0 are stored in `afRa` chunks.</li></ul> <ul><li> Added `start_frame` to `anIm` to indicate which frame the animation should start on.</li></ul> <ul><li> Removed `num_frames` from `anIm` chunk</li></ul> <h2><span class="mw-headline" id="From_0.3">From 0.3</span></h2> <ul><li> Added `aCTL`, `fdAT`, `fcTL` chunk descriptions as per the latest png-list discussion</li></ul> <ul><li> Added section 4, "Interactions with other PNG chunks"; described global and local palettes and transparency</li></ul> <ul><li> Changed `oFFs` chunk section to refer to more general chunks</li></ul> <ul><li> Updated `aDAT` description to indicate that all frames must either be in a single chunk, or that the first chunk must have empty data.</li></ul> <ul><li> Added notice that each frame's region (x,y,width,height) must lie completely within the parent PNG canvas</li></ul> <ul><li> Fixed dispose_op description (after, not before)</li></ul> <ul><li> Changed dispose_op to render_op; added disposal description; added BLEND flag</li></ul> <ul><li> Changed delay_time to a delay numerator and denominator, for specifying delays that don't into integer numbers of milliseconds.</li></ul> <ul><li> Added note to clarify that palette animation is not supported.</li></ul> <ul><li> Removed start_frame from aCTL; require fcTL for frame 0; added SKIP_FRAME fCTL flag.</li></ul> <h2><span class="mw-headline" id="From_0.4">From 0.4</span></h2> <ul><li> Reintroduced num_frames into aCTL</li></ul> <ul><li> Moved sequence_number from aDAT into fCTL</li></ul> <ul><li> Changed contents of aDAT to fCTL+IDATs+fEND</li></ul> <ul><li> Added clarifications on what's allowed and what isn't</li></ul> <ul><li> Renamed aCTL to acTL, fCTL to fcTL, aDAT to fdAT and fEND to feND to comply with the PNG spec chunk naming requirements</li></ul> <h2><span class="mw-headline" id="From_0.5">From 0.5</span></h2> <ul><li> Added the IHDR and PLTE CRCs to the acTl chunk</li></ul> <ul><li> The acTL fcTL and adAT are now copy safe, renamed them to acTl, fcTl and adAt</li></ul> <h2><span class="mw-headline" id="From_0.6">From 0.6</span></h2> <ul><li> The fdAt chunk is no longer a container for other chunks, but rather a replacement for an IDAT chunk</li></ul> <ul><li> Removed the feND chunk</li></ul> <ul><li> Added a sequence number field to fdAt</li></ul> <ul><li> Reintroduced the width and height fields in fcTl</li></ul> <h2><span class="mw-headline" id="From_0.7">From 0.7</span></h2> <ul><li> Removed 'hidden' flag, instead only the first frame can be hidden and it is signaled with a missing fcTl</li></ul> <ul><li> IDAT, fcTl and fdAt are no longer required to have no other chunks in between them</li></ul> <h2><span class="mw-headline" id="From_0.8">From 0.8</span></h2> <ul><li> Removed CRCs for IHDR and PLTE from acTl</li></ul> <ul><li> The acTL fcTL and adAT are now not copy safe, renamed them to acTL, fcTL and adAT</li></ul> <h2><span class="mw-headline" id="From_0.9">From 0.9</span></h2> <ul><li> Split render_op into dispose_op and blend_op</li></ul> <h2><span class="mw-headline" id="From_0.10">From 0.10</span></h2> <ul><li> No changes</li></ul> <h1><span class="mw-headline" id="Test_Encoder_and_Sample_Images">Test Encoder and Sample Images</span></h1> <ul><li>Sample images are available from the APNG implementation page at <a rel="nofollow" class="external free" href="http://littlesvr.ca/apng/">http://littlesvr.ca/apng/</a></li> <li>An encoder (open source) is available in Mozilla versions newer than alpha 4.</li> <li>An application (open source) using the Mozilla encoder to assemble APNGs available here: <a rel="nofollow" class="external free" href="http://littlesvr.ca/apng/apngedit.html">http://littlesvr.ca/apng/apngedit.html</a></li></ul> <h1><span class="mw-headline" id="A._References">A. References</span></h1> <ul><li><a rel="nofollow" class="external free" href="http://www.w3.org/TR/PNG/">http://www.w3.org/TR/PNG/</a> "Portable Network Graphics (PNG) Specification (Second Edition)"</li> <li><a rel="nofollow" class="external free" href="http://pmt.sourceforge.net/specs/png-1.2-pdg.html">http://pmt.sourceforge.net/specs/png-1.2-pdg.html</a> "Extensions to the PNG Specification, Version 1.2.0"</li> <li><a rel="nofollow" class="external free" href="http://www.w3.org/Graphics/GIF/spec-gif89a.txt">http://www.w3.org/Graphics/GIF/spec-gif89a.txt</a> "Graphics Interchange Format 89a"</li> <li><a rel="nofollow" class="external free" href="http://www.animatedpng.com">http://www.animatedpng.com</a> "APNG Project - official Site"</li></ul> <h1><span class="mw-headline" id="B._Tests">B. Tests</span></h1> <ul><li> <a rel="nofollow" class="external free" href="http://philip.html5.org/tests/apng/tests.html">http://philip.html5.org/tests/apng/tests.html</a></li></ul> <!-- NewPP limit report Cached time: 20241123170507 Cache expiry: 86400 Dynamic content: false [SMW] In鈥恡ext annotation parser time: 0.001 seconds CPU time usage: 0.008 seconds Real time usage: 0.011 seconds Preprocessor visited node count: 91/1000000 Preprocessor generated node count: 96/1000000 Post鈥恊xpand include size: 0/2097152 bytes Template argument size: 0/2097152 bytes Highest expansion depth: 2/40 Expensive parser function count: 0/100 --> <!-- Transclusion expansion time report (%,ms,calls,template) 100.00% 0.000 1 - -total --> <!-- Saved in parser cache with key wiki:pcache:idhash:16916-0!*!*!!en!*!* and timestamp 20241123170507 and revision id 1097754 --> </div> <div class="printfooter"> Retrieved from "<a dir="ltr" href="https://wiki.mozilla.org/index.php?title=APNG_Specification&oldid=1097754">https://wiki.mozilla.org/index.php?title=APNG_Specification&oldid=1097754</a>" </div> <div id="catlinks" class="catlinks catlinks-allhidden" data-mw="interface"></div> <div class="visualClear"></div> </div> </div> <div id="mw-navigation"> <h2>Navigation menu</h2> <div id="mw-head"> <div id="p-personal" role="navigation" class="" aria-labelledby="p-personal-label"> <h3 id="p-personal-label">Personal tools</h3> <ul> <li id="pt-login"><a href="/index.php?title=Special:UserLogin&returnto=APNG+Specification" title="You are encouraged to log in; however, it is not mandatory [o]" accesskey="o">Log in</a></li><li id="pt-createaccount"><a href="/Special:RequestAccount" title="You are encouraged to create an account and log in; however, it is not mandatory">Request account</a></li> </ul> </div> <div id="left-navigation"> <div id="p-namespaces" role="navigation" class="vectorTabs" aria-labelledby="p-namespaces-label"> <h3 id="p-namespaces-label">Namespaces</h3> <ul> <li id="ca-nstab-main" class="selected"><span><a href="/APNG_Specification" title="View the content page [c]" accesskey="c">Page</a></span></li> <li id="ca-talk"><span><a href="/Talk:APNG_Specification" title="Discussion about the content page [t]" accesskey="t" rel="discussion">Discussion</a></span></li> </ul> </div> <div id="p-variants" role="navigation" class="vectorMenu emptyPortlet" aria-labelledby="p-variants-label"> <h3 id="p-variants-label"> <span>Variants</span><a href="#"></a> </h3> <div class="menu"> <ul> </ul> </div> </div> </div> <div id="right-navigation"> <div id="p-views" role="navigation" class="vectorTabs" aria-labelledby="p-views-label"> <h3 id="p-views-label">Views</h3> <ul> <li id="ca-view" class="selected"><span><a href="/APNG_Specification" >Read</a></span></li> <li id="ca-viewsource"><span><a href="/index.php?title=APNG_Specification&action=edit" title="This page is protected. You can view its source [e]" accesskey="e">View source</a></span></li> <li id="ca-history" class="collapsible"><span><a href="/index.php?title=APNG_Specification&action=history" title="Past revisions of this page [h]" accesskey="h">View history</a></span></li> </ul> </div> <div id="p-cactions" role="navigation" class="vectorMenu emptyPortlet" aria-labelledby="p-cactions-label"> <h3 id="p-cactions-label"><span>More</span><a href="#"></a></h3> <div class="menu"> <ul> </ul> </div> </div> <div id="p-search" role="search"> <h3> <label for="searchInput">Search</label> </h3> <form action="/index.php" id="searchform"> <div id="simpleSearch"> <input type="search" name="search" placeholder="Search" title="Search MozillaWiki [f]" accesskey="f" id="searchInput"/><input type="hidden" value="Special:Search" name="title"/><input type="submit" name="fulltext" value="Search" title="Search the pages for this text" id="mw-searchButton" class="searchButton mw-fallbackSearchButton"/><input type="submit" name="go" value="Go" title="Go to a page with this exact name if it exists" id="searchButton" class="searchButton"/> </div> </form> </div> </div> </div> <div id="mw-panel"> <div id="p-logo" role="banner"><a class="mw-wiki-logo" href="/Main_Page" title="Visit the main page"></a></div> <div class="portal" role="navigation" id='p-navigation' aria-labelledby='p-navigation-label'> <h3 id='p-navigation-label'>Navigation</h3> <div class="body"> <ul> <li id="n-mainpage-description"><a href="/Main_Page" title="Visit the main page [z]" accesskey="z">Main page</a></li><li id="n-Product-releases"><a href="/Releases">Product releases</a></li><li id="n-newpages"><a href="/Special:NewPages">New pages</a></li><li id="n-recentchanges"><a href="/Special:RecentChanges" title="A list of recent changes in the wiki [r]" accesskey="r">Recent changes</a></li><li id="n-Recent-uploads"><a href="/Special:NewFiles">Recent uploads</a></li><li id="n-randompage"><a href="/Special:Random" title="Load a random page [x]" accesskey="x">Random page</a></li><li id="n-Help"><a href="/MozillaWiki:Help">Help</a></li> </ul> </div> </div> <div class="portal" role="navigation" id='p-How_to_Contribute' aria-labelledby='p-How_to_Contribute-label'> <h3 id='p-How_to_Contribute-label'>How to Contribute</h3> <div class="body"> <ul> <li id="n-All-hands-meeting"><a href="/WeeklyUpdates">All-hands meeting</a></li><li id="n-Other-meetings"><a href="/Community_Calendar">Other meetings</a></li><li id="n-Contribute-to-Mozilla"><a href="/Contribute">Contribute to Mozilla</a></li><li id="n-Mozilla-Reps"><a href="/ReMo">Mozilla Reps</a></li><li id="n-Community-Portal"><a href="//community.mozilla.org" rel="nofollow">Community Portal</a></li> </ul> </div> </div> <div class="portal" role="navigation" id='p-MozillaWiki' aria-labelledby='p-MozillaWiki-label'> <h3 id='p-MozillaWiki-label'>MozillaWiki</h3> <div class="body"> <ul> <li id="n-About"><a href="/MozillaWiki:About">About</a></li><li id="n-Team"><a href="/MozillaWiki:Team">Team</a></li><li id="n-Policies"><a href="/MozillaWiki:Policies">Policies</a></li><li id="n-Report-a-wiki-bug"><a href="//bugzilla.mozilla.org/enter_bug.cgi?product=Websites&component=wiki.mozilla.org" rel="nofollow">Report a wiki bug</a></li> </ul> </div> </div> <div class="portal" role="navigation" id='p-Around_Mozilla' aria-labelledby='p-Around_Mozilla-label'> <h3 id='p-Around_Mozilla-label'>Around Mozilla</h3> <div class="body"> <ul> <li id="n-Mozilla-Support"><a href="//support.mozilla.org/" rel="nofollow">Mozilla Support</a></li><li id="n-Mozilla-Developer-Network"><a href="//developer.mozilla.org/" rel="nofollow">Mozilla Developer Network</a></li><li id="n-Planet-Mozilla"><a href="//planet.mozilla.org/" rel="nofollow">Planet Mozilla</a></li><li id="n-Mozilla-Blog"><a href="//blog.mozilla.org/" rel="nofollow">Mozilla Blog</a></li><li id="n-Research"><a href="//www.mozilla.org/research/" rel="nofollow">Research</a></li> </ul> </div> </div> <div class="portal" role="navigation" id='p-tb' aria-labelledby='p-tb-label'> <h3 id='p-tb-label'>Tools</h3> <div class="body"> <ul> <li id="t-whatlinkshere"><a href="/Special:WhatLinksHere/APNG_Specification" title="A list of all wiki pages that link here [j]" accesskey="j">What links here</a></li><li id="t-recentchangeslinked"><a href="/Special:RecentChangesLinked/APNG_Specification" title="Recent changes in pages linked from this page [k]" accesskey="k">Related changes</a></li><li id="t-specialpages"><a href="/Special:SpecialPages" title="A list of all special pages [q]" accesskey="q">Special pages</a></li><li id="t-print"><a href="/index.php?title=APNG_Specification&printable=yes" rel="alternate" title="Printable version of this page [p]" accesskey="p">Printable version</a></li><li id="t-permalink"><a href="/index.php?title=APNG_Specification&oldid=1097754" title="Permanent link to this revision of the page">Permanent link</a></li><li id="t-info"><a href="/index.php?title=APNG_Specification&action=info" title="More information about this page">Page information</a></li><li id="t-importfrometherpadlink"><a href="/Special:ImportFromEtherpad" rel="importfrometherpad-link">Import an Etherpad</a></li><li id="t-smwbrowselink"><a href="/Special:Browse/:APNG-5FSpecification" rel="search">Browse properties</a></li> </ul> </div> </div> </div> </div> <div id="footer" role="contentinfo"> <ul id="footer-info"> <li id="footer-info-lastmod"> This page was last modified on 26 September 2015, at 10:02.</li> </ul> <ul id="footer-places"> <li id="footer-places-privacy"><a href="/MozillaWiki:Privacy_policy" title="MozillaWiki:Privacy policy">Privacy policy</a></li> <li id="footer-places-about"><a href="/MozillaWiki:About" title="MozillaWiki:About">About MozillaWiki</a></li> <li id="footer-places-mobileview"><a href="https://m.wiki.mozilla.org/index.php?title=APNG_Specification&mobileaction=toggle_view_mobile" class="noprint stopMobileRedirectToggle">Mobile view</a></li> </ul> <ul id="footer-icons" class="noprint"> <li id="footer-poweredbyico"> <a href="//www.mediawiki.org/"><img src="/resources/assets/poweredby_mediawiki_88x31.png" alt="Powered by MediaWiki" srcset="/resources/assets/poweredby_mediawiki_132x47.png 1.5x, /resources/assets/poweredby_mediawiki_176x62.png 2x" width="88" height="31"/></a><a href="https://www.semantic-mediawiki.org/wiki/Semantic_MediaWiki"><img src="/extensions/SemanticMediaWiki/includes/../res/images/smw_button.png" alt="Powered by Semantic MediaWiki" width="88" height="31"/></a> </li> </ul> <div style="clear:both"></div> </div> <script>(window.RLQ=window.RLQ||[]).push(function(){mw.loader.state({"user":"ready","user.groups":"ready"});mw.loader.load(["ext.smw.tooltips","mediawiki.toc","mediawiki.action.view.postEdit","site","mediawiki.user","mediawiki.hidpi","mediawiki.page.ready","mediawiki.searchSuggest","ext.ImportFromEtherpad.main.init"]);});</script><script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-35433268-22', 'auto'); ga('set', 'anonymizeIp', true); ga('send', 'pageview'); </script> <script>(window.RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgBackendResponseTime":37});});</script> </body> </html>