Repository navigation
Releases
iccnet v1.0.0
The first release of iccnet: PNG gradients whose ICC color profiles are neural networks, painted by an unmodified color engine. Try it in any browser (the page runs the profile with its own evaluator), or reproduce it below with one ImageMagick command and no training.
Reproduce
Download trio.png, sRGB.icc, trio-expected.png and SHA256SUMS (or the whole bundle, iccnet-v1.0.0.zip), then:
shasum -a 256 -c --ignore-missing SHA256SUMS # Linux: sha256sum -c --ignore-missing SHA256SUMS
magick trio.png -profile sRGB.icc painted.png # ImageMagick 6: convert trio.png -profile sRGB.icc painted.png
magick compare -metric AE -fuzz 1% painted.png trio-expected.png null: # prints 0 (0); ImageMagick 6: compare ..., prints 0painted.png holds the three paintings. Browsers, macOS Preview and GitHub show trio.png as the gradient, because they don't evaluate the DToB tags that hold the network.
Tested natively
| ImageMagick | Where | LittleCMS | painted.png against trio-expected.png |
|---|---|---|---|
| 7.1.2-34 Q16-HDRI | Homebrew, macOS 27.0.1, Apple M4 | 2.19.1 | max 1 code value (3 rounding ties of 589,824 values) |
| 6.9.12-98 Q16 | Ubuntu 24.04 (apt), GitHub Actions | 2.14 | max 1 code value, compare prints 0 |
Every engine on trio.png, on the Mac (results/engines.json in the bundle):
| Result | Engines | Mean / max code values off |
|---|---|---|
| the paintings, exact | ImageMagick (native, and its WebAssembly build); LittleCMS on float pixels; tificc -c0; Pillow with Flags.NOOPTIMIZE |
0.25 / 0.5 |
| the paintings through LittleCMS's 33-point table | Pillow and tificc with default flags; sharp; libvips |
8.64 / 176 |
| the gradient: DToB tags not evaluated | macOS ColorSync (Safari, Preview) |
Files
| File | What it is |
|---|---|
iccnet-v1.0.0.zip |
the six carriers (gallery/), sRGB.icc, the expected outputs for each carrier, exact and through the table (results/expected/), every engine's output (results/engines/, engines.json), REPRODUCE.md, LICENSE and a SHA256SUMS of its own |
trio.png |
the three-painting carrier: 30 KB, its 71 KB profile embedded |
sRGB.icc |
a plain sRGB display profile (540 bytes, ICC v4, matrix and tone curves), the destination |
trio-expected.png |
what an exact engine paints: LittleCMS in double precision, rounded to 8 bits |
SHA256SUMS |
checksums for the four files above |
REPRODUCE.md covers every carrier, Pillow and the table engines. The zip's sha256 is 02ca6b29e3052e484d0ef95d3465b8fdf3ea0340a86f322fd41d09bdcb338260.
Paintings: Leonardo, Vermeer and Hokusai, public domain, via Wikimedia Commons.
