<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.aletopedia.org/index.php?action=history&amp;feed=atom&amp;title=Adam7_algorithm</id>
	<title>Adam7 algorithm - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.aletopedia.org/index.php?action=history&amp;feed=atom&amp;title=Adam7_algorithm"/>
	<link rel="alternate" type="text/html" href="https://www.aletopedia.org/index.php?title=Adam7_algorithm&amp;action=history"/>
	<updated>2026-12-06T17:40:39Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.2</generator>
	<entry>
		<id>https://www.aletopedia.org/index.php?title=Adam7_algorithm&amp;diff=1052977&amp;oldid=prev</id>
		<title>imported&gt;WhoAteMyButter: use template</title>
		<link rel="alternate" type="text/html" href="https://www.aletopedia.org/index.php?title=Adam7_algorithm&amp;diff=1052977&amp;oldid=prev"/>
		<updated>2026-08-24T21:08:36Z</updated>

		<summary type="html">&lt;p&gt;use template&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Short description|Interlacing algorithm for raster images}}&lt;br /&gt;
{{About|the interlacing scheme for images|the gene|ADAM7}}&lt;br /&gt;
[[Image:Adam7 passes.gif|thumb|right|An illustration of Adam7 interlacing over a 16×16 image]]&lt;br /&gt;
[[Image:Adam7 interlacing representation.gif|thumb|right|An image being displayed using the Adam7 algorithm.]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Adam7&amp;#039;&amp;#039;&amp;#039; is an [[interlacing (bitmaps)|interlacing]] [[algorithm]] for [[raster image]]s, best known as the interlacing scheme optionally used in [[Portable Network Graphics|PNG]] images. An Adam7 interlaced image is broken into seven subimages, which are defined by replicating this 8{{times}}8 pattern across the full image:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| {{CellCategory|1|1}}&lt;br /&gt;
| {{CellCategory|6|6}}&lt;br /&gt;
| {{CellCategory|4|4}}&lt;br /&gt;
| {{CellCategory|6|6}}&lt;br /&gt;
| {{CellCategory|2|2}}&lt;br /&gt;
| {{CellCategory|6|6}}&lt;br /&gt;
| {{CellCategory|4|4}}&lt;br /&gt;
| {{CellCategory|6|6}}&lt;br /&gt;
|-&lt;br /&gt;
| {{CellCategory|7|7}}&lt;br /&gt;
| {{CellCategory|7|7}}&lt;br /&gt;
| {{CellCategory|7|7}}&lt;br /&gt;
| {{CellCategory|7|7}}&lt;br /&gt;
| {{CellCategory|7|7}}&lt;br /&gt;
| {{CellCategory|7|7}}&lt;br /&gt;
| {{CellCategory|7|7}}&lt;br /&gt;
| {{CellCategory|7|7}}&lt;br /&gt;
|-&lt;br /&gt;
| {{CellCategory|5|5}}&lt;br /&gt;
| {{CellCategory|6|6}}&lt;br /&gt;
| {{CellCategory|5|5}}&lt;br /&gt;
| {{CellCategory|6|6}}&lt;br /&gt;
| {{CellCategory|5|5}}&lt;br /&gt;
| {{CellCategory|6|6}}&lt;br /&gt;
| {{CellCategory|5|5}}&lt;br /&gt;
| {{CellCategory|6|6}}&lt;br /&gt;
|-&lt;br /&gt;
| {{CellCategory|7|7}}&lt;br /&gt;
| {{CellCategory|7|7}}&lt;br /&gt;
| {{CellCategory|7|7}}&lt;br /&gt;
| {{CellCategory|7|7}}&lt;br /&gt;
| {{CellCategory|7|7}}&lt;br /&gt;
| {{CellCategory|7|7}}&lt;br /&gt;
| {{CellCategory|7|7}}&lt;br /&gt;
| {{CellCategory|7|7}}&lt;br /&gt;
|-&lt;br /&gt;
| {{CellCategory|3|3}}&lt;br /&gt;
| {{CellCategory|6|6}}&lt;br /&gt;
| {{CellCategory|4|4}}&lt;br /&gt;
| {{CellCategory|6|6}}&lt;br /&gt;
| {{CellCategory|3|3}}&lt;br /&gt;
| {{CellCategory|6|6}}&lt;br /&gt;
| {{CellCategory|4|4}}&lt;br /&gt;
| {{CellCategory|6|6}}&lt;br /&gt;
|-&lt;br /&gt;
| {{CellCategory|7|7}}&lt;br /&gt;
| {{CellCategory|7|7}}&lt;br /&gt;
| {{CellCategory|7|7}}&lt;br /&gt;
| {{CellCategory|7|7}}&lt;br /&gt;
| {{CellCategory|7|7}}&lt;br /&gt;
| {{CellCategory|7|7}}&lt;br /&gt;
| {{CellCategory|7|7}}&lt;br /&gt;
| {{CellCategory|7|7}}&lt;br /&gt;
|-&lt;br /&gt;
| {{CellCategory|5|5}}&lt;br /&gt;
| {{CellCategory|6|6}}&lt;br /&gt;
| {{CellCategory|5|5}}&lt;br /&gt;
| {{CellCategory|6|6}}&lt;br /&gt;
| {{CellCategory|5|5}}&lt;br /&gt;
| {{CellCategory|6|6}}&lt;br /&gt;
| {{CellCategory|5|5}}&lt;br /&gt;
| {{CellCategory|6|6}}&lt;br /&gt;
|-&lt;br /&gt;
| {{CellCategory|7|7}}&lt;br /&gt;
| {{CellCategory|7|7}}&lt;br /&gt;
| {{CellCategory|7|7}}&lt;br /&gt;
| {{CellCategory|7|7}}&lt;br /&gt;
| {{CellCategory|7|7}}&lt;br /&gt;
| {{CellCategory|7|7}}&lt;br /&gt;
| {{CellCategory|7|7}}&lt;br /&gt;
| {{CellCategory|7|7}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The subimages are then stored in the image file in numerical order.&lt;br /&gt;
&lt;br /&gt;
Adam7 uses seven passes and operates in both dimensions, compared to only four passes in the vertical dimension used by [[GIF]]. This means that an approximation of the entire image can be perceived much more quickly in the early passes, particularly if interpolation algorithms such as [[bicubic interpolation]] are used.&amp;lt;ref&amp;gt;[http://nuwen.net/png.html Introduction to PNG - nuwen.net]&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== History ==&lt;br /&gt;
Adam7 is named after Adam M. Costello, who suggested the method on February 2, 1995, and after the seven steps involved.&lt;br /&gt;
&lt;br /&gt;
It is a rearrangement&amp;lt;ref&amp;gt;{{cite mailing list |title= interlacing revisited: the Adam7 scheme |date=  2 Feb 1995 |accessdate=2016-04-18 |mailing-list= png-list |last= Costello |first= Adam M. |quote= I rearranged the Lee7 scheme a bit (Lee7 is the obvious extension to Lee&amp;#039;s 5-pass scheme), coming up with the Adam7 scheme |url= https://pmt.sourceforge.net/mailing-lists/png-list/png-list.199502.gz }}&amp;lt;/ref&amp;gt; of this five-pass scheme&amp;lt;ref&amp;gt;{{cite mailing list |title= Interlace methods: visual testing |date= 1 Feb 1995 |accessdate=2016-04-18 |mailing-list= png-list |last= Lane |first= Tom |quote= Lee Crocker&amp;#039;s 5-pass 2-D interlace proposal |url= http://pmt.sourceforge.net/mailing-lists/png-list/png-list.199502.gz }}&amp;lt;/ref&amp;gt; that had earlier been proposed by [[Lee Daniel Crocker]]:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| {{CellCategory|1|1}}&lt;br /&gt;
| {{CellCategory|5|5}}&lt;br /&gt;
| {{CellCategory|3|3}}&lt;br /&gt;
| {{CellCategory|5|5}}&lt;br /&gt;
|-&lt;br /&gt;
| {{CellCategory|5|5}}&lt;br /&gt;
| {{CellCategory|4|4}}&lt;br /&gt;
| {{CellCategory|5|5}}&lt;br /&gt;
| {{CellCategory|4|4}}&lt;br /&gt;
|-&lt;br /&gt;
| {{CellCategory|3|3}}&lt;br /&gt;
| {{CellCategory|5|5}}&lt;br /&gt;
| {{CellCategory|2|2}}&lt;br /&gt;
| {{CellCategory|5|5}}&lt;br /&gt;
|-&lt;br /&gt;
| {{CellCategory|5|5}}&lt;br /&gt;
| {{CellCategory|4|4}}&lt;br /&gt;
| {{CellCategory|5|5}}&lt;br /&gt;
| {{CellCategory|4|4}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Alternative speculative proposals at the time included square spiral interlacing and using [[Peano curve]]s, but these were rejected as being overcomplicated.&lt;br /&gt;
&lt;br /&gt;
== Passes ==&lt;br /&gt;
The pixels included in each pass, and the total pixels encoded at that point are as follows:&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:Adam7_pass_1.png|Pass 1, 1/64 = 1.5625%&lt;br /&gt;
File:Adam7_pass_2.png|Pass 2, 1/32 = 3.125%&lt;br /&gt;
File:Adam7_pass_3.png|Pass 3, 1/16 = 6.25%&lt;br /&gt;
File:Adam7_pass_4.png|Pass 4, 1/8 = 12.5%&lt;br /&gt;
File:Adam7_pass_5.png|Pass 5, 1/4 = 25%&lt;br /&gt;
File:Adam7_pass_6.png|Pass 6, 1/2 = 50%&lt;br /&gt;
File:Adam7_pass_7.png|Pass 7, 1/1 = 100%&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
When rendering, the image will generally be interpolated at earlier stages, rather than just these pixels being rendered.&lt;br /&gt;
&lt;br /&gt;
== Related algorithms ==&lt;br /&gt;
Adam7 is a multiscale model of the data, similar to a [[discrete wavelet transform]] with [[Haar wavelet]]s, though it starts from an 8{{times}}8 block, and [[downsample]]s the image, rather than [[decimation (signal processing)|decimating]] ([[low-pass filter]]ing, then downsampling). It thus offers worse frequency behavior, showing artifacts ([[pixelation]]) at the early stages, in return for simpler implementation.&lt;br /&gt;
&lt;br /&gt;
=== Iteration ===&lt;br /&gt;
Adam7 arises from iteration of the following pattern:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| {{CellCategory|1|1}}&lt;br /&gt;
| {{CellCategory|2|2}}&lt;br /&gt;
|-&lt;br /&gt;
| {{CellCategory|3|3}}&lt;br /&gt;
| {{CellCategory|3|3}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
which may be interpreted as &amp;quot;folding&amp;quot; in the vertical and horizontal dimensions. Similarly, GIF interlacing {{samp|1324}} can be seen as iteration of the {{samp|12}} pattern, but only in the vertical direction ({{samp|12}} expands to {{samp|1.2.}} which is filled in as {{samp|1324}}).&lt;br /&gt;
&lt;br /&gt;
Using this 3-pass pattern means the first pass is (1/2)&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;&amp;amp;nbsp;=&amp;amp;nbsp;1/4 (25%) of the image.&lt;br /&gt;
&lt;br /&gt;
Iterating this pattern once yields a 5-pass scheme; after 3 passes this yields&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| {{CellCategory|1|1}}&lt;br /&gt;
| &amp;amp;bullet;&lt;br /&gt;
| {{CellCategory|2|2}}&lt;br /&gt;
| &amp;amp;bullet;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;amp;bullet;&lt;br /&gt;
| &amp;amp;bullet;&lt;br /&gt;
| &amp;amp;bullet;&lt;br /&gt;
| &amp;amp;bullet;&lt;br /&gt;
|-&lt;br /&gt;
| {{CellCategory|3|3}}&lt;br /&gt;
| &amp;amp;bullet;&lt;br /&gt;
| {{CellCategory|3|3}}&lt;br /&gt;
| &amp;amp;bullet;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;amp;bullet;&lt;br /&gt;
| &amp;amp;bullet;&lt;br /&gt;
| &amp;amp;bullet;&lt;br /&gt;
| &amp;amp;bullet;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
which is then filled in to:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| {{CellCategory|1|1}}&lt;br /&gt;
| {{CellCategory|4|4}}&lt;br /&gt;
| {{CellCategory|2|2}}&lt;br /&gt;
| {{CellCategory|4|4}}&lt;br /&gt;
|-&lt;br /&gt;
| {{CellCategory|5|5}}&lt;br /&gt;
| {{CellCategory|5|5}}&lt;br /&gt;
| {{CellCategory|5|5}}&lt;br /&gt;
| {{CellCategory|5|5}}&lt;br /&gt;
|-&lt;br /&gt;
| {{CellCategory|3|3}}&lt;br /&gt;
| {{CellCategory|4|4}}&lt;br /&gt;
| {{CellCategory|3|3}}&lt;br /&gt;
| {{CellCategory|4|4}}&lt;br /&gt;
|-&lt;br /&gt;
| {{CellCategory|5|5}}&lt;br /&gt;
| {{CellCategory|5|5}}&lt;br /&gt;
| {{CellCategory|5|5}}&lt;br /&gt;
| {{CellCategory|5|5}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
In the 5-pass pattern, the first pass (1/4)&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;&amp;amp;nbsp;=&amp;amp;nbsp;1/16 (6.25%) of the image.&lt;br /&gt;
&lt;br /&gt;
Iterating again yields the 7-pass Adam7 scheme, where the first pass (1/8)&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;&amp;amp;nbsp;=&amp;amp;nbsp;1/64 (1.5625%) of the image.&lt;br /&gt;
&lt;br /&gt;
In principle this can be iterated, yielding a 9-pass scheme, an 11-pass scheme, and so forth, or alternatively an adaptive number of passes can be used, as many as the image size will allow (so the first pass consists of a single pixel), as is usual in scale-free multiscale modeling. In the context that PNG was developed (i.e., for the image sizes and connection speeds in question), a 7-pass scheme was seen as sufficient,{{why|date=February 2024}} and preferable to a simple 5-pass scheme.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
{{Reflist}}&lt;br /&gt;
&lt;br /&gt;
==External links==&lt;br /&gt;
* [http://www.schaik.com/png/adam7.html Animated comparison of Adam7 and GIF interlacing]&lt;br /&gt;
&lt;br /&gt;
[[Category:Lossless compression algorithms]]&lt;br /&gt;
[[Category:Image compression]]&lt;/div&gt;</summary>
		<author><name>imported&gt;WhoAteMyButter</name></author>
	</entry>
</feed>