Commit Graph
479 Commits
Author SHA1 Message Date
yoriswind efccb678d8 Fix Batch regression compilation and document admission boundaries 2026-11-01 17:39:05 -08:00
yoriswind f4e066439b Preserve Replace Color alpha during fractional selection mixing 2026-11-01 17:26:45 -08:00
ea4112a4ce Integration: group-end layer index fails, ordinal precondition resolves once (#10753)
A `{"layer":{"index":n}}` that lands on a group end made explicit_layer
return None, so layer.translate and the other callers acted on the
selected layers instead (e.g. layer.translate {"layer":{"index":3}} with
L1+L2 selected moved both). It now fails with "a group end is not a
layer"; layer.select still treats a group end as a no-op.

explicit_layer_enabled resolved a relative ordinal (Frwr/Bckw), made that
layer active, then ran the precondition with the unresolved ordinal, which
resolved again one layer further. With only Red targeted and A (active),
B, C (type) bottom to top, edit.clear {"layer":{"ordinal":"Frwr"}} was
refused with "Rasterize the layer" although it acts on raster B. The
precondition now sees the resolved layer id.

Co-authored-by: yoriswind <164435053+yoriswind@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 02:17:31 +01:00
1f524c378b Integration: track the v12 .atn fixtures and sniff v12 in the CLI (#10743)
The three version 12 fixtures were tracked inside crates/psd/fuzz/corpus,
which crates/psd/fuzz/.gitignore ignores and cargo-fuzz rewrites (cmin) or
deletes; the psd and engine test binaries include_bytes! them, so cleaning
the corpus broke the build. They move to crates/psd/tests/fixtures/atn with
a README (sizes, purpose, sha256; the seeds note folded in) and an
ATTRIBUTION.md row; the fuzzer takes the folder as an extra corpus dir.

photocraft-cli recognised an extensionless Actions file only by version
word 16, so a version 12 set without .atn (classic Mac OS Photoshop 5)
went down the JSON path and failed with a UTF-8 error. It now accepts 12
and 16, the versions photocraft-psd reads. Input: v12-commands.atn copied
to "Legacy Actions" and passed to load_actions_file.

Co-authored-by: yoriswind <164435053+yoriswind@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 02:09:41 +01:00
yoriswind bf63a6639f Integrate recorded Custom and Fibers filter mappings
Adapt only Custom from #10631 by @hectorviov at 4ed3f5b591 and Fibers from #10620 at 33ee38b431. Retain the measured ranges and whole unsupported descriptors without importing unrelated filters. Source and fixtures only; combined validation remains.
2026-11-01 17:05:28 -08:00
yoriswind c78b84a1cd Port CSH import backend while retaining recorded shape IDs
Port the ten backend, automation and test paths from #5493 by
@jonathanwxh-cell, pinned at 43920ab780.
Keep its original CSH codec, bounded preset reader and protection tests.
The prerequisite's UI, translation and parity-document changes are excluded.

Adapt ShapePreset construction to retain the exact source identifier. Empty
identifiers remain anonymous presets; repeated identifiers resolve when their
geometry is identical and refuse resolution when it conflicts. Add one
import-to-ATN Shape Blur regression and document the source attribution.

Original contribution: https://github.com/storytold/photocraft/pull/5493
Source-only integration; compilation and combined runtime validation remain.
2026-11-01 17:01:17 -08:00
yoriswind ed71465b89 Apply measured Artboard background settings without resizing 2026-11-01 16:58:20 -08:00
yoriswind 609d839607 Cover nonlinear 3DL shapers through action playback 2026-11-01 16:55:31 -08:00
yoriswind d752b8a3a2 Add embedded LUT and custom shape action support 2026-11-01 16:46:48 -08:00
yoriswind 9ce240b104 Bound Lab replacement work for sparse opaque surfaces 2026-11-01 16:29:11 -08:00
yoriswind 9a59fc2b09 Read explicit merged transparency from the composite 2026-11-01 16:19:09 -08:00
yoriswind ecd7b2df55 Initialize the merged ATN encoding field in the test fixture 2026-11-01 16:18:10 -08:00
yoriswind 8e71182017 Map recorded Calculations Make steps 2026-11-01 16:13:41 -08:00
yoriswind 545e6f21db Exercise the actual raster tile boundaries in Lab replacement 2026-11-01 16:08:18 -08:00
yoriswind 6152cffe4e Include opaque default pixels in Lab Replace Color 2026-11-01 15:56:39 -08:00
yoriswind e378246991 Bound Lab Replace Color buffers to stored tiles 2026-11-01 15:53:19 -08:00
yoriswind 3fa3d34461 Describe adjustment test invariants and conversion boundaries 2026-11-01 15:32:13 -08:00
yoriswind e6f23fd8e2 feat(engine): map limited Artboard-from-Group ATN forms
Preserve the target-only call and exactly reconstruct empty-guide settings. Apply preset tags without resizing, retain fractional RGB, and refuse unresolved guide state before mutation. Nonempty associations and unproved flag values remain unfinished.
2026-11-01 15:26:29 -08:00
yoriswind 75ab50544e Limit Lab Replace Color work to selected bounds 2026-11-01 15:14:44 -08:00
yoriswind 686f08c884 test(engine): record and export accepted comp index bounds 2026-11-01 14:08:40 -08:00
yoriswind f39d0b8280 feat(engine): replay the Crop Photos ATN parent once 2026-11-01 14:06:12 -08:00
yoriswind 2d15501659 Support recorded direct Gradient Map and Lab-range Replace Color 2026-11-01 14:02:51 -08:00
yoriswind 1130c8a66c feat(engine): map Type to Shape and radius-only Shape Blur ATN 2026-11-01 13:53:09 -08:00
yoriswind c5ed8f9fcf Cover comp recording wire bounds and invalid move destinations 2026-11-01 13:44:29 -08:00
yoriswind 71b98c8134 feat(engine): replay target-only ATN menu events 2026-11-01 13:36:08 -08:00
yoriswind 6e5f02c014 Check absolute profile intent against an independent pixel value 2026-11-01 13:17:55 -08:00
yoriswind 0ae7356064 Respect mask creation clearing the selection in the control test 2026-11-01 13:15:34 -08:00
yoriswind 0aac40105e Reject group transparency before modifying the selection 2026-11-01 13:12:39 -08:00
yoriswind b4c7656c49 feat(engine): replay Smart Object file events from ATN 2026-11-01 13:09:16 -08:00
yoriswind cebea834c1 Prove recorded comp ordinals restore the current layout 2026-11-01 13:06:05 -08:00
yoriswind 8aed34d540 Cover group transparency and empty-name source defaults 2026-11-01 13:04:53 -08:00
yoriswind 21b6546907 Resolve recorded Action reference forms at playback 2026-11-01 12:55:02 -08:00
yoriswind 5881923406 fix(engine): replay recorded link and unlink explicitly 2026-11-01 12:49:47 -08:00
yoriswind e8c5608966 Strengthen paste and profile playback checks
Include the default frosted Glass code in the reference allowed values.
2026-11-01 12:38:07 -08:00
yoriswind 2854b4f9fb Preserve named transparency sources and allow false depth flags 2026-11-01 12:17:43 -08:00
yoriswind 408f48d0bc Reproduce named transparency and false depth-flag import failures 2026-11-01 12:16:02 -08:00
yoriswind 713aa92ba5 Exercise legacy action imports through the integration suite 2026-11-01 11:50:10 -08:00
yoriswind 027b2cdd3c Cover normal Paste followed by Paste As after an internal copy 2026-11-01 11:43:45 -08:00
yoriswind a78b1f1bf8 Keep command-option dependencies limited to style scaling and profile intent 2026-11-01 11:33:53 -08:00
yoriswind 363caa53c3 Check pixel orientation after relative rotation 2026-11-01 10:07:36 -08:00
yoriswind 53f3ef7c41 Record the default resampler for point-sized actions 2026-11-01 09:57:05 -08:00
yoriswind 46fb7822c9 Support source-backed SVG Paste modes and ATN classes
Retain bounded original SVG alongside its raster mirror. Explicit Pixels,
Path and Shape modes use real source data, validate destination and workload
limits before editing, and preserve legacy Paste when the mode is omitted.
Round-trip typed Photoshop Paste classes and keep unsupported descriptors.

Adapted-from: Skyfuller1303's PR #3409
Original-commit: 897f200727
Original-source: https://github.com/storytold/photocraft/pull/3409

Validation: engine check --tests; strict lib and vector target Clippy;
7 focused native/ATN tests; owned-file formatting and diff checks.
2026-11-01 09:35:13 -08:00
yoriswind c345eef785 Validate ATN sizing and opacity and honor transform anchors 2026-11-01 09:34:25 -08:00
yoriswind d3392e6124 Honor fill rotation and style paste group eligibility 2026-11-01 09:09:00 -08:00
yoriswindandbommerts bfe096a988 Preserve named Vibrance exports and adjustment creation opacity
Port the relevant changes from @bommerts in PR #8659:
c4d5c63259,
9f0ae2e43f,
35d1102540 and
668f006ef8.

Keep current mask handling and layer placement. Separate layer opacity from
adjustment settings so a default Gradient Map still saves as a default preset.

Co-authored-by: bommerts <44821497+bommerts@users.noreply.github.com>
2026-11-01 08:11:10 -08:00
yoriswind c2c5b5c30f Cover Vibrance and adjustment opacity action round trips
Vibrance playback coverage adapted from bommerts' PR #8659, commit c4d5c63259. Add the reported Gradient Map opacity case, metadata-only defaults, and atomic validation controls.
2026-11-01 08:09:11 -08:00
yoriswind ab0b26a9c6 Wire profile action options and dither 8-bit conversions 2026-11-01 07:46:48 -08:00
yoriswind 23f1b8bce7 Revert "Add optional layer-style scaling to Image Size"
This reverts commit d7bce26deb.
2026-11-01 07:15:45 -08:00
yoriswind 947d4fd1b0 Revert "Preserve Image Size style scaling through ATN actions"
This reverts commit de9c5e743e.
2026-11-01 07:15:45 -08:00
yoriswind 91fd170570 Resolve recorded ATN dimensions at playback and write mode classes 2026-11-01 07:15:34 -08:00