129 Commits
Author SHA1 Message Date
RickiNano 9e8827aa45 Actions: an empty Content-Aware Fill step after a Custom fill stops and says why (#14254)
The workspace remembers Custom sampling but not its painted area (Custom
reopens empty), so an empty recorded step had no area to sample and failed
with the command's parameter error. It now stops before filling with a
message that says the Custom area isn't remembered and how to go on, and
never falls back to another sampling area. The document and the remembered
settings are unchanged.
2026-11-26 07:52:56 +01:00
RickiNano 9acb1b80b9 Merge remote-tracking branch 'origin/main' into feat/caf-action-values-14254
The engine split moved atn_cmds and batch_run to crates/engine-core, so
caf_action_values_tests.rs moves with them. Session's Actions state is now
behind ActionsExt, so the engine-core and ui-egui tests set the list
through actions_mut(). In batch_run the scratch session keeps main's
actions_mut()/recording setup and still copies the remembered Content-Aware
Fill workspace.
2026-11-23 21:23:28 +01:00
David Mann 0229cf222d Merge PR #11548: ATN: retain explicit Image Size dimensions with percent 2026-11-22 00:24:13 +01:00
David Mann a2a7528bf7 Merge PR #11536: ATN: reject fractional Black & White coefficients 2026-11-22 00:24:09 +01:00
RickiNano 8d9a5dd403 Content-Aware Fill: refuse to save a native step without sampleAllLayers (#14254)
Without sampleAllLayers the command samples the visible composite when the
active layer is empty, which neither recorded value says; saving it as false
changed what the step fills from.
2026-11-20 17:15:09 +01:00
RickiNano 41144d5556 Merge origin/main into feat/caf-action-values-14254 2026-11-16 16:35:07 +01:00
Trevor BrownandClaude Opus 5.5 61dc2216c6 Merge storytold/photocraft main (d547d50c7) into fix/batch-log-format-13665
Picks up main's fix for the assign_shortcut test and the Cargo.lock order (#15196), so CI runs on a green base.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Model-Effort: Opus 5.5 driver, no subagent
2026-11-15 15:36:34 -05:00
David Mann 3156a726e3 Merge pull request #12506 from ljkx/atn-conditional-mode-change
Actions: map File › Automate › Conditional Mode Change (#10723)
2026-11-15 15:46:26 +01:00
RickiNano abb5c23714 Actions: load every recorded Content-Aware Fill value and empty steps (#14254)
A recorded cafWorkspace step now imports every sampling, colour adaptation,
rotation and output value the reference workspace shows, and saves each back
to the same descriptor. An empty descriptor plays with the settings the fill
workspace remembers (New Layer before any), resolved in playback_params, and
saves back empty; playing never changes what is remembered.

Fixes #14254
2026-11-15 15:40:59 +01:00
Trevor BrownandClaude Opus 5.5 04f04499ef Merge storytold/photocraft main (5bdbcc118) into fix/batch-log-format-13665
Picks up main's CI fixes (#14595), so CI runs on a green base.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Model-Effort: Opus 5.5 driver, no subagent
2026-11-15 08:35:57 -05:00
Andreas Haraminac 9dddd95695 Merge upstream main and reject invalid ATN resize percentages 2026-11-14 16:59:20 +01:00
Andreas Haraminac e9ec0f4314 Merge upstream main and preserve exact Black and White coefficients 2026-11-14 16:06:47 +01:00
Dylan M. Taylor 040962a5b4 Merge photo-cms-port: use craft-cms and remove crates/cms (#13393) 2026-11-14 00:02:22 +00:00
Trevor BrownandClaude Sonnet 5.5 23827b9285 Batch: the error log is UTF-16 big-endian with Start Batch / End Batch and native paths (#13665)
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Model-Effort: Opus 5.5 drove; Fable 5.2 queued; Opus 5.5 briefed; Sonnet 5.5 wrote at medium
2026-11-13 06:38:35 -05:00
David Mann b20eeb7a2e Merge branch 'main' into actions-frame-from-layers (merge queue) 2026-11-13 00:54:34 +01:00
David Mann e165933772 Merge pull request #12430 from ljkx/atn-fit-image
Actions: map File › Automate › Fit Image (#10723)
2026-11-12 13:26:58 +01:00
ljkx da6f09ce70 docs/atn.md: Fit Image leaves a fitting document unchanged only with limit (Don't Enlarge) 2026-11-12 11:03:28 +01:00
ljkx 1be7029405 Merge remote-tracking branch 'origin/main' into atn-conditional-mode-change
# Conflicts:
#	crates/engine/src/cmd/atn_cmds.rs
#	docs/atn.md
2026-11-12 09:43:50 +01:00
Dylan M. Taylor 74330157cb Use craft-psd for PSD/PSB format code (#13414)
* Use craft-psd from craft-libs; remove crates/psd

* Regenerate the scorecard (28 crate roots)

* Take craft-psd at craft-libs 55d120f2

* Regenerate lockfile for current shared format crates

* Pin shared format crates to current craft-libs main

* Match brush import cap to shared decoder budget

* xtask: update layer fixtures after PSD extraction
2026-11-12 02:53:54 -05:00
Dylan M. Taylor 2b75a0092d Use craft-cms from craft-libs; remove crates/cms
craft-cms was extracted from crates/cms (storytold/craft-libs#779), and both
copies changed afterwards. storytold/craft-libs#PRNUM ports the 41 commits made
here since the extraction, so the shared crate now has everything this copy
had, and PhotoCraft depends on it.

craft-cms returns errors where the local crate panicked on caller input:
transforms, tables and LUT constructors return Result. Call sites propagate
the error where the function already returns one, and fall back where the
arguments are fixed by construction (each with a comment saying why).
Lut3d's fields are private there; the proof and HDR display table is built
with Lut3d::from_fn.

The pin is the head of the craft-libs branch and moves to main when that
pull request merges.
2026-11-11 19:41:51 +00:00
ljkx 0a2a49852a Merge remote-tracking branch 'origin/main' into atn-fit-image
# Conflicts:
#	crates/engine/src/cmd/atn_cmds.rs
2026-11-11 16:24:18 +01:00
David Mann b68d82b807 Merge branch 'main' into actions-frame-from-layers (merge queue)
# Conflicts:
#	docs/atn.md
2026-11-11 14:40:01 +01:00
David Mann 91badc3a97 Merge pull request #12469 from ljkx/actions-artboard-section
Actions: map Layer › New › Artboard and Artboard from Layers (#10723)
2026-11-11 14:39:50 +01:00
David Mann 4720d1cc93 Merge branch 'main' into atn-fit-image (merge queue)
# Conflicts:
#	docs/atn.md
2026-11-10 03:04:19 +01:00
David Mann c64708b836 Merge pull request #11836 from yoriswind/codex/recorded-displace-10705
Map recorded Windows Displace actions
2026-11-09 19:27:57 +01:00
David Mann b8c3099a51 Merge remote-tracking branch 'origin/main' into pr-12506
# Conflicts:
#	crates/engine/src/cmd/atn_cmds.rs
2026-11-09 18:02:06 +01:00
ljkx 9d74a5df5e Actions: map File › Automate › Conditional Mode Change (#10723)
The script event 8cba8cd6-cb66-11d1-bc43-0060b0a13dc4 loaded as a kept
Photoshop step. It now maps to file.automate.conditionalModeChange, using
davidmann4's measurements on #10723: class cjsp, Msge optional, one Cndn
value per ticked source (UBtm, UGry, UDtn, UInd, URGB, UCMY, ULab, UMlt
in that order), and DstM an object of the target's class.

Grayscale, RGB, CMYK and Lab targets map. Duotone, Indexed Color, Bitmap
and Multichannel targets, the class reference recorded from a Bitmap
document and any other form stay kept steps. A loaded step saves back
byte for byte; a step recorded in PhotoCraft writes the measured form
with an empty Msge.
2026-11-09 15:41:32 +01:00
ljkx 6da1eedcc5 Fit Image: class cjsp and an optional Msge, as measured (#10723)
davidmann4 measured the event in the reference application: the
descriptor's class is cjsp with an empty class name, and the step plays
the same with Msge recorded, empty, unrelated or removed.

- A step recorded in PhotoCraft now writes class cjsp (it wrote null).
- The three-key form without Msge now maps instead of staying kept.
- A loaded step whose settings changed saves them into its recorded
  descriptor, so its class, its message or lack of one and its key order
  stay.
2026-11-09 15:08:27 +01:00
61aa24991a PR #11836: map a recorded Displace path only when a document may name it
Playback reads the map path a loaded action file names. An action set is
shared like a document, so the path now follows the same rule as paths
stored in documents: a local absolute file. A network share, device, URL
or relative path stays a kept step with its bytes, so playing a
downloaded set never opens a remote share. Test paths are now native to
the platform, so the round trips also hold on Linux and macOS.

Co-Authored-By: yoriswind <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-09 14:04:12 +01:00
ljkx d3fcccbe5e Actions: map Layer › New › Frame from Layers (#10723)
A Make of class `framedGroupSection` with `From` = a layer by name loads
as `layer.new.frameFromLayers` on that layer. The recorded descriptor,
session ids included, saves back byte for byte while the step still
frames the same layer with the same name; native steps write the
measured keys without the session ids.

frameFromLayers sized the frame from the selected layers even when given
a `layer`, while the grouping it runs takes in only that layer; the
frame now fits the given layer.
2026-11-09 12:40:49 +01:00
ljkx 8040809f1f Actions: map Layer › New › Artboard and Artboard from Layers (#10723)
A Make of class `artboardSection` loads as `layer.new.artboard` (with
`artboardRect`) or `layer.new.artboardFromLayers` (with `From` = the
target layer). The recorded descriptor, session ids included, saves back
byte for byte while the step still makes the same board; native steps
write the measured keys without the session ids, and settings the step
doesn't record (background, preset, a size of its own, no position)
refuse export.
2026-11-09 11:59:13 +01:00
ljkx c2039dd0e8 Actions: map Image › Analysis › Set Measurement Scale › Custom (#10723)
The Set of the document's measurementScale property (T: pixelLength long,
logicalLength double, logicalUnits text) loads as
image.analysis.setMeasurementScale with the custom preset and saves back
with its recorded descriptor. Other forms stay kept steps; a native step
that reads, resets or partly sets the scale refuses export.
2026-11-09 05:43:34 +01:00
ljkx 1a6eca3a64 Actions: map File › Automate › Fit Image (#10723)
The script event 3caa3434-cb67-11d1-bc43-0060b0a13dc4 that the reference
application records after a Fit Image (Msge, Hght and Wdth in pixels,
limit) loads as file.automate.fitImage and saves back with its recorded
descriptor. Other forms stay kept steps; a native step with a missing side
or a non-default resampling method refuses export.
2026-11-09 03:50:59 +01:00
yoriswind 12e50587c6 Reconcile recorded Displace with current main 2026-11-07 20:11:04 -08:00
Hector VillarrealandClaude Opus 5.5 67da143139 Actions: map Create Droplet; cover the Gradient tool's steps (#10710)
Create Droplet (CrtD) loads as file.automate.createDroplet for the form
the droplet plays the same way (a Folder destination with Override
Action "Save As"), plays, and saves back as recorded; subfolders, Save
and Close, custom naming, an error log or suppressed dialogs keep the
Photoshop step. The Gradient tool's Make + Set of a gradient fill layer
already map since #10771; a test now covers that recorded form. Print
stays a kept step: its two recorded steps would print twice.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-07 10:55:16 -06:00
yoriswind 3e56f95366 Map recorded Windows Displace actions 2026-11-06 18:58:13 -08:00
92de311b2b Actions: keep more Blend If and Gradient Fill forms exact (#11249)
Review fix-ups on #11249 after merging main:
- A midpoint outside 5..95 %, transparency stops out of range or out of
  order, and a Gradient Fill Set without transparency stops stay
  reference-application steps instead of playing clamped or keeping the
  layer's own transparency.
- An inverted Blend If range stays a reference-application step; the
  command rejects it at play.
- The Layer Style dialog's OK records `Lefx` = {Scl} beside Blend If on a
  layer without effects (measured). That Set is still the dialog's one
  step and saves back with the `Lefx` it was recorded with.

Co-Authored-By: NaufalDzz <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-06 15:07:32 +01:00
David Mann 72645904c7 Merge remote-tracking branch 'origin/main' into pr-11249
# Conflicts:
#	crates/engine/src/cmd/atn_cmds/steps_make.rs
#	crates/engine/src/cmd/atn_cmds/tests.rs
#	docs/atn.md
2026-11-06 14:55:00 +01:00
David Mann 1d053f5c2c Merge PR #11495: Actions: play recorded Stack Modes and Video Frame events 2026-11-06 00:28:47 +01:00
David Mann f96e77e794 Merge PR #11553: Actions: replay recorded Perspective Warp steps 2026-11-06 00:28:38 +01:00
Mex 5f9275bb24 docs(atn): describe explicit Image Size precedence
Document that explicit pixel dimensions override percent while a missing side keeps its percentage.
2026-11-05 21:30:49 +01:00
Mex 1f22e5e6e2 docs(atn): explain fractional Black & White refusal
Document integer ATN coefficient storage, strict refusal and explicit skip reporting while native Black & White commands retain fractional coefficients.
2026-11-05 20:15:40 +01:00
yoriswind 8a126888f3 Merge upstream main after integration batch 17 2026-11-05 09:09:02 -08:00
yoriswind 3feae0e0b6 Actions: map recorded Perspective Warp planes 2026-11-05 08:36:06 -08:00
yoriswind 05d3c0bf27 Support recorded Smart Object Stack Modes and video frame edits 2026-11-05 06:24:06 -08:00
e580cca07a Port #5212: document Playback Options
Co-Authored-By: Zer0C00L01 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 06:13:13 +01:00
David Mann 5385ebd95b Merge PR #10788: Support recorded dialog filters, Calculations and Batch naming
# Conflicts:
#	crates/engine/src/cmd/actions_cmds.rs
#	crates/engine/src/cmd/automate_cmds.rs
#	crates/engine/src/cmd/file_cmds.rs
#	crates/engine/src/cmd/file_cmds/batch_run.rs
#	crates/engine/src/cmd/file_cmds/tests.rs
#	crates/engine/tests/it/main.rs
#	crates/ui-egui/src/panels/actions.rs
2026-11-05 05:19:44 +01:00
362a307449 Port #8659: show Stop messages and continue called actions after a pause
A Stop step with its dialog toggle on now shows a Message window with
the recorded text and Continue (when the step allows it) and Stop,
keeping the steps already applied; with the toggle off it ends playback
silently, and Insert Stop turns the toggle on, as measured in the
reference application. Allow Continue is read from the paused playback,
not from the dialog's fields. Agents and headless playback keep the
engine's Stop semantics.

A pause inside a called action now carries its callers (at most 16):
confirming finishes the called action and then each caller after its
call, replayed inside the callers' playback frames so recursion checks
and the single history state still hold. A silent stop ends the callers
too. Fixes #8386.

Co-Authored-By: bommerts <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 04:56:41 +01:00
yoriswind 1720af269d Merge current main while preserving recorded Batch safeguards 2026-11-04 10:47:01 -08:00
David Mann cb323e9aea Merge PR #10965: Group action playback into one history state 2026-11-04 14:51:18 +01:00