Commit Graph
3891 Commits
Author SHA1 Message Date
aiongg 0ae688b59a Merge PR #6939: Mixer Brush: Clean Brush empties the brush, and the automatic Load and Clean can be switched off 2026-10-20 18:39:27 +00:00
seotarek 86b7a4f269 fix(atn): match exact 0.5 center and assert state preservation on error 2026-10-20 20:58:42 +03:00
seotarek 7a9a4341a9 fix(atn): simplify map_or to is_some_and to satisfy clippy (#7234) 2026-10-20 20:58:42 +03:00
seotarek c4ca741522 fix(atn): reject off-center radial blur in .atn export (#7234) 2026-10-20 20:58:42 +03:00
tessillustrations-droidandClaude Opus 5.5 a6cff8b649 Snapping: artboard edges and centres are snap targets
With Snap To › Layers on, other layers, selections, shapes and boards now snap
to an artboard's edges and centre, as in Photoshop. An artboard is a group, and
groups weren't snap targets, so a board offered nothing; its children still
offer their own edges. A board being moved (in the exclude list) doesn't snap
to itself.

Test: an_artboard_offers_its_own_edges.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 19:47:19 +02:00
David MannandClaude Opus 5.5 b22b7b4645 Merge main into fix/5559-bitmap-dialog
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 19:24:57 +02:00
David MannandClaude Opus 5.5 b9f5368444 Merge main into feat/history-snapshot-options
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 19:24:41 +02:00
David MannandClaude Opus 5.5 0ceff577b5 Merge main into fix/history-options
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 19:23:09 +02:00
David MannandClaude Opus 5.5 738541efda Merge main into perf/p25-blur-cancel
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 19:23:08 +02:00
David MannandClaude Opus 5.5 31dd6e7e41 Merge main into feat/ui-217-4-animated-zoom
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 19:23:08 +02:00
David MannandClaude Opus 5.5 a939785d63 Merge main into feat/ui-217-1-tool-options-persist
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 19:23:07 +02:00
David MannandClaude Opus 5.5 584f76ca87 Merge main into feat/ui-217-4-columns-unit
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 19:23:07 +02:00
David MannandClaude Opus 5.5 f81230d86f Merge main into fix/6268-psd-perspective-warp-sf
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 19:20:37 +02:00
Finn Newick 15029dfcee Merge remote-tracking branch 'origin/main' into fix/tiff-alpha-compression
# Conflicts:
#	apps/photocraft-cli/src/lib.rs
#	crates/engine/src/file_cmds.rs
#	docs/file-format-parity.md
2026-10-20 18:20:08 +01:00
David MannandClaude Opus 5.5 c033313aae Merge main into fix/6267-psd-hue-sat-sf
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 19:19:06 +02:00
David MannandClaude Opus 5.5 73ba0b7a68 Merge main into feat/tool-213-4-cam-preview-large
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 19:12:13 +02:00
David Mann 38605ceac5 Merge main into feat/tool-213-7-live-retouch
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

# Conflicts:
#	crates/ui-egui/src/canvas.rs
#	docs/gaps.md
#	docs/target-app-parity.md
2026-10-20 19:05:39 +02:00
David Mann c2ce75f9b7 Merge main into feat/ui-217-4-save-in-background
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

# Conflicts:
#	docs/gaps.md
#	docs/scorecard.md
2026-10-20 19:05:35 +02:00
MaxNTN 025da4d8f2 Initial commit 2026-10-20 17:03:52 +00:00
Higgs32584andClaude Opus 5.5 f6ed751a27 Open: a file without type never waits for the font scan (#7332)
The shell checks an opened document's missing fonts on the UI thread.
missing_fonts locked the shared text engine even for a document with no
type layers, and the engine's first use waits for the installed-font scan
started at launch, which takes minutes on some machines: the window froze
at 2% or 95% on the first open after every launch. A document without type
now returns at once, and a background open with type layers waits for the
scan on its worker ("Loading fonts") so the later UI-thread check is quick.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 13:02:39 -04:00
Guillem Hermida 872748fb5b Codecs: save DDS textures, uncompressed or BC1–BC3, with optional mipmaps (#1327) (#5993)
DDS textures can now be saved, not just opened: uncompressed (BGRA, BGRX, L8, A8L8; lossless) or BC1/BC2/BC3 (DXT1/3/5) from a clean-room block encoder, with an optional box-filtered mip chain, in the legacy header. Save As and Save a Copy ask with DDS Options; scripts pass `ddsCompression`/`ddsMipmaps` (file commands, control `app.save`, RPC `doc.save`, MCP `doc_save`/`doc_export`), and the CLI takes `--dds-compression`/`--dds-mipmaps`. Targa and DDS answers travel together as `FormatChoices` through the Save As flow.

Review follow-ups:
- File › Save behind DDS or Targa Options records a plain Save with its answer, and replaying `file.save` applies it (#3531).
- The block encoder finds the principal axis from every channel, so a channel that varies on its own can't hide the others' variation.
- DDS joins the shared round-trip suite; the header is built before the output buffer is allocated.
- Enter on a focused Cancel in DDS, Targa or TIFF Options cancels instead of saving.
2026-10-20 11:02:39 -06:00
David Mann ca506335e0 Merge main into fix/fill-layer-angle-finite 2026-10-20 17:18:33 +02:00
David Mann 1b0b3e218c Merge main into fix/6267-psd-hue-sat-sf 2026-10-20 17:13:41 +02:00
David Mann 0b39361076 Merge main into feat/tool-214-12-shape-feather 2026-10-20 17:12:29 +02:00
David Mann a3196466a3 Merge main into fix/6268-psd-perspective-warp-sf 2026-10-20 17:09:56 +02:00
David MannandClaude Opus 5.5 2f96260c99 Crop: the rotated target-size sampler test expects the turned pixel (10, 9) doubled (#7012)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 16:45:42 +02:00
David Mann 8aaf526108 Merge main into feat/file-215-18-export-resample 2026-10-20 16:36:25 +02:00
David Mann a738fcb9fe Merge remote-tracking branch 'origin/main' into HEAD 2026-10-20 16:34:25 +02:00
Derek GliwaandClaude Opus 5.5 d53101c9a1 Brushes: keep the 512 MiB .abr cap on 32-bit targets
On wasm32 a near-1 GiB .abr arrives as base64 and is copied several times
before decoding; with a 1 GiB sample budget the import could pass 4 GiB and
abort the tab instead of failing cleanly. Pick the decoder budget by pointer
width (like MAX_DECODED_BYTES) and derive the engine's file cap from it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 08:53:55 -05:00
NetterSilverandClaude Haiku 5.5 afeea2f643 Decode numeric character references in File Info XMP text
Found while testing crates/engine/src/file_cmds.rs:690 (xml_unescape), used by li_values, find_attr and read_file_info

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-20 13:42:22 +00:00
Derek Gliwa 4992a4305e Merge remote-tracking branch 'upstream/main' into abr-1gib-limit 2026-10-20 08:35:56 -05:00
David Mann fab6515d00 Merge remote-tracking branch 'origin/main' into fix/cmyk-channel-tone 2026-10-20 15:17:46 +02:00
David MannandClaude Opus 5.5 9154d64ce5 Channels: Apply Image of a CMYK composite onto a channel takes its luminosity (#5787)
An average of the four tones left Black alone light gray (0.67 where
Calculations reads 0.13); the channel now gets the same luminosity
Calculations reads. Other modes are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 15:17:44 +02:00
wwewtech 6d2c6cc017 fix(atn): a Group Layers step keeps its explicit layer through .atn (#7236) 2026-10-20 16:57:48 +04:00
NetterSilverandClaude Haiku 5.5 ff2db1b83b Fix File Info showing 1/1 s for exposures just under one second
Found while testing crates/engine/src/file_cmds.rs:768

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-20 14:21:14 +02:00
ha1des 472a8d6f29 Preserve near-black ICC colors on the GPU canvas 2026-10-20 14:18:00 +02:00
Hamza ab844f9cbc Actions: compare string settings in the round-trip test too
The round trip compared `as_f64` on both sides, which is `None` for a
string, so the assertion held whatever came back for `size`, `color` and
`location`. Numbers are still compared by value -- one can go out as a
float and come back as an integer -- and anything else is compared as it
is. The test passes, so the strings were being preserved; they just
were not being checked.

Found in review of #7742.
2026-10-20 17:09:05 +05:00
Korg1ch 52312331d8 test(engine): Emboss saves as Embs with integer Angl/Hght/Amnt and loads back (#7946) 2026-10-20 14:56:00 +03:00
Korg1ch 38611da546 fix(engine): .atn save and load map Filter › Stylize › Emboss to Photoshop's Embs (#7946) 2026-10-20 14:56:00 +03:00
NaufalDzz 0ce3a2ff2b fix(layers): align a lone layer in an artboard to that artboard (#7945)
With one layer selected and no pixel selection, Align used the canvas
bounds, so a layer inside an artboard jumped out of its board (to the
middle of the canvas, between other boards). As in Photoshop, it now
aligns to the artboard holding it; a layer outside any artboard, and an
artboard itself, still align to the canvas. An explicit `to` is unchanged.
2026-10-20 18:15:47 +07:00
Khawar Zamman Wani 07d5175f8d Merge remote-tracking branch 'origin/main' into save-for-web-webp
# Conflicts:
#	docs/file-format-parity.md
2026-10-20 14:58:48 +05:30
Hamza db665a62db Actions: refuse a fractional setting per field, not for every integer field
The first pass sent every Kind::Long field through long_exact -- all 26
of them -- on the strength of three reports. One of those three turned
out to need the opposite: edit.stroke ceils its width, so 2.4 renders at
3 and the integer field can hold the result faithfully. Refusing it
would drop a step that is expressible, which is why #7696 normalises it
instead.

So the refusal is now a field's own kind, LongExact, carried by the two
fields whose command uses the setting as written: Crystallize's ClSz
(clamp 3..300, no rounding) and Ripple's Amnt (clamp -999..999, no
rounding). The other 24 keep long() until someone has read each against
its command.
2026-10-20 14:23:57 +05:00
Hamza 62150abba2 Actions: a fractional setting an integer field cannot hold is refused, not rounded
`Kind::Long` wrote its param through `long()`, which rounds. Photoshop's field
really is an integer, so a fractional setting cannot be written -- but rounding
it put a different edit in the file than the one recorded, with `skipped` empty
and nothing to say so. Measured through `actions.save` and back:

  filter.pixelate.crystallize  cellSize 5.4  ->  ClSz 5  ->  cellSize 5
  filter.distort.ripple        amount 81.4   ->  Amnt 81 ->  amount 81
  edit.stroke                  width 2.4     ->  Wdth 2  ->  width 2

The reports measure what that does to the pixels: 385 to 583 differing colour
components at every bit depth, with import reporting no warnings at all.

`long_exact` returns `None` for a value the field cannot hold -- a fraction, or
a magnitude past `i32` -- and `fields_to` passes that up, so the step takes the
path a step with no Photoshop equivalent already takes: strict export names it
and fails, `skipUnsupported` leaves it out and lists it. Refusing rather than
exporting a near miss is what the rest of the file does; `pixel_target` already
refuses a filter aimed at a mask because the plain event has no field for one.

The strict error now covers both cases: a step with no equivalent event, and a
step with a setting its event cannot hold.

`long()` stays for the hand-written mappings that use it (Levels input/output,
`Thsh`, `Tlrn`, `Qlty`, `NCol`, `Dpth`, the Color Balance triples): each is its
own command scope, and most take whole numbers from a range already clamped.

Fixes #7669, #7670, #7671.
2026-10-20 14:23:57 +05:00
D-monizedandClaude Opus 5.5 687c3011ac Font menu: review fixes (recent only on a pick, picked styles, "code" names, no Actions steps)
- Only a font picked from the open menu joins the recent fonts; the wheel and the
  arrow keys on the closed field step past many families and no longer fill the list.
- The style picked under a family's ">" is applied in the Glyphs panel and in
  Character/Paragraph Style Options, as the options bar and Character panel already did.
- Monospace by name matches whole words and only where the font's tables say nothing,
  so "Encode Sans" is a sans serif, not a "code" font.
- The favourite and recent-font commands are no longer recorded into Actions, so
  playing an action back doesn't rewrite the user's font lists.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 01:17:43 -06:00
Kushagra Saxena 8f2f4220db Merge remote-tracking branch 'upstream/main' into atn-duplicate-inplace
# Conflicts:
#	contributors/people.toml
#	crates/engine/src/atn_cmds/tests.rs
#	crates/engine/src/jobs.rs
2026-10-20 10:29:27 +05:30
jonathanwxh-cell b8907655f2 fix: integrate latest upstream and retain CSH import history 2026-10-20 11:27:09 +08:00
Ratul Paul 69ce08594d Merge upstream main and preserve contributor credits
Retain upstream contributor entries and Ratul’s original entry while
refreshing the UI scale presets branch against current main. Preserve
all scale presets, catalog labels, tests, documentation and coauthor history.

Validation: 5,290 engine/UI tests passed, 32 ignored; fmt, Clippy, layers,
wasm, scorecard generation/check and panic_hunt passed.
2026-10-20 09:25:09 +06:00
wwewtech 824f93a69f fix(atn): a preset-only Photo Filter step exports its resolved colour (#7235) 2026-10-20 07:20:08 +04:00
jonathanwxh-cell b59eb853cb fix: reconcile PR with upstream changes 2026-10-20 11:16:41 +08:00
aiongg 03d0c7e3b3 Merge pull request #7823 from aiongg/integration-5
Integration batch: 8 PRs on main
2026-10-19 23:11:09 -04:00