Commit Graph
3531 Commits
Author SHA1 Message Date
Trevor BrownandClaude Fable 5.1 5e583a3f9f File: Open as Smart Object... opens a file as a new document holding one embedded smart object (#11678)
New file.openAsSmartObject command (path or paths) and a File menu item after Open As.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
2026-11-07 17:04:06 -05:00
Trevor BrownandClaude Fable 5.1 c1f630791a Open as Smart Object: tests (#11678)
Co-Authored-By: Claude Fable 5.1 <[email protected]>
2026-11-07 16:49:36 -05:00
David Mann f8ab0858e7 Merge pull request #9604 from dotCooCoo/feat/equalize-entire-image
Equalize: with a selection, choose the selected area only or the entire image based on it
2026-11-07 19:12:42 +01:00
David Mann 67e903786a Merge pull request #11710 from TrevorBrown-dev/fix/magnetic-lasso-composite-11686
Magnetic Lasso: the edge comes from the visible composite, not the active layer (#11686)
2026-11-07 18:59:02 +01:00
David Mann b9e8859f89 Merge pull request #11545 from TrevorBrown-dev/feat/artboard-options-bar-11385
The Artboard tool's options bar gets the iPhone 8/7/6 default size, a background control, the Align panel and the gear menu (#11385)
2026-11-07 18:56:12 +01:00
David Mann 7d18bc5217 Merge pull request #11675 from hnoerenberg/feat/reset-transform-smart-object-11662
feat: Layer > Smart Objects > Reset Transform (#11662)
2026-11-07 18:51:10 +01:00
dotCooCoo e207210745 Merge main into feat/equalize-entire-image 2026-11-07 08:24:11 -08:00
David Mann e3f3465fe8 Merge pull request #10840 from TrevorBrown-dev/feat/gradient-overlay-drag
Layer Style: a drag on the image moves a Gradient Overlay (#10763)
2026-11-07 16:11:57 +01:00
David Mann 0eb51ace19 Merge pull request #8239 from nikolainyegaard/vocab-parity
Labels: match Photoshop's menu, tooltip and spelling conventions
2026-11-07 15:43:52 +01:00
FredApps e1e2a48b71 Merge pull request #10947 from vangel76/fix/render-video-frame-cap-6103
Render Video: cap the total an animated GIF keeps staged (#6103)
2026-11-07 15:40:04 +01:00
Trevor Brown 5c49acf7c0 Merge remote-tracking branch 'upstream/main' into fix/magnetic-lasso-composite-11686 2026-11-07 09:39:38 -05:00
Trevor Brown dc20b80858 Merge remote-tracking branch 'upstream/main' into feat/artboard-options-bar-11385 2026-11-07 09:39:36 -05:00
Hartmut Nörenberg 76326721f0 Merge remote-tracking branch 'upstream/main' into feat/reset-transform-smart-object-11662 2026-11-07 15:33:24 +01:00
Trevor BrownandClaude Fable 5.1 d52290b05a Magnetic Lasso: the docs say when to rebuild the edge source and what a non-RGB document follows (#11686)
Co-Authored-By: Claude Fable 5.1 <[email protected]>
2026-11-07 09:26:44 -05:00
David Mann 67e3457b02 Merge pull request #10001 from indy2kro/feat/8064-psd-maximize-compatibility-param
Saves take maximizeCompatibility for a PSD/PSB's merged image (#8064)
2026-11-07 14:44:52 +01:00
David Mann e18900e5fb Merge pull request #10443 from hectorviov/fix/replace-color-add-subtract
Replace Color: Add to Sample and Subtract from Sample (#6280)
2026-11-07 14:44:38 +01:00
David Mann ae84be356a Merge pull request #10557 from hectorviov/fix/save-for-web-slices
Save for Web: show slices in the preview and export selected slices
2026-11-07 14:44:21 +01:00
David Mann adac9ca7cf Merge pull request #10549 from hectorviov/fix/drag-mask-to-layer
Drag a layer mask onto another layer or group to move it, ⌥ to copy it (#10485)
2026-11-07 14:43:04 +01:00
Trevor Brown c26008dbb0 Merge remote-tracking branch 'upstream/main' into feat/artboard-options-bar-11385 2026-11-07 08:39:30 -05:00
Hartmut Nörenberg 2c96b71cc4 Merge upstream/main into feat/reset-transform-smart-object-11662
`docs/ui-parity.md`'s status line conflicted: the branch and main each
prepended a clause at the head of the change list, and the branch also
carried the newer `Last updated` date. The merged line keeps main's
toolbar tool-memory clause (#3569) word for word after our Reset
Transform clause (#11662), with one `Change:` header and the later date.
2026-11-07 14:22:32 +01:00
David Mann 3c000ea238 Merge pull request #8307 from midasdf/jp/print-paper-sizes
Print: Japanese paper sizes (はがき・往復はがき・JIS B5/B4・L判)
2026-11-07 14:11:19 +01:00
David Mann d4db4d78ad Merge pull request #9075 from indy2kro/feat/8492-skip-transform-when-placing
Preferences: Skip Transform when Placing (#8492)
2026-11-07 14:09:31 +01:00
Trevor BrownandClaude Fable 5.1 6e33cd6483 Merge upstream/main into feat/artboard-options-bar-11385
Co-Authored-By: Claude Fable 5.1 <[email protected]>
2026-11-07 06:39:01 -05:00
David Mann 8548ed57a1 Merge pull request #11851 from DuBearte/fix/11771-count-delete-group-first
fix(engine): deleting the current count group makes the first group current (#11771)
2026-11-07 12:11:15 +01:00
David Mann 83eaf7c0bc Merge pull request #11847 from hnoerenberg/fix/pressure-size-default-off-11809
fix(paint): Pressure for Size starts off, as the reference does
2026-11-07 12:10:48 +01:00
David Mann 9ba029129e Merge pull request #11540 from TrevorBrown-dev/feat/move-options-bar-distribute-gear-11381
feat(move): options bar gets Distribute buttons, the ... icon panel and the gear menu (#11381)
2026-11-07 11:57:35 +01:00
David Mann 339adcb7bc Merge pull request #11322 from Saloouu/fix/toolbar-groups-survive-restart
Toolbar slots and tool keys keep their last tool across launches (#3569)
2026-11-07 11:55:58 +01:00
DuBearteandClaude Opus 5.5 daf1d48d88 fix(engine): deleting the current count group makes the first group current (#11771)
count.deleteGroup kept the same index current after deleting the
current group, so with three groups and the second current the third
became current. The first remaining group now becomes current, as the
reference application does. Deleting another group by index still keeps
the current one (#5654), and deleting the last group still leaves none.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-07 01:50:14 -05:00
Hartmut Nörenberg ccc263e49e fix(paint): Pressure for Size starts off, as the reference does
BrushSettings::default() turned Pressure for Size on, so a fresh brush -
and the brush Reset Tool hands back, which is that default plus
Photoshop's 10 % smoothing - reported pressureSize: true from brush.get
and drew the options bar's "Always use pressure for size" button
highlighted, while the reference application leaves both pressure
toggles off after Reset Tool. Neither is on now.

The toggle itself is untouched: it still switches both ways, Shape
Dynamics' Pen Pressure control is unaffected, and path.stroke's Simulate
Pressure still tapers a brush that follows pen pressure. A brush JSON
that omits pressureSize now reads as off, as the reference's default is.

Two engine tests took their expectation from the old default and set
pressureSize explicitly instead: cmd::brush_cmds::tests::stroke_backwards_compatible
and cmd::vector_cmds::tests::stroke_path_simulate_pressure_tapers_both_ends.
The new crates/engine/src/brush_pressure_size_default_tests.rs covers the
default, brush.get on a fresh session, an omitted field, switching the
toggle, and that a pressure ramp with the default brush paints like
pressureSize: false.

Fixes #11809
2026-11-07 07:22:59 +01:00
Hartmut Nörenberg 1475708c14 fix(engine): Reset Transform requires its re-render
Review finding on this PR (#11675, discussion_r4499346688): with the warp now cleared as part of
the reset, a smart object whose stack holds a visible filter this build cannot apply took the
Free Transform path's forgiving branch - `refresh_layer` returns false for that stack,
`refresh_text` drops it on the floor, and `restore_unrendered` put the OLD cache back warped by
the relative map. The step recorded a placement at 100 % with no warp whose pixels still showed
the warp.

The step now insists on the guarded refresh the other smart-object edits use:

- `unapplied_filters` is checked before anything changes, so an unsupported Photoshop filter kept
  verbatim from a PSD names itself in the error and the document is never touched.
- `refresh_or_fail(doc, id)?` runs at the reset boundary, right after `transform_by_map` and
  before the exact map is pinned. It is a cache-warm call in the normal case (same document state
  as the render `transform_by_map` just did), and it refuses an unreadable source or a render that
  fails outright. Because `Session::edit` runs its closure on a copy and returns early on `Err`,
  a refused reset leaves the document, the placement, the warp and the history list exactly as
  they were - the fallback pixels are never accepted.

Regression test `reset_transform_refuses_a_stack_it_cannot_re_render` (red before this commit:
the reset returned Ok) asserts the error names the filter, that transform, warp and filter stack
are unchanged, that no history state was added, and that the same object resets normally once the
unsupported filter is off the stack. The four existing reset tests still pass, so the success
path and its warp clearing are unchanged.

No new dependency; photocraft_io's UNSUPPORTED_FILTER was already re-exported by this module.
2026-11-07 06:17:54 +01:00
Hartmut Nörenberg 18a654fb1f fix(engine): Reset Transform clears the warp too
Measured against the reference application on 2026-11-06 (report in #11675): a smart object
warped with Arc 50, then rotated 20 degrees and scaled to 80 %, came back from Reset Transform
with no warp at all, at its contents' own size, unrotated, centred on the average of its four
corners. So the Warp goes with the transform, and the centre is the corner average rather than
the point the contents' box centre maps to - the same point for an affine placement, and the
quad's centre once Distort or Perspective bent it.

The warp is cleared before the placement is re-rendered, so the step draws the unwarped
contents once. What still follows the placement is the Smart Filter mask and any linked layer or
vector mask, exactly as under Free Transform: how a painted filter mask should compensate for a
cleared warp is not something the measurement covers, and #11171 has its own answer to it.

Smart filters, sources and history are unchanged: still one "Reset Transform" undo step. The
tests now pin the cleared warp (red before this commit), the corner average for a distorted
placement, and that a second reset changes nothing.
2026-11-07 02:18:23 +01:00
David Mann 0f286b57a9 Merge pull request #11252 from NaufalDzz/fix-transform-several-selection-rules
fix(transform): refuse the Background among several layers and apply the box on a selection change
2026-11-07 01:12:41 +01:00
Trevor BrownandClaude Fable 5.1 a475de6139 Merge upstream/main into feat/move-options-bar-distribute-gear-11381
Co-Authored-By: Claude Fable 5.1 <[email protected]>
2026-11-06 17:40:51 -05:00
Trevor BrownandClaude Fable 5.1 fc30b2f6a9 Merge upstream/main into feat/artboard-options-bar-11385
Co-Authored-By: Claude Fable 5.1 <[email protected]>
2026-11-06 17:40:48 -05:00
David Mann fd890eaca4 Merge pull request #11669 from davidmann4/feat/crop-task-bar-10890
Crop: Contextual Task Bar under the crop frame, as a reusable task-bar widget (#10890)
2026-11-06 22:49:21 +01:00
David Mann 7ecfccbd64 Merge pull request #11643 from davidmann4/integration-batch-19
Integration batch 19: epic PRs (WIP)
2026-11-06 22:48:55 +01:00
Trevor BrownandClaude Fable 5.1 70e6b0e7b1 Magnetic Lasso: the edge comes from the visible composite, not the active layer (#11686)
In an RGB document the border now snaps to the edges of the visible composite
whichever layer is active; hidden layers add none. Other modes keep following
the active layer's pixels.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
2026-11-06 16:14:14 -05:00
Trevor BrownandClaude Fable 5.1 3014737225 Magnetic Lasso: tests for following the visible composite (#11686)
Co-Authored-By: Claude Fable 5.1 <[email protected]>
2026-11-06 15:49:58 -05:00
Trevor BrownandClaude Fable 5.1 d8bce6b97d Move gear: the marker getter names the direct-write exception too (#11381)
Doc only: the getter's comment now says, as the field's does, that a direct write to DocState::active_layer through active_mut() bypasses the change marker.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
2026-11-06 14:40:19 -05:00
Cristi RaduandClaude Opus 5.5 a1bb9f003f Saves take maximizeCompatibility for a PSD/PSB's merged image (#8064)
Photoshop's Maximize Compatibility checkbox, for one save: `maximizeCompatibility`
(true or false) on Save, Save As, Save a Copy, `app.save`, serve `doc.save`, MCP
`doc_save`/`doc_export`, Batch, Image Processor and Layers to Files decides the
merged image over Preferences > File Handling > Maximize PSD and PSB File
Compatibility; unset, the preference decides. Anything but a boolean is refused
before anything is written. The CLI takes `--no-maximize-compatibility`.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-06 21:07:10 +02:00
Trevor BrownandClaude Fable 5.1 2e4ced2469 Move gear: active_layer_changes is a change marker, not an exact count (#11381)
Session::active_layer_changes now documents its contract: it advances at least once whenever the active document or layer changes, so callers compare two readings for equality. A file.new or a document close may advance it twice (add_document and execute both note it); removing that is not a one-liner, so the wording covers it. Adds a test that file.new advances the marker and a same-layer select_layer does not.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
2026-11-06 13:45:24 -05:00
Cristi RaduandClaude Opus 5.5 53917dc175 Preferences: Skip Transform when Placing (#8492)
Preferences > General > Skip Transform when Placing (off by default), as in
Photoshop: a placed or dropped file lands without Free Transform. It is
checked in begin_placed, which every interactive place reaches, so drops
still go through main's background place job (#10147) and queue; with the
preference on, the next queued file starts as soon as one lands.
Scripted file.placeEmbedded/placeLinked never open Free Transform, so the
preference doesn't affect them. Label translated in every catalog that
translates the neighbouring place preferences (all but hi).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-06 20:38:19 +02:00
Hartmut Nörenberg e5d597f6e7 Merge remote-tracking branch 'upstream/main' into feat/reset-transform-smart-object-11662
# Conflicts:
#	docs/ui-parity.md
2026-11-06 19:36:36 +01:00
David Mann d1d913e7e6 Merge remote-tracking branch 'origin/main' into feat/crop-task-bar-10890 2026-11-06 19:24:17 +01:00
Trevor BrownandClaude Fable 5.1 402b59bcde Move gear: every active-layer change counts, not only the ones through execute (#11381)
Session::note_layer_change(before) now backs the change count and is called by execute, start, finished jobs, select_layer, restore_layer_selection, layer_multi_cmds::set_selection, undo, redo, rollback and a new Session::set_active_layer; document switches (note_active_change) count too. The Pen tool's direct write of the active layer goes through set_active_layer.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
2026-11-06 12:52:14 -05:00
f23d173933 Add an opt-in WinTab backend for pen pressure on Windows (#11331)
* Add an opt-in WinTab backend for pen pressure on Windows

Windows Ink stays the default. Preferences > Tools > Pen Tablet has a Tablet
input dropdown (Windows Ink (default) / WinTab). WinTab opens a WinTab 1.4
system context on PhotoCraft's window and polls pressure and the eraser end
(tilt on devices that report orientation axes; rotation only with a pen and
driver that report twist) into the stylus feed. The row says to turn Windows
Ink off in the tablet's software utility; the choice applies at next launch.

- crates/tablet: Windows-only wintab/wintab-sys backend. Devices with
  orientation axes use the orientation packet; pressure-only devices open a
  packet without it and report neutral tilt. Leaving is the driver's hardware
  proximity message (WT_PROXIMITY) and the packet's out-of-context status, with
  a long fallback for drivers that never report either. Overlap priority
  follows window focus, and the message hook requests a frame for each WinTab
  message so pressure-only strokes update without cursor movement.
- apps/photocraft: install the backend when the preference is on; poll it at
  the start of each frame; the installed wake repaints the UI.
- ui-egui: TabletPollFn service; the Windows-only Pen Tablet row with the
  Tablet input dropdown and the note.
- engine: tools.tabletInput (windowsInk/winTab), default windowsInk.
- docs: hardware-parity WinTab gap entry, qualifying tilt to orientation axes
  and rotation to twist-reporting pens.

Tested locally on a Wacom tablet with Windows Ink off: pressure, tilt and the
eraser end reach the brush (rotation where the pen reports twist); the default
path is unchanged.

* WinTab: a message that finds the state borrowed is skipped, not a panic in the hook

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* WinTab: rustfmt

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* Scorecard: count the Tablet input setting

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: FredApps <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
2026-11-06 18:39:40 +01:00
FredApps d2ce418bb3 Merge pull request #11641 from wanikhawar/claude/agitated-jones-8e1a8e
A little free memory no longer refuses every PSD; the refusal says what to do
2026-11-06 18:36:17 +01:00
812b25fa10 Batch fix-up: CodeRabbit findings on #11249, #11541 and #9862
- #11249: a recorded Blend If Set that also carries real layer effects (a
  Lefx with more than the scale) stays the recorded step instead of playing
  and saving back without the effects.
- #11541: the toolbar "..." flyout owns Escape, so Escape with it open no
  longer deselects or leaves full screen; a failed Edit Toolbar from a left
  click on "..." reports its error in the status bar like the flyout row.
- #9862: the click-on-another-layer check uses the commit's targets (the
  link group as it is now), so a layer linked after the box opened is not
  "another layer".

Each has a test that fails without the fix.

Co-Authored-By: NaufalDzz <[email protected]>
Co-Authored-By: TrevorBrown-dev <[email protected]>
Co-Authored-By: Higgs32584 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-06 18:35:38 +01:00
Nikolai Nyegaard d4240b630d Labels: match Photoshop's menu, tooltip and spelling conventions
Edit > Preferences > General…, Select > Inverse, Filter > Other without the
ellipsis, Layer > Rename Layer… with one, Proof Setup's color-blindness names
with a hyphen, the Layers panel's Quick Export as PNG, the toolbar's Default
Foreground and Background Colors (D) and Switch Foreground and Background
Colors (X), and the remaining British spellings in the English source. Keys
renamed in every catalog; rows dropped where the new key was already translated.
2026-11-06 18:19:19 +01:00
FredApps ce97bde34b Merge pull request #11628 from wanikhawar/claude/brave-wu-261567
Network scratch folders report their own free space, or say they can't
2026-11-06 18:15:40 +01:00