Commit Graph
4341 Commits
Author SHA1 Message Date
Dylan M. Taylor 8c7544ed2a Use craft-affinity from craft-libs; remove crates/affinity 2026-11-14 00:16:50 +00:00
Dylan M. Taylor 0eecd8636c engine/ui: update clone_sampling and tests to use craft-cms 2026-11-14 00:10:12 +00: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
David Mann 85ff41e7da Merge pull request #13974 from RickiNano/fix/13920-import-data-sets-needs-variables
Import Data Sets: greyed until the active document has a variable (#13920)
2026-11-13 22:49:32 +01:00
David Mann 7689e7bd4d Merge pull request #13936 from RickiNano/fix/frame-content-name-13862
Frame tool: name a frame made around a layer "<layer> Frame" (#13862)
2026-11-13 22:15:55 +01:00
David Mann 5d04c8c772 Merge pull request #13852 from RickiNano/feat/fade-all-blend-modes-13806
Fade: all 27 blend modes in groups, greyed by colour mode and depth (#13806)
2026-11-13 22:15:20 +01:00
David Mann 98793076d1 Merge pull request #13844 from RickiNano/fix/atn-fade-step-defaults-13816
Actions: a recorded Fade step without settings plays as 100 % Normal (#13816)
2026-11-13 22:14:55 +01:00
David Mann 8c793675b2 Merge pull request #13944 from qvest-ssels/fix/frame-tool-move-history-13880
Frame tool: moving an empty frame records Move
2026-11-13 22:14:43 +01:00
David Mann 3ad66527ec Merge pull request #13916 from Lcoding15/fix/png24-embed-icc
fix(export): PNG-24 embeds the profile only with Embed Color Profile on (#13798)
2026-11-13 22:13:56 +01:00
David Mann 94dd9b29a7 Merge pull request #13541 from RickiNano/fix/13205-direct-select-history-names
Direct Selection: name one-anchor and handle drags as in the reference (#13205)
2026-11-13 22:13:01 +01:00
RickiNano e80faf1345 Merge remote-tracking branch 'origin/main' into fix/13920-import-data-sets-needs-variables 2026-11-13 21:01:19 +01:00
RickiNano d14e2b2600 Import Data Sets: declare the #13920 test module after mod tests
Keeps this hunk apart from #13952's, which adds its module before `mod tests`.
2026-11-13 20:14:05 +01:00
RickiNano b3d52fc272 Import Data Sets: greyed until the active document has a variable (#13920)
File > Import > Variable Data Sets was enabled on any open document, so
importing into one without variables made data sets with no values.
Gate it on the active document defining at least one variable, as the
export counterparts already gate on data sets.
2026-11-13 20:08:57 +01:00
RickiNano a7ea4a5bf3 Merge remote-tracking branch 'origin/main' into fix/atn-fade-step-defaults-13816 2026-11-13 20:08:56 +01:00
RickiNano 71badd838a Quick Export: JPG files are progressive at every quality (#13787) (#13825)
Quick Export built its web settings without a `progressive` key, so every
JPG it wrote was baseline (SOF0). The reference application writes them
progressive (SOF2) at every quality. Save for Web keeps its own Progressive
checkbox, off by default.
2026-11-13 20:02:49 +01:00
RickiNano 96d649c777 Fade: hiding or showing another layer keeps it available (#13805) (#13832)
The fade source now keeps the history id of the state before the faded
step. A following Hide Layers, Show Layers, Show Only This Layer or eye
click on layers other than the faded one keeps Fade enabled, and Fade
blends towards that state even when the visibility change added a
history state. Selecting another layer, any other step, or showing or
hiding the faded layer itself still disables Fade.
2026-11-13 20:01:56 +01:00
RickiNano cac741356b Edit > Fade: Dissolve picks the base or the result per pixel (#13809) (#13840)
Fade in Dissolve fell through to the Normal mix. Below 100 % each pixel
now keeps the pixel before the step or takes the step's result whole,
alpha included, with the opacity as the odds. The pick uses the
position-based dither_noise that Edit > Fill's Dissolve uses, so it is
the same across tiles and between the dialog's preview and OK.
2026-11-13 20:00:51 +01:00
RickiNano 2db52e2ab9 Merge remote-tracking branch 'origin/main' into fix/frame-content-name-13862 2026-11-13 19:48:26 +01:00
RickiNano 4b21463fe6 Actions: unmeasured Fade opacities 200+ and -100- keep the clamp (#13816)
Only values less than 100 past either end wrap (150 -> 50, -5 -> 95), as
measured; 200, -100, -105 and further out were not measured and keep the
old clamp to 0..=100, per the issue's rule for unmeasured cases.
2026-11-13 19:28:12 +01:00
RickiNano c5c7f2c58a Merge remote-tracking branch 'origin/main' into fix/13205-direct-select-history-names
# Conflicts:
#	crates/ui-egui/src/tools/direct_select.rs
2026-11-13 19:07:34 +01:00
RickiNano 4d56558094 Frame tool: name a frame made around a layer "<layer> Frame" (#13862)
A frame that takes a content layer was always named "Frame N". It is now
named after that layer ("Red Frame"), as in the reference application;
the content layer keeps its own name. Empty frames keep "Frame N" and an
explicit name param still wins.
2026-11-13 19:07:29 +01:00
qvest-ssels 76d8211de1 Frame tool: moving an empty frame records Move
layer.frame.set takes an optional historyName ("Move" or null; anything else is refused before
the document changes). The Frame tool sends it when it drags an empty frame, so History shows Move.
Handle drags, nudges, Free Transform, Properties changes and frames with an image keep Frame
Properties.

Fixes #13880
2026-11-13 18:31:58 +01:00
RickiNano 5f01818a0a Merge remote-tracking branch 'origin/main' into fix/atn-fade-step-defaults-13816 2026-11-13 18:26:54 +01:00
qvest-ssels 70a1f99b31 Image Size test: expect the selection dropped, check Crop's resample keeps it
image_size_keeps_canvas_edges_opaque asserted the old behaviour (a scaled
full selection after Image Size). Image Size now drops it (#13856); the
corner check moves to resample_doc, which the Crop tool's W x H x
Resolution mode still uses.
2026-11-13 18:26:00 +01:00
RickiNano f438929034 Merge remote-tracking branch 'origin/main' into feat/fade-all-blend-modes-13806 2026-11-13 18:25:35 +01:00
qvest-ssels d6475da125 Fit Image and Image Size drop the selection when they resample (#13856)
Resampling to a new pixel size now drops the active selection instead of
keeping a scaled copy, as the reference application does. Undo restores
the old size and selection in one step. A Fit Image that changes nothing
and a resolution-only Image Size keep the selection. The shared
resample_doc helper (Crop tool) is unchanged.
2026-11-13 17:58:06 +01:00
David Mann de93ee2d38 Merge pull request #13396 from davidmann4/integration-mcp
Integration batch MCP: agents in the open PhotoCraft window, one switch in the ArtCraft Launcher (#11363, #5525)
2026-11-13 17:41:24 +01:00
David Mann 19c4632a18 Merge pull request #13797 from TrevorBrown-dev/fix/paths-ai-path-blocks-13780
Paths to Illustrator: each path is its own marked block, with a group and combine note per subpath (#13780)
2026-11-13 17:38:23 +01:00
David Mann eb726ecc4a Merge pull request #13795 from TrevorBrown-dev/fix/clut-cube-header-13750
Color Lookup Tables export: the CUBE file's comment layout and, for 8- and 16-bit documents, values on 1/32768 steps (#13750)
2026-11-13 17:38:09 +01:00
Lcoding15 dff16c1ad1 fix(export): PNG-24 embeds the profile only with Embed Color Profile on (#13798) 2026-11-13 16:56:13 +01:00
RickiNano 5fe76d9e31 Fade: list all 27 blend modes in groups, greyed by colour mode and depth (#13806)
The Fade dialog's Mode list now shows the 27 layer blend modes in the
reference order, with a line between its six groups. A Grayscale 8-bit,
Lab 8-bit or RGB 32-bit document greys the modes measured as unavailable
there; the keys and the wheel step past them, and a remembered mode the
document greys opens as Normal. The edit.fade params doc lists all 27
modes; the old names keep working.

Fixes #13806
2026-11-13 16:43:04 +01:00
RickiNano eedfccfc23 Actions: a recorded Fade step without settings plays as 100 % Normal (#13816)
A Fade step with no Opct or Md key now maps to edit.fade with the missing
setting at its fixed default (100 %, Normal) instead of becoming an
unsupported step. A recorded opacity is rounded to a whole percent and,
outside 0..=100, wraps modulo 100 (150 plays as 50, -5 as 95) rather than
clamping. Recording still writes both keys.

Fixes #13816
2026-11-13 16:26:49 +01:00
David Mann 75a4455673 Merge pull request #12999 from slafebre/fix/12938-sharpen-protect-detail
Sharpen tool: Protect Detail sharpens gently instead of doing nothing (#12938)
2026-11-13 15:32:07 +01:00
David Mann ee7ca611e2 Merge pull request #13578 from TrevorBrown-dev/fix/13350-triangle-fills-box
Triangle tool: the shape fills the dragged box (#13350)
2026-11-13 15:04:19 +01:00
David Mann 858093640d Merge pull request #13532 from indy2kro/fix/13267-arrowhead-history-names
Line Properties: arrowhead edits are named in History (#13267)
2026-11-13 15:03:21 +01:00
David Mann adf849eb8b Merge pull request #13487 from ljkx/fix/12912-remove-only-split-restores-default-grid
engine: removing the only split of the Default warp grid restores it (#12912)
2026-11-13 15:03:10 +01:00
David Mann 0391fd88c4 Merge pull request #13124 from mlo0352/fix/clone-layer-source-and-preview
Fix Clone Stamp layer/document sources, preview strength and X/Y offsets
2026-11-13 15:02:58 +01:00
Trevor BrownandClaude Sonnet 5.5 56fe93fd71 Paths to Illustrator: each path is its own marked block, with a group and combine note per subpath (#13780)
paths_to_ai now writes one Path_Begin/Path_End block per path, one *u/*U group per subpath with its combine note and 1 XR, and no path name. A Join subpath takes the note of its component.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Model-Effort: Opus 5.5 drove; Opus 5.5 briefed; Sonnet 5.5 wrote at medium
2026-11-13 09:01:51 -05:00
Trevor BrownandClaude Sonnet 5.5 d62728aeae Color Lookup Tables export: the CUBE file's comment layout and, for 8- and 16-bit documents, values on 1/32768 steps (#13750)
bake_cube_layers now takes the document's sample type, writes the reference
comment layout around the header, and rounds 8- and 16-bit values to
multiples of 1/32768. 32-bit values stay unquantised.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Model-Effort: Opus 5.5 drove; Opus 5.5 briefed; Sonnet 5.5 wrote at medium
2026-11-13 08:59:46 -05:00
Sven Lafebre 61ae264e89 Merge remote-tracking branch 'origin/main' into fix/12938-sharpen-protect-detail 2026-11-13 14:42:55 +01:00
David MannandClaude Opus 5.5 dbd2cd1628 fix(mcp): plain mcp stays headless without the AI-MCP flag; integrations read leniently
- Without the AI-MCP flag plain `photocraft-cli mcp` is headless as before: a
  Control Port saved before the agents switch no longer makes it look for the
  app, start it or apply When PhotoCraft Is Closed. Test in
  mcp_without_consent_works_headless (fails without the gate).
- `prefs::read_integrations_section` (migrate + lenient read) is shared by the
  app's launch read and `photocraft-cli mcp`: one bad value resets only itself,
  so a saved "error" closed-app choice no longer falls back to Launch in the CLI.
  Replaces the app's hand-written per-field reader. Test in
  integrations_come_from_the_saved_preferences_or_default (fails without it).
- docs/development.md: the headless client examples pass --headless.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-13 12:36:22 +01:00
Trevor BrownandClaude Sonnet 5.5 87ee062e41 Merge remote-tracking branch 'upstream/main' into fix/13350-triangle-fills-box
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Model-Effort: Opus 5.5 drove; Opus 5.5 briefed; Sonnet 5.5 wrote at medium
2026-11-13 05:53:44 -05:00
e5dfa6bd0d PR #13124: use as_chunks_mut in the off-canvas resample test
Clippy's chunks_exact_to_as_chunks lint rejects chunks_exact_mut(4) under
-D warnings; main uses as_chunks_mut for the same pattern.

Co-Authored-By: mlo0352 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-13 11:52:26 +01:00
ljkx bf4b20b025 Quick Selection: a frame active keeps reading the composite
A frame is a group too, but the reference application was not measured
with one active, so it keeps today's behaviour, as an artboard does.
2026-11-13 11:43:08 +01:00
David Mann 968ba560e5 Merge origin/main into PR #13124 2026-11-13 11:16:48 +01:00
ljkx 9ff5aa8565 Quick Selection: a group active without Sample All Layers selects the brush disc (#12933)
A group has no pixels of its own, so with Sample All Layers off Quick
Selection fell back to the composite and a click selected a whole shape
from the layers inside. The reference application selects only the brush
disc there, as on a flat area. Quick Selection now reads a flat image for a
group (not an artboard) when Sample All Layers is off; with it on, and for
an adjustment layer, it reads the composite as before.
2026-11-13 10:46:01 +01:00
David Mann 7f93b2e0a8 Merge pull request #13502 from RickiNano/fix/13258-arrow-concavity-range
Line tool: arrowhead Concavity takes -50..50 % (#13258)
2026-11-13 09:40:47 +01:00
David Mann 1feede918e Merge pull request #12930 from rmsff/fix/pattern-stamp-indexed-refusal-12887
Refuse an RGB pattern with the Pattern Stamp in Indexed Color
2026-11-13 09:39:36 +01:00
David Mann dd444f859e Merge pull request #12644 from x-labb/fix-12010-gradient-alpha-method
fix(engine): a gradient's transparency follows the interpolation method (#12010)
2026-11-13 09:38:21 +01:00
RickiNano 675bd970f3 Line tool: fill the wedge a concave arrowhead leaves; whole-percent concavity (#13258)
With a base bent toward the tip, the shaft stopped where the bent base
crosses its edge and left the wedge up to the base's middle unfilled. The
shaft's end now follows the bent base to its middle, which fills the wedge
without reaching past the head's flanks, matching the reference outline.

shape.create / shape.edit round arrowConcavity to a whole percent, as the
gear and Properties fields do.
2026-11-13 06:11:29 +01:00