walkit-cli
Rust · on crates.io · binaries for Linux, macOS and Windows · mattijsf/walkit-cli
A command-line tool that renders previews of Winamp skins. I wrote it with the Winamp Skin Museum in mind: by default, a classic skin comes out the way the museum’s screenshots look, 275×348 px with the main window, equalizer and playlist stacked. It runs the skin in walkit with a fixed player state and draws in software. There’s no browser or Winamp involved.

Output of walkit render walkit-classic.wsz with output.scale set to 2.
cargo install walkit-cliwalkit render skin.wsz # writes ./skin.pngwalkit render skins/ -d previews/ --name md5 # file names like the museum'sfind . -name '*.wsz' | walkit render --list - -d previews/ --jobs 8walkit compare ours.png reference.png --bands 116 --diff diff.pngwalkit info --json skins/ > skins.jsonInputs can be files, folders and http(s) URLs, in any mix. With --name md5 each PNG is named
after the md5 of its skin, which is how the museum stores its screenshots. The same skin always
produces the same bytes, and previews can be diffed between versions.
walkit info prints what’s inside a skin: its files, readme, colours, fonts and, for a modern
skin, its containers, scripts and the windows it opens. The --json output follows a JSON
Schema that walkit schema info prints.
How close it gets to the museum
Section titled “How close it gets to the museum”I rendered nine classic skins with the defaults and compared them pixel by pixel with the museum’s screenshots. Five of them:
| Skin | Identical pixels | Outside the playlist text |
|---|---|---|
| base-2.91 | 94.65% | 98.10% |
| Winamp3_Classified_v5.5 | 94.63% | 98.07% |
| Bento_Classified | 94.56% | 97.96% |
| Zelda_Amp_3 | 94.91% | 98.39% |
| Deus_Ex_Amp_by_AJ | 95.48% | 99.04% |
Most of the difference is in the four playlist rows. The museum’s images are drawn by a browser,
which smooths the text. Winamp doesn’t smooth Arial at that size, and neither does the tool. I
checked each remaining difference against Winamp 5.666 in a virtual machine, set up with the
same skin, tracks and state. In every case the tool matches Winamp rather than the museum. With
the real Arial passed in through --fonts, the playlist rows came out identical to Winamp’s.
Skins mostly ask for Arial and Tahoma. The binary bundles free stand-ins, Liberation Sans and
DejaVu Sans Condensed, and reads a skin’s TrueType fonts from the skin. Text goes through
walkit’s TrueType renderer, which follows Windows for classic skins: the font’s hinting,
whole-pixel advances, kerning only where Windows applies it, and smoothing only at the sizes the
font’s gasp table allows.
Exit codes
Section titled “Exit codes”A skin that fails, for example a broken archive or a download that doesn’t answer, is reported on stderr and the batch carries on.
| Code | Meaning |
|---|---|
| 0 | every skin rendered |
| 1 | at least one skin failed |
| 2 | the command itself was wrong: no inputs, a bad parameter file, a base that doesn’t load |
No trackers or cookies. Older designs of this site.