Commit Graph
18351 Commits
Author SHA1 Message Date
David MannandClaude Opus 5.5 d89a8856cc Crop: Fill goes back to its default when the active layer cannot use the synthesised fill (#17687)
With Fill set to the synthesised fill, making a smart object, an adjustment,
type or shape layer, or the Background among other layers active puts Fill
back on the default entry, and it stays there when a pixel layer is active
again. Several selected layers keep today's behaviour.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-02 06:01:26 +01:00
David Mann f231907920 WIP: Crop: Fill goes back to its default when the active layer cannot use Content-Aware Fill (#17687) 2026-12-02 05:30:24 +01:00
David Mann 7c4fade5ba Merge branch 'bb-epic-crop-mx5bund6' of github.com:storytold/photocraft into bb-epic-crop-mx5bund6--17681-32bit-turned-crop-overshoot 2026-12-02 05:26:49 +01:00
David Mann 157ba55111 Merge branch 'bb-epic-crop-mx5bund6' of github.com:storytold/photocraft into bb-epic-crop-mx5bund6--17681-32bit-turned-crop-overshoot 2026-12-02 05:26:35 +01:00
David MannandClaude Opus 5.5 43e3d0b836 Crop: keep a 32-bit turn's bicubic samples within their neighbours (#17681)
A turned crop (and Image Rotation by an arbitrary angle) of a 32-bit
document kept the bicubic kernel's overshoot in float, so colour edges
came out negative or brighter than both sides. Hold each colour channel
within the four source pixels around the sample; 8/16 bit and HDR
values away from edges are unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-02 05:26:13 +01:00
David Mann cbfbb56c8f Merge branch 'bb-epic-crop-mx5bund6' of github.com:storytold/photocraft into bb-epic-crop-mx5bund6--17677-crop-indexed-palette
# Conflicts:
#	crates/engine-core/src/cmd/image_cmds.rs
2026-12-02 05:25:35 +01:00
David MannandClaude Opus 5.5 42f43b3b9a Crop: test that a Multichannel crop adds no ink (#17680)
A Multichannel document has no layers, so an expanding or turned crop
leaves the new area of every ink channel empty (density 0) whatever the
background colour. The new test reads the channels at 8 and 16 bit,
straight and turned, with Delete Cropped Pixels on and off.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-02 05:19:46 +01:00
David Mann 77f87200b7 Merge branch 'bb-epic-crop-mx5bund6' of github.com:storytold/photocraft into bb-epic-crop-mx5bund6--17677-crop-indexed-palette
# Conflicts:
#	crates/engine-core/src/cmd/image_cmds.rs
2026-12-02 05:18:38 +01:00
David Mann c59420d854 WIP: Crop: no overshoot from a turned crop on 32-bit documents (#17681) 2026-12-02 05:12:09 +01:00
David Mann aaaa210e94 Merge branch 'bb-epic-crop-mx5bund6' of github.com:storytold/photocraft into bb-epic-crop-mx5bund6--17674-golden-spiral-smooth 2026-12-02 05:07:59 +01:00
David Mann 9bf4da30c0 Merge branch 'bb-epic-crop-mx5bund6' of github.com:storytold/photocraft into bb-epic-crop-mx5bund6--17674-golden-spiral-smooth
# Conflicts:
#	Cargo.lock
#	Cargo.toml
#	crates/engine-core/Cargo.toml
#	crates/ipp/Cargo.toml
2026-12-02 04:52:08 +01:00
David MannandClaude Opus 5.5 d22dc459be Crop: fill a Bitmap document's border with black or white (#17679)
An expanding crop on a Bitmap document filled the new border with the
background colour's grey, a value a Bitmap image cannot hold. The grey is
now thresholded at 50 %, as in the reference application: magenta fills
black, white fills white. Grayscale keeps the grey.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-02 04:42:02 +01:00
David Mann 141a83579b WIP: Crop: fill a Bitmap document's border with black or white (#17679) 2026-12-02 04:37:04 +01:00
David Mann 0e0145697f Merge branch 'bb-epic-crop-mx5bund6' of github.com:storytold/photocraft into bb-epic-crop-mx5bund6--17676-crop-delete-forced-modes
# Conflicts:
#	Cargo.lock
#	Cargo.toml
#	crates/engine-core/Cargo.toml
#	crates/ipp/Cargo.toml
2026-12-02 04:29:48 +01:00
David MannandClaude Opus 5.5 ef2217b2e0 Crop: Delete Cropped Pixels forced in Indexed, Bitmap and Multichannel (#17676)
image.crop crops as with Delete Cropped Pixels on in Indexed, Bitmap and
Multichannel documents, also under a turned frame, so the Background stays
a Background. The Crop options bar shows the check box greyed and checked
there (craft-libs CropBar::delete_forced) and the tool works with it on,
while the stored option keeps the user's value for the next document.
craft-libs pinned at the batch branch tip.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-02 04:00:56 +01:00
David MannandClaude Opus 5.5 6ec4a2602d Crop: the spiral orientation tests read the shared counter (#17673)
With #17672 merged in, its tests still expected the Triangle to wrap 1 -> 0 and a
restored Triangle at 6 to start over; the counter is now shared, so Shift+O on the
Triangle counts on and a restart keeps any value below 8.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-02 03:41:22 +01:00
David MannandClaude Opus 5.5 ed8d097e96 Crop: an Indexed crop keeps to the colour table (#17677)
On an Indexed Color document an expanding crop fills the border with the
colour table's entry nearest to the background colour (Euclidean RGB, a tie
to the lower index), and a turned crop resamples with Nearest Neighbor and
fills the corners the turn uncovers with that same entry, so the result has
palette colours only. RGB and the other modes keep their background colour
and their bicubic turn.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-02 03:40:20 +01:00
David Mann f4ca7bffb9 Merge branch 'bb-epic-crop-mx5bund6' of github.com:storytold/photocraft into bb-epic-crop-mx5bund6--17673-crop-orientation-shared 2026-12-02 03:35:11 +01:00
David Mann 0135abd227 WIP: Crop: an Indexed crop keeps to the colour table (#17677) 2026-12-02 03:29:21 +01:00
David Mann b9920ee384 Merge branch 'bb-epic-crop-mx5bund6' of github.com:storytold/photocraft into bb-epic-crop-mx5bund6--17661-crop-preview-rows 2026-12-02 03:24:38 +01:00
David MannandClaude Opus 5.5 8f6a2d7858 Crop: the Layers panel press tests press the session's rows by place
With the Crop Preview rows (#17661) a pending crop no longer lists Middle by
name; the press tests of #17660 press the second row (Background during the
session), which is Middle's place after the commit, as in the reference
application.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-02 03:24:25 +01:00
David Mann ace6fb0b55 WIP: Crop: Delete Cropped Pixels forced in Indexed, Bitmap and Multichannel (#17676) 2026-12-02 03:19:12 +01:00
David Mann 387e00c9dc Merge branch 'bb-epic-crop-mx5bund6' of github.com:storytold/photocraft into bb-epic-crop-mx5bund6--17661-crop-preview-rows 2026-12-02 03:11:15 +01:00
David Mann 184a6cb3fc Merge branch 'bb-epic-crop-mx5bund6' of github.com:storytold/photocraft into bb-epic-crop-mx5bund6--17672-spiral-orientations
# Conflicts:
#	Cargo.lock
#	Cargo.toml
#	crates/engine-core/Cargo.toml
#	crates/ipp/Cargo.toml
2026-12-02 03:04:18 +01:00
David MannandClaude Opus 5.5 3b0561dfde Crop: overlay changes keep the shared orientation counter (#17673)
Triangle and Golden Spiral share one orientation counter, as in the reference
application: Shift+O counts it on (wrapping after 8), O and the overlay menu keep
it, and a restart restores any value below 8. craft-libs pinned at the batch
branch tip b2b69c84, which carries the counter change.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-02 02:57:00 +01:00
David MannandClaude Opus 5.5 9dc33e674e Crop overlay: the Golden Spiral's arcs are smooth curves (#17674)
craft-libs pin moved to d20f66166 (bb-epic-crop-mx5bund6 tip): each spiral
arc gets segments for its size on screen instead of a fixed 12.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-02 02:46:34 +01:00
David Mann ac91933f54 Merge branch 'bb-epic-crop-mx5bund6' of github.com:storytold/photocraft into bb-epic-crop-mx5bund6--17673-crop-orientation-shared 2026-12-02 02:40:52 +01:00
David MannandClaude Opus 5.5 9157358012 Crop: the Golden Spiral has eight orientations (#17672)
Shift+O now steps the Golden Spiral through eight orientations as in the
reference application (the geometry is in craft-libs; the pin moves to
the epic-crop batch branch's tip). `ui.set cropOverlayOrientation` takes
0 to 7; saved settings already keep what the guide has.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-02 02:28:14 +01:00
David MannandClaude Opus 5.5 c8aa2624b2 Crop overlay: the Grid guide has centred 48-point cells (#17671)
Pins craft-libs at the crop batch branch with the Grid guide laid out as
the turn grid: square cells of 48 screen points at every zoom, centred in
the frame, no line on the outline.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-02 02:22:49 +01:00
David Mann bd201a2b7e WIP: Crop: overlay changes keep the shared orientation counter (#17673) 2026-12-02 02:19:39 +01:00
David Mann 63f6c20842 WIP: Crop: the Golden Spiral has eight orientations (#17672) 2026-12-02 02:14:45 +01:00
David Mann 0b907b9df4 Merge branch 'bb-epic-crop-mx5bund6' of github.com:storytold/photocraft into bb-epic-crop-mx5bund6--17670-overlay-lines-faint 2026-12-02 02:09:37 +01:00
David Mann a7f15c7085 Merge branch 'bb-epic-crop-mx5bund6' of github.com:storytold/photocraft into bb-epic-crop-mx5bund6--17662-crop-preview-title
# Conflicts:
#	crates/ui-egui/src/tools/crop_ui.rs
2026-12-02 01:55:45 +01:00
David MannandClaude Opus 5.5 9388e6d36f Crop: a Layers panel press commits a pending crop first (#17660)
With a crop frame waiting for Enter or Escape, a press in the Layers panel
(rows, eyes, the Opacity/Fill/blend rows) now commits the crop before the
panel builds its rows, so the press acts on the cropped document: a row
click selects after the Crop state, an eye toggles as its own Layer
Visibility state after it. A right press that commits opens no row menu
until its release. The Channels tab, Classic Mode and the untouched default
frame keep today's behaviour.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-02 01:53:59 +01:00
David MannandClaude Opus 5.5 e10fc2df51 Crop: overlay guides read as a light 1 px line (#17670)
Pins craft-libs at the batch branch tip with the crop overlay change: the
composition guides and the turn grid are an opaque light grey (about 237
over grey, black and white) one physical pixel wide, on a pixel centre
when level or upright. The new test drives the Crop canvas for all six
guides at 50/100/200 % and two display scales.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-02 01:24:18 +01:00
David MannandClaude Opus 5.5 f6198647ce Layers panel: Crop Preview rows during a pending crop (#17661)
While a crop is pending in the Crop tool's default mode the Layers panel lists
a Crop Preview row (the composite of the visible layers) and, with a
Background and Delete Cropped Pixels on, a Background row showing the
background colour, in place of the layers. The Kind filter, the locks, Fill
and the footer are greyed and the panel menu holds a Tab Group submenu.
Classic Mode, the untouched default frame and other tools list the layers as
before; the document's layers are never changed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-02 01:23:54 +01:00
David MannandClaude Opus 5.5 895e71353a Crop: tab title names Crop Preview at depth 8 during a pending crop (#17662)
While a crop is pending in default mode the document tab reads
"(Crop Preview, <mode>/8)" in place of the active layer and the real
depth, as the reference application does. Classic Mode, the untouched
default frame, other documents and the unmeasured modes and targets keep
today's title.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-02 00:48:35 +01:00
David Mann 1c5d5e0b72 WIP: Crop: overlay guide lines read as a light 1 px line (#17670) 2026-12-02 00:35:11 +01:00
David Mann b97a257377 WIP: Crop: tab title names Crop Preview during a pending crop (#17662) 2026-12-02 00:29:46 +01:00
David Mann edd13e692d WIP: Layers panel: Crop Preview rows during a pending crop (#17661) 2026-12-02 00:28:57 +01:00
David MannandClaude Opus 5.5 cee1b11416 Move tool: the transform-box cursor test hovers off the reference point (#18160)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-01 18:07:59 +01:00
David Mann b5bf348b05 Merge branch 'bb-move-tool-mx4onk76' of github.com:storytold/photocraft into bb-move-tool-mx4onk76--18160-move-drag-cursors 2026-12-01 18:01:59 +01:00
David MannandClaude Opus 5.5 5e274b4d1c Move tool: the Alt drag test reads the drag's arrowhead (#18160)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-01 18:00:07 +01:00
David Mann 7203ac71ea Merge branch 'bb-move-tool-mx4onk76' of github.com:storytold/photocraft into bb-move-tool-mx4onk76--18161-reference-point-drag 2026-12-01 17:29:27 +01:00
David MannandClaude Opus 5.5 28cdbfc131 Move tool: drag the reference point into Free Transform (#18161)
With Show Transform Controls on, the Move box now has its reference
point. A drag that starts on the box centre opens Free Transform through
the existing hand-off and moves the reference point, not the layer; the
session is told to show its point so its own box carries the drag on.
A press elsewhere inside the box still moves the layer.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-01 17:28:49 +01:00
David Mann 38180c8970 Merge branch 'bb-move-tool-mx4onk76' of github.com:storytold/photocraft into HEAD 2026-12-01 17:19:53 +01:00
David MannandClaude Opus 5.5 ca691f017e Move tool: arrowhead cursor while a drag runs (#18160)
A layer or pixels drag shows the small arrowhead with no four-way cross,
hollow for the layer that was already active or the selected pixels,
solid for a layer Auto-Select picked at the press; Shift and Alt alike.
The layer marquee keeps the hover cursor, and the hover inside the
transform box shows the arrow with the cross like the rest of the canvas.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-01 17:10:34 +01:00
David MannandClaude Opus 5.5 ca6c0d9d13 Move tool: a moved board takes in loose layers it covers (#18154)
auto_nest now also looks at the loose (top-level) layers when a board moves: each one with more
than a tenth of its area on a moved board joins it, on top of its stack, in the same Move step.
The Alt-drag copy goes through the same path, so the layer joins the copy. A Prevent Auto-Nesting
lock on the board or on the layer keeps it loose; layers of other boards are never taken.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-01 17:08:26 +01:00
David Mann 544bdeaa15 WIP: Move tool: arrowhead cursor while a drag runs (#18160) 2026-12-01 17:04:29 +01:00
David Mann 96be76c526 Merge branch 'bb-move-tool-mx4onk76' of github.com:storytold/photocraft into bb-move-tool-mx4onk76--18130-locked-nudge-alert 2026-12-01 17:03:29 +01:00