Repository navigation
loomwork v0.2.0
loomwork v0.2.0
New since v0.1.0
- SVG output: give
--out(or--preview) a name ending in.svg. One rect per horizontal run of same-coloured pixels, no metadata. SVG files are much larger than PNG (about 31 KB for a 32-pixel cloth; at size 4096 measured about 10 MB for seed 1 and about 293 MB for seed 7, so size depends on the seed), so keep--sizesmall.--sheetwrites PNG only. tools/svgcheck.py: draws the SVG with a small built-in rasteriser and compares it with the PNG pixels for the 12 gallery cloths, and checks that reruns are byte-identical.tools/examples/wrap_gen.py: a third example generator for the tiling checker (opposite edges match; the checker passes on it).- README: tested Pillow versions stated, link to releases.
Unchanged
- Same seed and flags give the same image (pixels; file bytes can differ between Pillow versions).
tools/selfcheck.sh(about 7 seconds on the machine used for the test; exit 0 pass, 1 fail, 2 cannot run) andtools/check_tiling.py(full check, 600 combinations).- CI runs
selfcheck.shon Python 3.12 with Pillow 10.4.0, 11.3.0 and the latest release (13.0.0 at the time of release), and confirms it fails on a deliberately broken fixture.
Known limits
- Only those Pillow versions were tested; older ones are untested.
- SVG was checked with a small built-in rasteriser only, not in a browser or other SVG renderer.
- The label font on
--sheetcomes from Pillow's default and may differ between versions.