Commit Graph
11425 Commits
Author SHA1 Message Date
Codex e034b90b30 Local Free Transform combined source preview on 9922871a 2026-11-06 14:52:20 -08:00
yoriswind f4dcd435bb Integrate the qualified Move repair with current main 2026-11-06 14:50:36 -08:00
Triwarr b57603708e PDF: drop the unused image dependency from photocraft-io
The PDF export codec goes through photocraft-codecs; nothing in the crate used the image crate, so the dependency and its lockfile edge are removed. pdfium-render stays pinned exactly.
2026-11-06 23:47:23 +01:00
Triwarr 7e1de84bce PDF: document the added test functions
Every function this PR adds now has a doc comment, including the test functions in the importer, PDF export and layers_to_files suites. No behaviour change.
2026-11-06 23:44:59 +01:00
Triwarr 2f95eac75b PDF: document the importer's known limits
Module docs now state that pdfium-render 0.9.5 exposes path fill/stroke presence but not paint, width or dash (black paints, 1 pt stroke); that text colour is sampled and fonts are matched by family/name; and that only package.ps1 provisions PDFium, not the shared release workflow. The text and path extraction comments say the same where the code relies on it.
2026-11-06 23:41:53 +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 <noreply@anthropic.com>
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 <noreply@anthropic.com>
2026-11-06 17:40:48 -05:00
Triwarr eda8759d11 PDF: document the import test helpers
Raise docstring coverage on the functions this PR adds: the fixture/assertion helpers in the end-to-end test and the importer's test frame builders now have doc comments. No behaviour change.
2026-11-06 23:35:28 +01:00
David MannandClaude Opus 5.5 ee8a4caa03 i18n: translate Contextual Task Bar in the Azerbaijani catalog (#11737)
The Window menu item from #11669 and the Azerbaijani catalog landed
together, so azerbaijani_covers_every_menu_label_and_path fails on main.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 23:32:50 +01:00
yoriswind cd7890ab05 Merge the procedural Paint cache into the Actions review fix 2026-11-06 14:24:57 -08:00
yoriswind 167342f75b Merge the landed Paint refresh into the Actions review fix 2026-11-06 14:22:50 -08:00
David Mann 9922871a4e Merge pull request #11148 from vangel76/perf/paint-procedural-texture-cache
perf(paint): cache procedural brush textures between strokes
2026-11-06 23:20:44 +01:00
David Mann ad55badcb8 Merge pull request #11146 from vangel76/perf/paint-retouch-smudge-selection
perf(paint): Smudge start-up and selection sampling without per-pixel work
2026-11-06 23:20:17 +01:00
Triwarr 00a1b1cd3e PDF: use PDFium's page bounding box; bound editable objects
- Map editable objects through the page's effective bounding box (media box clipped to the crop box) rather than the raw CropBox: an oversized CropBox no longer offsets text or paths from the rendered page. Covered by a fourth fixture page with CropBox (-50, -50, 250, 150) around a 200 x 100 MediaBox.
- Add a document-wide editable-object budget (20,000 layers, 1,000,000 path knots). A page that exceeds it keeps its raster, warns that its editable objects were omitted, and the unit test covers the accounting.
2026-11-06 23:12:14 +01:00
David Mann 5e2fdf61e2 Merge remote-tracking branch 'origin/main' into HEAD 2026-11-06 23:10:58 +01:00
David MannandClaude Opus 5.5 ed0b2a726b Address CodeRabbit review: draw pattern scales below 0.1 % (#9256)
A preview at a reduced work scale (4 %) takes a stored 2 % pattern to
0.08 %, which Placement::anchored and the GPU planner's placement treated
as invalid and drew at 100 %. Any positive finite scale now draws,
floored at 1e-6 to keep tile coordinates finite.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 23:10:58 +01:00
David MannandClaude Opus 5.5 20142544b0 Regenerate docs/scorecard.md after merging main
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 23:03:17 +01:00
David Mann 482e167e98 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	docs/ui-parity.md
2026-11-06 22:58:10 +01:00
David Mann 017c4aab9e Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	docs/scorecard.md
2026-11-06 22:57:46 +01:00
yoriswind 3f37e56a86 Merge landed main into the Actions review fix 2026-11-06 13:55:27 -08:00
Codex 122eb2a63d Local Free Transform combined source preview on 6b0f7762 2026-11-06 13:54:19 -08:00
David Mann 6b0f7762e1 Merge pull request #11671 from davidmann4/integration-batch-20
Integration batch 20: 7 i18n PRs (Thai, Hebrew, Urdu, Tamil, Azerbaijani, Romanian, Korean)
2026-11-06 22:49:42 +01: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
Triwarr 4f585f704b PDF: rotate/offset-aware objects, cancellation, licences, CI PDFium
- Map editable text and paths through the page's crop box and /Rotate, matching the rendered raster: box offsets, 90/180/270 rotation, rotated text transforms and rotation-aware colour sampling.
- Check cancellation while traversing page objects and before returning the import; cap text colour samples at 4096.
- The cached PDFium failure now says to restart the application after fixing the library path.
- package.ps1 stages PDFium's LICENSE and bundled licence files flat for the MSI and the portable ZIP, tags the cache with the pinned release, and verifies freshly extracted DLLs.
- ci.yml provisions the pinned PDFium for the Windows integration leg and requires it there; local runs still skip explicitly.
2026-11-06 22:48:30 +01:00
RickiNano 56ff009d67 fix(ui): a Patch drag on another document hides no ants (#11024)
The active document can change after `sync_views` and before the canvas
paints. `patch_replaces_selection` now also checks that the drag was
pressed on the active document, so a stale Patch or Content-Aware Move
drag no longer hides the new document's selection outline for that frame.
2026-11-06 22:41:17 +01:00
yoriswind 2e210c0aae Scope Actions tool recording guard to the active take 2026-11-06 13:40:05 -08:00
yoriswind a92085c639 Keep Move Auto-Select separate from ordinary layer picks 2026-11-06 13:36:51 -08:00
DingusMcRinkyDinkyandClaude Opus 5.5 d788adac8c Warp: the part a fold turns over lies on top
A fold's layers were stacked by how far the warp moved them, so the part
dragged furthest was on top. That's right for a corner, an edge or an
edge's handles dragged across the picture, but not for the middle pulled
out past an edge: there the edge row folds back over the middle and lies
on top of it. The cells a fold turns over (their outline mirrored from
where they'd be without the warp) now go on top, like a folded-back flap,
and the cells moved furthest still go on top within each kind.

cell_order takes the warped and rest positions so it can tell; the render
and Warp mode's preview both use it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EZbgszHyuEuWAzxaamteuU
2026-11-06 22:27:32 +01:00
RickiNano 9d16699d45 Magnetic Lasso right-click: an ⌥-drag's freehand segment keeps its menu (#11689)
The issue leaves a right-click during an ⌥-drag unmeasured, so it keeps
today's behaviour. `magnetic_drawing` held that menu back too; it now
skips a freehand segment.
2026-11-06 22:21:45 +01:00
Triwarr 95908e2b92 Pin pdfium-render exactly to the verified wrapper
Same reasoning as the wintab-sys pin in #11331: PDFium is FFI-loaded at run time, so a lockfile refresh must not move the wrapper under the pinned DLL release. Bump deliberately and re-check both the wrapper and the DLL release pin in packaging/windows/package.ps1.
2026-11-06 22:16:32 +01:00
Triwarr fabfbb5d5a PDF: fix segment closing, admission, glyph colour and PDFium reuse
- Process a closing segment's own geometry before marking the subpath closed, so a closing Bezier endpoint cannot leak control points into the next curve.
- Estimate retained memory from tile-aligned page bounds (including the page's X offset) instead of raw pixels: a 1 x 10,000 px page admits its 40 tiles, not 10,000 pixels.
- Sample text colour from the glyph ink (the pixel farthest from the box's dominant colour) instead of the bounds' top-left corner, which was usually background or antialiasing.
- Cache the PDFium bind: pdfium-render binds once per process, so a second PDF import in one session failed with PdfiumLibraryBindingsAlreadyInitialized.
- Add a PDFium-backed two-page end-to-end test with a transformed path on page 2 and non-origin red/green text at 72 and 300 dpi; it prints an explicit SKIPPED line when PDFium is unavailable.
- package.ps1: pin pdfium-binaries chromium/8138, verify the archive and any cached DLL against SHA-256, drop a stale bin/pdfium.dll before extraction and check tar's exit status.
2026-11-06 22:15:50 +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 <noreply@anthropic.com>
2026-11-06 16:14:14 -05:00
Zinadin Zidan 489d994524 Saving: a leftover temp file is recognised only with a file part a save can write (review)
A save's temporary file keeps at most the first 64 characters of the
document's name, and older versions put one dot in front of them. A name
with a longer part before the process id and counter was still recognised
as a leftover, so the recovery sweep could delete someone else's file a
day later. Only a part a save can write is recognised now, counted in
characters as the save cuts it.
2026-11-07 03:06:17 +06:00
RickiNano 0e54ab64e7 Windows pen end: read it on WM_POINTERENTER and keep a contact's end past the leave (#2285)
WM_POINTERENTER is sent, not posted, so only WH_CALLWNDPROC sees it; it
now reads the pen end like an update, so a pen held still after entering
range on its eraser end selects the Eraser.

A contact's end is kept past WM_POINTERLEAVE until the UI reads it once
(take_pen_end): an eraser-end tap and the pen leaving range, all handled
before the next frame, now erase instead of using the previous tool.
2026-11-06 21:59:03 +01:00
Trevor BrownandClaude Fable 5.1 3014737225 Magnetic Lasso: tests for following the visible composite (#11686)
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-11-06 15:49:58 -05:00
David Mann bd84401dcf Merge remote-tracking branch 'origin/main' into integration-batch-20 2026-11-06 21:46:47 +01:00
David MannandClaude Opus 5.5 e339ecead2 Batch fix-up: keep one path.toShape entry after merging #11005's 0b66e8f00c
#11005's new head adds path.toShape to the vector-path list next to
path.stroke; the batch's 95c7a5d17e had added it next to path.set. Both
merged cleanly into a duplicate or-pattern; keep the contributor's.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 21:44:32 +01:00
David Mann 47f4f1ce23 Merge PR #11005's new head 0b66e8f00c (path.toShape vector-path fix) 2026-11-06 21:44:23 +01:00
yoriswind cfda1d893b Merge current main into the five Classic Actions commands 2026-11-06 12:40:03 -08:00
Triwarr 192b075bfa PDF: map editable objects through one page-to-document transform
- Paths on page 2+ were placed without the page's document X offset; text and paths now share PageFrame::to_doc, which applies the DPI scale, the Y flip and the page offset in one place.
- Flip Y in pixels and round once, so text placement, text colour sampling and path points all stay in the same coordinate system.
- Add unit tests for 72/300 dpi, the page-2 offset and the sampled colour; they need no PDFium.
2026-11-06 21:29:06 +01:00
RickiNano b471935d75 Magnetic Lasso right-click: keep to the files #11689 names
The issue lists the files this item may touch and leaves the parity docs
to its epic. The right-click check moves from magnetic_lasso_ui.rs to
canvas_tool_menu.rs as magnetic_drawing, where the issue allows it, with
the same document check. magnetic_lasso_ui.rs and
docs/context-menu-parity.md are back as on main.
2026-11-06 21:20:05 +01:00
yoriswind 9d9bf1e3a2 Fix Move Auto-Select toggling and locked-layer clicks 2026-11-06 12:19:26 -08:00
PhotoCraft local qualification cd7fb13212 Local measured Free Transform qualification on b49c6c97 2026-11-06 12:19:19 -08:00
David MannandClaude Opus 5.5 46d6307cba Crop task bar: Done fits the cropped document
The bar draws inside the canvas pass, whose write-back of its own camera
dropped the fit that commit_crop asks for, so Done kept the old zoom. The
stored view now wins when the bar changed it, as a view menu row's does.
done_fits_the_cropped_document starts at 50 % and fails without the fix.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 21:17:51 +01:00
Zinadin Zidan f372cbcff3 Shapes: hovering a box side skips the outline test of shapes out of reach (#11473 review)
The side band asks on every hover frame whether another shape is under the
pointer, and the pick sampled every shape layer's curves to find out. It now
skips that sampling for a shape whose control-point box, grown by the pick
tolerance, doesn't hold the point, since none of its outline can be in reach
there. What it picks is unchanged, Path Selection's clicks included; a test
pins hits just past a shape's box and on a stroke's pixels past its path.
2026-11-07 02:09:09 +06:00
RickiNano 8519977bc1 Magnetic Lasso: a border on another document holds back no menu (#11689)
The right-click check asked only whether a border existed. Over the
control channel no frame runs between events, so a border left on one
document stayed in place after a switch and kept the selection menu
from opening on the next. The check, now magnetic_lasso_ui::drawing,
also asks that the border belongs to the document in front, the same
test frame() uses to drop a stale border. The canvas, the control
channel and frame() share it.

agent_right_click_on_another_document_still_opens_the_selection_menu
fails without this change. The context-menu parity doc records the
behaviour.
2026-11-06 21:06:45 +01:00
Zinadin Zidan dd639352ed Saving: a leftover temp file is recognised only with a counter a save can write (review)
The recovery sweep deletes files it recognises as a save's temporary file.
A name whose counter is longer than the 64-bit counter a save counts with,
or whose process id or counter starts with a zero, was still recognised,
so the sweep could delete a file no save wrote. Only the numbers a save
writes are recognised now.
2026-11-07 02:01:13 +06:00
David Mann ce88165362 Merge remote-tracking branch 'origin/main' into fix/crop-task-bar-fit-11669 2026-11-06 21:00:22 +01:00
tasosf b49c6c97c5 fix(export): preserve high-quality JPEG colour detail in Export As (#7985)
* fix(export): preserve full JPEG chroma in Export As

* style(ui): simplify blend preview condition for Clippy

* test(export): verify full JPEG chroma at every quality

Exercise real JPEG export and decode at five qualities across U8, U16 and F32. Read all sampling factors from the main frame while skipping metadata segments and embedded thumbnails. Keep the colour-error limit at quality 100 and verify that the layered source is unchanged.

* Keep JPEG regression compatible with current Clippy

Restore the upstream blend-preview and IME predicates, removing unrelated lint-only changes. Use array chunks in the JPEG colour-error assertion for current stable Clippy.

* Use quality-dependent JPEG sampling in Export As

Keep 4:2:0 through quality 50 and full 4:4:4 above it, using the existing percentage-scale cutoff from Save for Web. Photoshop 27.11 modern Export As measurements show 4:2:0 at levels 1-4 and 4:4:4 at 5-7; no exact numerical mapping of the two scales is claimed.

Exercise both sampling regimes through 15 real JPEG exports across U8/U16/F32, check all percentage qualities in settings, and retain the Save As default. Boundary mutations fail at 50 and 51 as expected.
2026-11-06 20:59:25 +01:00