Commit Graph
4187 Commits
Author SHA1 Message Date
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
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
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
RickiNano a7990ee1f2 Line tool: arrowhead Concavity takes -50..50 % (#13258)
Concavity is a whole number from -50 % to 50 % of the head's length, as in
Photoshop. A negative value bends the head's base away from the tip, and the
shaft now ends where the bent base crosses the shaft's edge. Values outside
the range (documents, PSDs and settings saved with the old 0..100 range) are
clamped to the nearest end instead of failing.

- vector: arrow_line bends the base by concavity x length, both directions
- engine: shape.create / shape.edit take arrowConcavity in -50..=50
- io: PSD import keeps negative concavity, clamped to -50..50
- ui: gear and Properties Concavity are whole-number fields with the
  "Closest value inserted" alert; the gear menu stays open on clicks inside
  so a value can be typed
2026-11-13 06:11:29 +01:00
Cristi Radu 7e0183d90c Merge remote-tracking branch 'upstream/main' into fix/13267-arrowhead-history-names 2026-11-13 06:57:27 +02:00
69ad84d9fb PR #12644: keep Smooth's transparency gradient at 97 stops
The colour and opacity bakes sample the same 97 positions, but apply_opacity cut every interval
into four (385 stops), and paint_gradient scans the stops for every pixel. Multiply the alpha in
at each shared position instead; other positions still go through apply_opacity. Raised by
CodeRabbit.

Co-Authored-By: x-labb <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-13 02:43:21 +01:00
FredApps e052eabf4b Merge pull request #3615 from vangel76/fix/smart-object-more-adjustments
Image Adjustments: Desaturate, Equalize and Replace Color on a smart object (#3606)
2026-11-13 02:24:05 +01:00
FredApps 33131bd78b Merge pull request #9462 from vangel76/perf/9432-camera-raw-single-decode
Camera Raw open: decode the raw once instead of three times
2026-11-13 02:22:52 +01:00
FredApps bb07d33e58 Merge pull request #9748 from vangel76/perf/9744-gamut-mask-parallel
perf(cms): compute the Gamut Warning mask in parallel
2026-11-13 02:20:16 +01:00
Trevor BrownandClaude Sonnet 5.5 cbd389a504 Triangle tool: tests for hostile and degenerate boxes and for the triangle_live field (#13350)
The hostile-radii test now tells the command guard's internal error from a graceful one, and a new test sends hostile boxes. The vector tests pin zero-size, sliver and tall thin boxes. The format tests cover both fields present, a field holding another kind, and junk in triangle_live.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Model-Effort: Opus 5.5 drove; Fable 5.2 briefed; Sonnet 5.5 wrote at medium
2026-11-12 20:19:03 -05:00
FredApps a2067ab456 Merge pull request #11152 from vangel76/perf/paint-stroke-budget
Paint: bound a stroke's cost and skip dabs outside the canvas (#11136)
2026-11-13 02:17:27 +01:00
David Mann ca0c90cb05 Merge remote-tracking branch 'origin/main' into HEAD 2026-11-13 02:04:48 +01:00
David Mann 7529eaa98c Merge pull request #12097 from hnoerenberg/fix/magic-eraser-mode-refusals-12032
fix(engine): the magic eraser refuses Indexed and Bitmap documents
2026-11-13 02:02:32 +01:00
Sven Lafebre c3d855ce4f Merge remote-tracking branch 'origin/main' into fix/12938-sharpen-protect-detail 2026-11-13 01:49:50 +01:00
David Mann 2239ee9cb6 Merge pull request #11354 from chamber074/fix/clear-fill-fringe
Paint bucket: filling a cleared selection leaves no grey ring
2026-11-13 01:49:25 +01:00
David Mann f0985a5953 Merge pull request #11871 from DuBearte/fix/11762-count-keeps-coords
fix(engine): count markers keep their coordinates through Image Size, Canvas Size and Image Rotation (#11762)
2026-11-13 01:49:14 +01:00
David Mann 7aab944d70 Merge pull request #12471 from ljkx/actions-frame-from-layers
Actions: map Layer › New › Frame from Layers (#10723)
2026-11-13 01:40:03 +01:00
Trevor BrownandClaude Sonnet 5.5 303be52228 Triangle tool: the triangle fills its box, as its own live kind (#13350)
A new live shape kind, LiveShape::Triangle { rect, corner_radius }, draws an isosceles triangle that fills the dragged box (apex at the top centre, then bottom right, bottom left). The engine no longer turns a triangle into an inscribed 3-sided polygon. Triangles saved before this are 3-sided polygons and keep that geometry.

The .pcraft manifest stores a live triangle in a new optional triangle_live field beside live (as arrow_live does), so older builds open the file and show the saved path. PSD export writes no vogk for a triangle, as for polygons.

Arms the new kind forces: live_kind, the axis-aligned transform, params, the corner radius widgets and the Properties Shape section (Corner radius only). Shift keeps today's equilateral triangle, sent as its tight box.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Model-Effort: Opus 5.5 drove; Fable 5.2 briefed; Sonnet 5.5 wrote at medium
2026-11-12 19:27:36 -05:00
MarekSpodBiedryandskylar 8631a92178 Rasterize: undo the layers already converted when a later step fails (#4974) (#5073)
* Rasterize: undo the layers already converted when a later step fails (#4974)

* Rasterize: roll back through the shared compound helper when a later layer fails (#4974)

* Test that a failed Rasterize keeps a clean document clean (#4974)

* Rasterize: undo the layers already converted when a later step fails, and refuse before a step starts when there is nothing to do (#4974)

* Format the rasterize rollback tests

* Rasterize: cover the All Layers and Layer Style refusals through the real commands

* Rasterize: name the history step after the variant, and test the rollback through the real commands (#4974)

---------

Co-authored-by: skylar <[email protected]>
2026-11-13 01:16:51 +01:00
David Mann b88da92ed8 Merge branch 'main' into fix/clone-layer-source-and-preview (merge queue) 2026-11-13 01:04:13 +01:00
David Mann 127a83fbc9 Merge branch 'main' into fix/pattern-stamp-indexed-refusal-12887 (merge queue) 2026-11-13 01:01:52 +01:00
David Mann 721d5f521c Merge branch 'main' into fix-12010-gradient-alpha-method (merge queue) 2026-11-13 00:58:35 +01:00
David Mann 41c7c5fb9f Merge branch 'main' into fix/12938-sharpen-protect-detail (merge queue) 2026-11-13 00:57:47 +01:00
David Mann 4a3bcb483a Merge branch 'main' into fix/clear-fill-fringe (merge queue) 2026-11-13 00:56:12 +01:00
David Mann b20eeb7a2e Merge branch 'main' into actions-frame-from-layers (merge queue) 2026-11-13 00:54:34 +01:00
David Mann 5a1a678af2 Merge branch 'main' into fix/magic-eraser-mode-refusals-12032 (merge queue) 2026-11-13 00:50:51 +01:00
David Mann 8b0c0fcf3d Merge pull request #13485 from ljkx/fix/12489-perspective-crop-mirrored-quad
algo, engine, ui: Perspective Crop commits a quad mirrored on one axis (#12489)
2026-11-13 00:50:39 +01:00
David Mann 594f392414 Merge pull request #13484 from ljkx/fix/13060-pencil-auto-erase-cmyk-inks
engine: Pencil Auto Erase probes a CMYK pick with the picked inks (#13060)
2026-11-13 00:50:27 +01:00
David Mann 604df4c636 Merge pull request #13481 from ljkx/fix/retouch-tools-refuse-indexed-bitmap
engine, ui: Burn, Sponge, Blur and Smudge refuse Indexed Color and Bitmap (#12673, #13033, #12656, #12967)
2026-11-13 00:49:28 +01:00
David Mann d66e141bd2 Merge branch 'main' into fix/11762-count-keeps-coords (merge queue) 2026-11-13 00:45:57 +01:00