Regressive JPEGs: packing animation frames into progressive scans
The page at maurycyz.com is a personal project that explains how the progressive JPEG[1] format can be used to show animations. A progressive JPEG stores low-frequency data first, so a partly downloaded image appears at low resolution, and the data is split into scans[2], each with its own header. The first scan holds the DC[3] values of all three YCbCr channels, and the chrominance[4] is saved at half resolution, so full color data weighs half as much as luminance.
Because each scan sets its own spectral range, the author joined several same-size images so that later scans overwrite earlier ones, and the file switches between images on a slow network. Most decoders stop after a set number of scans, which limits this method to about 9 frames. A baseline JPEG with a single scan did not work, because a progressive scan cannot mix DC and AC data, so the smallest working file has one DC-only scan. Such an image is 1/16 of the original resolution, but it avoids the ghosting of the first attempt, and Chrome renders about 90 frames of it.
The author packed a whole video into one image and played it as pure HTML using dialog tags. Playback speed depends only on network delay, because the file contains no timing information. The page also includes an interactive single-page application with no CSS or JavaScript.
Read the original maurycyz.comDiscussion
Discussion
Most commenters call the trick clever and fun, though several say it has no practical use. Some point out that progressive JPEG has existed for decades and that animated JPEG already exists. Others complain that the site cannot be opened over IPv4 and that it returns errors on some networks.
Sources
-
maurycyz.com
Regressive JPEGs




