Skip to content
dbrantPublic

About

Decoder for legacy AOL ART images

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

20 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Image decoder for AOL .ART files

A specification and a decoder for the AOL .art image format (Johnson-Grace), as used by AOL 3.x and 4.x in the 1990s.

Dmitry Brant, 2026, feat. Claude Code.

FORMAT.md is the specification: the container, the entropy codecs, and all three image codecs — the 4.x wavelet and palettised ones and the separate, JPEG-like version-3 codec — written to be portable to any language. tools/ is a reference implementation in Python.

Converting

To convert an .ART file to a .PNG file:

python tools/art2png.py picture.art

(The only dependencies are numpy and pillow, make sure to install them first.)

Each input file becomes a .png in the output directory (the working directory by default, and can be changed with -o), and the converter reports what it found:

picture.art -> ./picture.png  (photo, 320x240, 3 components)

Any number of files can be given at once:

python tools/art2png.py -o out *.art
Option Effect
-o OUTDIR write the PNGs into OUTDIR (created if needed)
--no-alpha drop the transparency key of palettised images and emit RGB

A file that fails to decode is reported on stderr and the exit status is 1; the other files still convert.

tools/artdump.py prints a file's chunk stream, which is the quickest way to see what a particular image contains:

python tools/artdump.py picture.art

The codecs

Codec Used by Implementation
Photo: 5-level CDF 9/7 wavelet, YCbCr ART 4.x, chunk 0x40 tools/artphoto.py
Graphic: palettised, 2-D LZ + PNG-style filters ART 4.x, chunk 0x16 tools/artgraphic.py
Version 3: JPEG-like DCT in three resolution passes ART 3.x tools/artv3.py

The photo and graphic codecs share a Huffman + LZ77 entropy layer, tools/jglossless.py. Version-3 files use a different container vocabulary and no entropy layer of their own; tools/artv3.py is a standalone decoder and can also be run directly:

python tools/artv3.py -o out picture.art

Layout

FORMAT.md              the specification
tools/art2png.py       the converter
tools/artdump.py       chunk walker and CLI dumper
tools/jglossless.py    the Huffman + LZ77 entropy codec, with a self-test
tools/artphoto.py      the wavelet photo codec
tools/artgraphic.py    the palettised graphic codec
tools/artv3.py         the version-3 codec, all three passes

Accuracy

A tiny caveat about decoding accuracy: The "graphic" and "version-3" codecs work exactly like the original. However, the "photo" codec reconstructs the wavelet in floating point, whereas the original used 16-bit fixed point, which costs about 0.45/255 mean absolute error. This should be invisible to the eye, but just something to note.

About

Decoder for legacy AOL ART images

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages