Commit Graph
3150 Commits
Author SHA1 Message Date
David MannandClaude Opus 5.5 8c6412bbb2 Plug-ins: running a filter plug-in respects layer locks (#6770)
plugin.run wrote into raster and smart object layers without checking
locks. It now refuses layers with locked pixels or Lock All like the
built-in filters, and with Lock Transparency it keeps the layer's alpha
(as built-in filters do, via filters::keep_alpha).

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-16 23:20:35 +02:00
David MannandClaude Opus 5.5 ec83a1117f Presets: refuse renaming a group to a name another group has (#6768)
renameGroup in the shared preset group editor renamed without checking
that the new name was free, so two groups could share a name and a later
replace import of that name removed both. It now refuses like the
Swatches sibling; renaming a group to its own name stays fine.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-16 23:20:35 +02:00
David MannandClaude Opus 5.5 0fc5660f60 Image Size: a gradient fill's centre offset stays a fraction of the frame (#6778)
map_fill multiplied the offset by the full linear part of the canvas transform, so Image Size
(and Perspective Crop) scaled it: 200% moved a 25% offset to 50%. Each axis of the linear part
is now normalised, so scale drops out while flips and 90° turns still mirror and turn it.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-16 23:19:40 +02:00
David MannandClaude Opus 5.5 031ab7d5b2 Apply Image: write into the targeted layer mask (#6780)
With the layer mask targeted, apply_image took the layer branch and fetched the
layer's pixel surface with the target dropped, so the mask stayed unchanged and the
pixels were overwritten. A mask target now goes through the single-plane path and
is written back over the canvas, keeping the mask's default outside it.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-16 23:18:53 +02:00
Ian Swope 9b6a85824d Mesh warp: tiles encoded in parallel and in-bounds taps read directly, about twice as fast with identical pixels 2026-10-16 16:13:44 -05:00
David MannandClaude Opus 5.5 9ac2c08875 Actions: renaming an action updates the Conditional steps that call it (#6772)
actions.rename only rewrote the "action" param of actions.play steps, so an
actions.conditional step whose "then"/"else" named the renamed action failed
with "no action named ..." on the next play. The rename loop now also rewrites
matching then/else branches, in saved actions and the pending recording.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-16 23:02:33 +02:00
David MannandClaude Opus 5.5 af5e77b150 Auto-Align: warp layer masks as masks, keeping what lies outside revealed (#6776)
Auto-Align warped a moving layer's mask with the colour warp (warp_placed), which
returns a grey + alpha surface defaulting to 0, so a reveal-all mask hid everything
outside its painted area. Masks now go through warp_gray (planar placements) or
warp_mesh_gray (cylindrical/spherical), keeping one channel and the mask's default.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-16 23:01:14 +02:00
David MannandClaude Opus 5.5 bdf44ab18c PSD: read colours stored as HSB (#6774)
color_from_desc had no HSBC arm, so HSB descriptor colours fell through to the
RGB fallback and came back None: solid fills vanished, strokes and effects went
black. Convert HSBC (hue in degrees, saturation/brightness 0..100) with the
existing channel_map::hsb_to_rgb, now pub(crate).

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-16 22:51:32 +02:00
David MannandClaude Opus 5.5 ab81052308 Fit Image: a width or height of 0 leaves that side unconstrained (#6766)
fit_image read width/height with f64_param and clamped to 1, so a 0 or
negative side (dialogs send 0 for an empty field) became a 1 px box and
shrank the document to 1x1. It now uses size_param like the rest of
file_cmds.rs, so such a side falls back to the document's own size.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-16 22:49:38 +02:00
David MannandClaude Opus 5.5 01dbccee18 Merge main into feat/tool-213-7-live-retouch
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-16 22:42:01 +02:00
David MannandClaude Opus 5.5 f5d9969803 Merge main into fix/history-brush-source
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-16 22:37:11 +02:00
David MannandClaude Opus 5.5 b01f6d33b3 PSD: layered TIFF byte-order conversion reads the class of Idnt/indx references (#6764)
The byte-order converter read Idnt/indx reference items as a bare u32, but
they are class + u32 (as descriptor.rs reads them since #4434), so a block
holding such a reference desynced and was dropped (or left unconverted).
Read the class first; regression test round-trips such an lfx2 block.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-16 22:33:54 +02:00
David MannandClaude Opus 5.5 43ade8be26 Merge main into perf/p33-cmyk-dab
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-16 22:32:33 +02:00
David MannandClaude Opus 5.5 8af5f2b880 Merge main into fix/history-panel-menu
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-16 22:28:43 +02:00
David MannandClaude Opus 5.5 e5f1ecf501 Merge main into fix/smart-filter-last-mask
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-16 22:24:50 +02:00
nanopink 4354113e73 fix: match Photoshop Gradient Fill scale limits 2026-10-16 16:23:53 -04:00
David MannandClaude Opus 5.5 221af61dea Merge main into fix/count-delete-group-active
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-16 22:22:55 +02:00
David MannandClaude Opus 5.5 48ed913526 Merge main into fix/video-fps-validate
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-16 22:19:12 +02:00
David MannandClaude Opus 5.5 dd6f66e3ae Merge main into fix/lens-filters-smart-locks
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-16 22:17:26 +02:00
David MannandClaude Opus 5.5 0ea2684679 Merge main into fix/adjust-smart-object-locks
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-16 22:15:01 +02:00
David MannandClaude Opus 5.5 73b0bef8a5 Merge main into fix/fill-layer-angle-finite
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-16 22:15:00 +02:00
David MannandClaude Opus 5.5 c7f5dfdbc5 Merge main into feat/file-215-18-export-resample
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-16 22:13:25 +02:00
David MannandClaude Opus 5.5 699a16e024 Merge main into fix/lock-transparency-atop
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-16 22:12:47 +02:00
David MannandClaude Opus 5.5 31df8a357b Merge main into fix/mask-from-transparency-bg-depth
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-16 22:12:45 +02:00
David MannandClaude Opus 5.5 b9d646baad Merge main into fix/multichannel-alpha
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-16 22:11:01 +02:00
David MannandClaude Opus 5.5 1bd9c7a3dc Merge main into fix/1954-overlay-opacity-stops
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-16 22:08:36 +02:00
David MannandClaude Opus 5.5 1b0e69d2f6 Merge main into feat/tool-214-12-shape-feather
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-16 22:07:55 +02:00
David MannandClaude Opus 5.5 c1f0a7522a Merge main into fix/5559-bitmap-dialog
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-16 22:06:11 +02:00
David MannandClaude Opus 5.5 83afd80a87 Merge main into feat/ui-217-4-save-in-background
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-16 22:01:22 +02:00
David MannandClaude Opus 5.5 1336022624 Merge main into perf/p25-blur-cancel
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-16 21:58:23 +02:00
David MannandClaude Opus 5.5 78ae69a456 Merge main into feat/file-215-2-noparam
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-16 21:55:46 +02:00
David MannandClaude Opus 5.5 7977bed5c4 Merge main into feat/ui-217-4-animated-zoom
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-16 21:55:27 +02:00
David MannandClaude Opus 5.5 362f7168ee Merge main into feat/file-215-2-blur
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-16 21:53:52 +02:00
David MannandClaude Opus 5.5 e361737258 Merge main into feat/file-215-2-stylize-pixelate
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-16 21:53:31 +02:00
David MannandClaude Opus 5.5 5990376d1c Merge main into feat/file-215-2-other
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-16 21:50:49 +02:00
David MannandClaude Opus 5.5 1af75eef72 Merge main into feat/file-215-2-sharpen-noise
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-16 21:50:26 +02:00
David MannandClaude Opus 5.5 6199c1e04d Merge main into feat/file-215-2-wind-extrude-tiles
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-16 21:50:14 +02:00
David MannandClaude Opus 5.5 b9abd1c0d9 Merge main into feat/ui-217-1-tool-options-persist
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-16 21:48:33 +02:00
David MannandClaude Opus 5.5 c751ef0ce8 Merge main into feat/file-215-2-mezzotint-halftone
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-16 21:47:48 +02:00
David MannandClaude Opus 5.5 2fef710e49 Merge main into feat/4946-ctrl-hover-distance
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-16 21:25:44 +02:00
David MannandClaude Opus 5.5 dc71a11d41 Merge main into fix/4809-dual-brush-size
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-16 21:25:44 +02:00
vangel76andClaude Opus 5.5 489feb2333 Tests: pcraft keeps text run baseline; tighten sub/superscript size check (#5645)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-16 20:57:15 +02:00
David MannandClaude Opus 5.5 5d3eb7f130 Paths: drag a path row onto the Trash to delete it (#6553)
In Photoshop a path is deleted by dragging its row in the Paths panel
onto the Delete (Trash) button at the panel's bottom: the row follows
the cursor and releasing over the Trash deletes that path, whichever
row is selected. PhotoCraft's rows only reacted to clicks, so the
drag gave no feedback and a drop on the Trash did nothing.

Saved path, work path and vector mask rows now start a drag. While it
runs the row's name follows the cursor (the ghost the Layers and
History panels use) and the Trash is outlined when under the pointer;
releasing there runs the row's own delete command (path.delete for a
saved or the work path, layer.vectorMask.delete for a vector mask),
reusing the History panel's dropped_on helper. A drag that never sees
its release is dropped next frame.

A shape layer's path row does not start a drag: what deleting it does
is #6552's change, kept separate.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-16 19:56:28 +02:00
David MannandClaude Opus 5.5 ed4e94a479 PSD: open an adjustment layer of an unknown type as an unsupported adjustment (#6575)
An adjustment layer whose block no mapper knows (Photoshop 4's `hue `, or a
type newer than PhotoCraft) opened as an empty pixel layer with no notice.
Its block did survive in psd_blocks, but the layer showed as a paintable
empty pixel layer and saved without the "pixel data irrelevant" flag.

Photoshop writes every adjustment layer without pixels and with "pixel data
irrelevant" set (every adjustment layer in the corpus; pixel, type and smart
layers never have it). A record like that which is not a group, matches no
known content kind, and carries exactly one block that is neither a known
layer-information key nor a known adjustment now imports as
Adjustment::Unsupported with that block, plus the usual "could not be read"
warning naming the key. With two or more candidates nothing is guessed and
the layer stays a pixel layer as before. The rule only fires for layers
without pixels, so no pixels can be lost, and the block is written back
verbatim either way.

Export keeps an unknown-key Unsupported block in place while it is
unchanged; before, it was written a second time beside the preserved copy.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-16 19:52:26 +02:00
David MannandClaude Opus 5.5 e88268d7dd Paths: Delete Path on a shape layer's path row deletes the layer (#6552)
The right-click menu of a shape layer's "<Layer> Shape Path" row in the
Paths panel had no Delete Path, while Photoshop offers it enabled.

Measured in Photoshop: with a rectangle shape layer's shape path targeted
in the Paths panel, Delete Path removes the whole shape layer as one
"Delete Layer" history step (another shape layer below is untouched);
it does not leave a full-canvas fill behind.

The row now offers Delete Path, dispatching the existing layer.delete
command for that row's layer (passed explicitly, so a multi-layer
selection is not deleted with it). Saved and work path rows keep
path.delete and a vector mask row keeps Delete Vector Mask.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-16 19:42:04 +02:00
David MannandClaude Opus 5.5 65dc117b4b Shortcuts: a command shortcut leaves the focused menu bar and runs (#6573)
After an Alt tap or F10 the in-window menu bar owns the keyboard, and
shortcuts::handle returned before dispatching anything, so Ctrl+D, F7
and the other command shortcuts did nothing until Esc left the bar.
Since the shortcuts run before the menu bar in a frame, the bar can't
let go of the key itself in time.

menu_keys::leave_for_shortcut takes the keyboard off the bar when a
Cmd/Ctrl combo or a function key other than F10 is pressed while the
bar is focused with no menu open; shortcuts::handle calls it before its
early return, so the shortcut runs in the same press. Arrows, Enter,
Esc, letters, Alt+letter and F10 keep driving the bar, and an open menu
still swallows shortcuts.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-16 19:03:03 +02:00
David MannandClaude Opus 5.5 86ee9c9c7c Paths: the path selected in the Paths panel is drawn on the canvas (#6550)
Selecting a saved path in the Paths panel drew nothing: the canvas overlay
only drew the work path, the active shape layer's path and a targeted vector
mask. The selected saved path is Photoshop's target path, so it is now drawn
with any tool (anchor squares with Path Selection, and with Direct Selection's
overlay), still hidden by View > Show > Target Path and Extras.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-16 19:03:01 +02:00
Davos d21683cae3 fix(ui): disable Batch without a recorded action 2026-10-16 20:01:28 +03:00
aiongg 0a328189aa Smart filters, data sets, video: re-read stored files only when local or on the document's share
Paths these features keep in the document go through the same resolver as
linked smart objects (relative to the document's folder; other computers,
devices and URLs refused):

- A Displace smart filter's `mapPath` and a Color Lookup smart filter's LUT
  `file`, re-read on every re-render: a path that is not followed leaves
  the pixels as they are, as for a missing map or LUT.
- Apply Data Set's Pixel Replacement images.
- Reload Frame of a video layer's footage.

Apply Data Set and Reload Frame say why a path is not followed.
2026-10-16 16:53:28 +00:00
aiongg 348499a5e0 PSD export: embed linked files only when they are local or on the document's share
Save As PSD/PSB, layered TIFF and Package as PSD read a linked smart
object's file to embed it. The path is resolved with the same resolver as
other linked-file reads, against the document's own file (the new
ExportOptions::document_path / PsdExportOptions::document_path, set by the
engine's saves and the app's Save As). A link that is not followed is
written as pixels with a warning that says why, as for a missing file.
Nested smart-object documents resolve against the same document.
2026-10-16 16:53:21 +00:00