Commit Graph
2701 Commits
Author SHA1 Message Date
MarekSpodBiedry 21a91764bc Brush: with airbrush build-up on, number keys set Flow and Shift+number sets Opacity (#7785) 2026-10-19 22:30:41 +02:00
Ernie SmithandClaude Sonnet 5.5 0e97ac4ca8 Make adapter choice Linux-only everywhere, not just the dropdown
The Preferences row was Linux-only, but PHOTOCRAFT_GPU_ADAPTER and
performance.gpuAdapter were honoured on every platform, so Windows and macOS
could pick a non-default adapter without being tested for it. Ignore the
request off Linux (and in CPU mode, as before), and don't make a launch
standalone for a variable that is ignored there.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-10-19 16:19:51 -04:00
Theo Wilenius 6c65754567 Merge branch 'main' into fix/6286-guide-drop-on-either-ruler 2026-10-19 23:16:17 +03:00
Ernie SmithandClaude Sonnet 5.5 2644d06081 Review: rustfmt, cap the env adapter name, docs in their own paragraph
- cargo fmt on the adapter selection and its launch code.
- PHOTOCRAFT_GPU_ADAPTER is capped at 256 characters like the saved preference.
- Put the multi-GPU paragraph in docs/development.md on its own instead of
  appending to the --safe-gpu paragraph, so the diff only adds lines.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-10-19 16:07:04 -04:00
WolfandClaude Opus 5.5 2f08860383 Print: Portrait and Landscape in the Print dialog on Windows
On Windows the Print dialog takes the paper and its orientation from the
printer driver, and had no way to change the orientation short of the
driver's own Print Settings… dialog. Photoshop has Layout buttons for it.
A print laid out landscape on portrait driver settings (from a script,
the CLI or another app) stopped with "the driver paper or orientation
differs from the print layout".

- The dialog has an Orientation row (Portrait, Landscape) under Print
  Settings…. It turns the driver settings through file.print.page and
  takes the paper from the driver again, so the paper and preview turn.
- file.print.page takes "orientation": "portrait|landscape" and returns
  the turned settings as printerSettings, with the page they give.
- print_windows turns the settings (the given ones or the printer's
  defaults) to the layout's orientation when the driver has the layout's
  paper the other way round; another paper is still refused.

Turning sets dmOrientation and its dmFields bit in the DEVMODE and keeps
every other byte, the driver's private settings included; the driver
validates the result as it does settings from Print Settings…. No new
UI strings: "Orientation", "Portrait" and "Landscape" are in every
catalog.

Tests: the turned settings (orientation set, all else kept, with and
without private driver bytes), when a paper counts as turned, an unknown
orientation refused before any printer is asked, the dialog's reading of
the driver paper and its error path, and, run by hand on Windows, a
real "Microsoft Print to PDF" driver turning for a landscape layout.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-19 21:46:41 +02:00
Gustavo Ziger 41682288b2 docs: regenerate scorecard after main merge 2026-10-19 16:06:34 -03:00
aiongg 46f7e2422e Integration: drop #7690's benchmark report, as #7690 did before it merged 2026-10-19 18:41:15 +00:00
Gustavo Ziger bd6723e0bf Merge branch 'main' into feat/zoom-animation-566 2026-10-19 15:34:36 -03:00
Brandon ThomasandClaude Opus 5.5 3a896a5efc docs: regenerate the scorecard (Show File Name In Title adds a preference) (#7829)
Co-authored-by: Claude Opus 5.5 <[email protected]>
2026-10-19 14:23:47 -04:00
Marco Arnulfo 4f15642ee8 Toolbar: Edit Toolbar, Quick Mask and Screen Mode in every theme (part of #4653) (#4680) 2026-10-19 14:20:48 -04:00
aiongg 3f509f06ed Integration: regenerate docs/scorecard.md 2026-10-19 18:01:48 +00:00
Korg1ch 8c2cfdba6a fix(linux): keep crash-recovery autosaves in $XDG_STATE_HOME, out of the config folder (#6612) (#6941)
* fix(linux): keep crash-recovery autosaves in $XDG_STATE_HOME, out of the config folder (#6612)

* test(linux): cover the XDG state recovery folder (#6612)
2026-10-19 13:32:14 -04:00
aiongg acc853b517 Merge upstream main into integration-5
docs/file-format-parity.md: keeps both 2026-10-15 rows, main's #6063 PNG sTER row first, then #5976's PSD guides row
2026-10-19 17:20:29 +00:00
aiongg b8e856dffe Integration: #7022 write_region stays serial; the text rasterizer uses the parallel variant 2026-10-19 17:18:46 +00:00
Ernie SmithandClaude Sonnet 5.5 b892c0412e Choose the graphics adapter on multi-GPU Linux machines (#1885)
With the backend on auto, Linux installed no adapter selector, so wgpu took
the first discrete GPU the driver listed. On a machine with an eGPU, a
laptop dGPU and an iGPU that was not the one the user wanted.

- performance.gpuAdapter: a case-insensitive piece of the adapter's name
  (several words must all appear); empty is automatic.
- PHOTOCRAFT_GPU_ADAPTER overrides it for one launch.
- Preferences > Performance > Advanced > GPU adapter lists the adapters the
  instance found; a saved adapter that is absent stays listed, marked.
- A missing adapter, or one that can't present to the window, falls back to
  the automatic choice with a note in System Info. CPU mode ignores it.
- Shown on Linux only; tested on Linux only. Windows and macOS need their own
  work (the startup code honours the setting there, but it is untested).

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-10-19 13:16:53 -04:00
Finn Newick 9d95f13a9d Merge remote-tracking branch 'origin/main' into fix/tiff-alpha-compression
# Conflicts:
#	docs/file-format-parity.md
2026-10-19 18:14:36 +01:00
KnottyDyes c9d7f1d984 Docs: install the CLI and register it with MCP clients (#7663) 2026-10-19 13:03:40 -04:00
640873de7b PNG: keep a stereo file's sTER pairing on save (#6063) (#6285)
* PNG: keep a stereo file's sTER pairing on save (#6063)

Read the sTER chunk (PNG Extensions 1.4.0 §3.6) when a PNG opens, store it
on the document's FileEncoding, and write it back when saving, so a stereo
PNG still says it is a stereo pair. Covers the ordinary and the palette
PNG encoders, including interlaced output.

* io tests: pass the new sTER argument to encode_png_indexed

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

---------

Co-authored-by: highperfocused <[email protected]>
Co-authored-by: Brandon Thomas <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
2026-10-19 13:02:18 -04:00
Brian Blakely 6e20764ab6 Add a draggable center diagram to Zoom radial blur 2026-10-19 12:25:50 -04:00
Hodd 362bdf135e Guides: show the X or Y position beside the pointer while dragging (#7680) 2026-10-19 17:47:09 +02:00
Rene Leonhardt 05bd004bc4 perf(format): reuse native save writers per document
Reuse unchanged tile and blob hashes and bound retained compressed payloads. Carry the writer through native save settings while preserving save identity and exact output.
2026-10-19 16:58:35 +02:00
David Mann c30f9180e8 Merge PR #7692: perf(raster): Avoid redundant default pixel work 2026-10-19 16:51:48 +02:00
David Mann c0072ca2da Merge PR #7691: perf(io): Interleave PSD pixels in the final buffer 2026-10-19 16:51:45 +02:00
David Mann b2269e3bdb Merge PR #7690: perf(codecs): Avoid redundant PNG filter passes 2026-10-19 16:51:43 +02:00
David Mann 8e54897d43 Merge PR #7022: perf(text): rasterize a type layer's pixels on all cores, bit for bit the same 2026-10-19 16:51:41 +02:00
David Mann 284ee60705 Merge PR #5976: PSD: keep guide resources 1092/1097 only while they match the guides (#5966) 2026-10-19 16:51:27 +02:00
Rene Leonhardt f64a143c55 perf(format): drop unhelpful Zstandard workspace reuse 2026-10-19 13:43:20 +02:00
Rene Leonhardt 4d50e31efd perf(codecs): stop PNG candidates at the winning cost 2026-10-19 13:43:19 +02:00
Rene Leonhardt f1ba4854d0 docs(perf): record end-to-end workspace results 2026-10-19 13:15:12 +02:00
Rene Leonhardt b5b5776a30 perf(io): remove the PSD export inlining hint 2026-10-19 13:15:06 +02:00
Rene Leonhardt 78a9982eec perf(raster): share contiguous region reads 2026-10-19 13:15:06 +02:00
Rene Leonhardt 6b1aa81561 docs(perf): measure PNG filtering on real images 2026-10-19 13:15:05 +02:00
Rene Leonhardt a37198d4fa docs(perf): record real image deflate tradeoffs 2026-10-19 13:14:37 +02:00
funkvay-star 5a779498bd Merge remote-tracking branch 'upstream/main' into feat/levels-reset-clipping
# Conflicts:
#	crates/ui-egui/src/lib.rs
2026-10-19 14:34:58 +04:00
Rene Leonhardt 02a63c94c2 perf(format): Reuse Rust Zstandard workspaces
Keep fresh compression for partial blocks and verify independent frames against the previous encoder. Record the isolated allocation-reuse effect.
2026-10-19 11:31:59 +02:00
Rene Leonhardt 76a6405f9b perf(io): Interleave PSD pixels in the final buffer
Remove intermediate band buffers while retaining byte-for-byte equivalence with the previous path at every sample depth.
2026-10-19 11:31:59 +02:00
Rene Leonhardt f6e7fc3c2a perf(raster): Avoid redundant default pixel work
Preserve default sample bits while skipping absent zero tiles and redundant default-pixel copies. Add the previous read path as the oracle.
2026-10-19 11:31:59 +02:00
Rene Leonhardt 850bf9fdaa perf(codecs): Avoid redundant PNG filter passes
Keep the previous filter path as an exact byte oracle and measure the filter kernel independently of compression.
2026-10-19 11:31:59 +02:00
Rene Leonhardt 4776d20b7a perf(compression): Use zlib-rs with runtime detection
Isolate the workspace backend choice and verify PNG, PSD and complete native-format decoding. Record standalone timing and compressed-size tradeoffs.
2026-10-19 11:31:58 +02:00
Khawar Zamman WaniandClaude Opus 5.5 b56b163c88 docs: regenerate the scorecard after merging main
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-19 14:39:52 +05:30
Khawar Zamman Wani 77650501e8 Merge remote-tracking branch 'origin/main' into feat/6000-color-panel-modes
# Conflicts:
#	crates/ui-egui/src/dock.rs
#	docs/gaps.md
#	docs/scorecard.md
2026-10-19 14:31:04 +05:30
Khawar Zamman WaniandClaude Opus 5.5 6a0f6c4ce1 Merge origin/main into fix/marching-ants-device-pixels
canvas.rs: the ants moved to crate::ants here; main's clippy::nonminimal_bool rewrite of
the finite/clip guard (f8cd3e79) is applied there instead.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-19 14:26:40 +05:30
Khawar Zamman Wani 79955f290c Merge remote-tracking branch 'origin/main' into save-for-web-webp
# Conflicts:
#	crates/engine/src/web_cmds.rs
2026-10-19 14:24:51 +05:30
Khawar Zamman Wani 206864e750 Merge remote-tracking branch 'origin/main' into fix/6501-multi-layer-free-transform
# Conflicts:
#	docs/gaps.md
2026-10-19 14:24:39 +05:30
denstu473 2d23eee9ed Merge upstream main and resolve gap documentation conflict 2026-10-19 08:11:44 +02:00
Khawar Zamman WaniandClaude Opus 5.5 750c67e20e Pen: Path Operations menu, as in Photoshop (#1397)
The Pen, Freeform Pen and Curvature Pen options bar gets Photoshop's Path
Operations button: New Layer (Shape mode), Combine Shapes, Subtract Front
Shape, Intersect Shape Areas, Exclude Overlapping Shapes and Merge Shape
Components. In Shape mode a new path is added to the selected shape layer
with the chosen operation, so a hole can be cut in a shape (#7533); in Path
mode the operation applies to the subpath added to a targeted vector mask,
the selected path or the Work Path.

- engine: path.mergeShapeComponents for work, saved and layer paths, sharing
  bake_path with the shape-layer command
- control/MCP: ui.set penMode and penPathOp
- original path-op icons, tooltip translated in every catalog

Closes #1397. Closes #7533.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-19 11:30:53 +05:30
PanPDX 54b6b0dbc0 Merge remote-tracking branch 'upstream/main' into area-type
# Conflicts:
#	crates/ui-egui/src/type_tool.rs
#	docs/gaps.md
#	docs/scorecard.md
#	docs/target-app-parity.md
2026-10-18 22:41:59 -07:00
Ratul Paul 8ec5f2c400 Merge upstream main and refresh UI scale review documentation
Preserve upstream contributor and gap updates alongside the UI scale
presets. Regenerate the scorecard from merged sources, retaining the
upstream text-menu progress and the expanded preset note.

Validated with full locked engine/UI tests (5,208 passed, 32 ignored),
fmt, Clippy, layers, wasm, scorecard generation/check and panic_hunt.
2026-10-19 10:12:32 +06:00
hogawish 88d7edcb02 fix(canvas): retain legacy checker in Pattern Preview 2026-10-19 12:35:27 +09:00
Diego Chagas f2a487b088 Flatpak: a second launch hands its files to the running PhotoCraft over a Unix socket (#1540)
#3755's hand-off listens on a loopback port, and every `flatpak run` gets
its own network namespace, so inside the sandbox the second launch could
never reach the first and opened a separate window. When FLATPAK_ID and
XDG_RUNTIME_DIR are set the primary now listens on
$XDG_RUNTIME_DIR/app/<app id>/instance.sock (0600), a directory every
sandbox of the app shares, and records "socket" instead of "port" in
instance.json. The lock, token, client cap, deadlines and reply are
unchanged; a crashed primary's socket file is unlinked under the lock,
and shutdown removes the socket.
2026-10-19 00:19:00 -03:00