mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-03 06:31:42 +01:00
Clean-room implementation of Photoshop's data-driven graphics, headless and scriptable for CLI/MCP batch generation: - doc: Variables model (visibility/text/pixel-replacement bindings + named data sets), threaded through .pcraft (manifest + convert). - engine variables_cmds.rs: image.variables.define, image.variables.dataSets, image.applyDataSet (visibility/text/pixel replace w/ fit/fill/conform/as-is + 9 alignments, one history step), file.import.variableDataSets (CSV), file.export.dataSetsAsFiles (apply each set and export), variables.list. - Pixel replacement loads+scales+aligns an image into the layer bounds via the existing resample helpers. - 7 tests (doc round-trip + lookups; engine define/apply, CSV import, export, pixel replace, bad params). Parity 600 -> 605; FLOOR 600. Co-Authored-By: Claude Opus 4.8 <[email protected]>