Commit Graph
235 Commits
Author SHA1 Message Date
Higgs32584andClaude Opus 5.5 b0e95488da Merge upstream main into fix/8047-channel-mixer-cmyk
Keeps both test modules in crates/format/tests/it/main.rs: main's camera_raw_roundtrip and this PR's channel_mixer_cmyk.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-22 12:56:48 -05:00
aiongg cf2e416e31 Merge pull request #15914 from aiongg/ci-pin-toolchain
ci: pin Rust, stop cache evictions, corpus tests in the gate, fewer tests per PR
2026-11-22 12:03:37 -05:00
Dylan M. Taylor 65fc546bba raw, camera_raw: adopt craft-develop 7631ed550 and add explicit parity tests (#587) (#16393)
* raw,camera_raw: bump craft-develop to 7631ed550 and add explicit parity tests (#587)

* raw,camera_raw: cut over develop_sensor demosaic and camera_raw::develop to craft_develop (#587)

* raw,camera_raw: fix craft_develop field names and test imports (#587)

* camera_raw: fix clippy excessive_precision and unnecessary cast lints

* raw,camera_raw: use exact gaussian_taps for sharpening, silence camera_raw_gpu dead_code, update post-cutover pins

* raw,camera_raw: fix highlights sign, <0.3px sharpen noop, non-Bayer/fused parity, and gpu test ignores

* engine: update camera_raw_filter_legacy_baseline_pixels to post-cutover craft_develop baseline

* raw,camera_raw: early-exit noop sharpen, exact full desat, PAD=6 fused margin

* raw,camera_raw: guard <0.3px texture/clarity blur and route fused band demosaic through craft_develop

* io: update default RAW Open baseline pins for craft_develop::sensor::demosaic reflect borders

* io: add Windows libm FNV-1a hash pins for RAW Open baselines
2026-11-22 10:36:03 -05:00
aiongg 3e05a3747b Merge remote-tracking branch 'upstream/main' into HEAD
# Conflicts:
#	.github/workflows/ci.yml
2026-11-22 15:29:46 +00:00
David Mann acc29380b1 Merge PR #16111: Custom-domain lookup test: each container takes one domain spelling (#15936) 2026-11-22 13:24:35 +01:00
aiongg 44ac69dede Merge upstream/main into ci-pin-toolchain; gate runs when platforms fails, cold cache clear keeps newer entries, panic_hunt timeout 2026-11-22 05:59:39 +00:00
Dylan M. Taylor f3f382697f test(raw): pin pre-cutover Camera Raw SmartFilter and filter baseline (#587) (#16028)
* test(raw): pin pre-cutover Camera Raw SmartFilter and filter baseline (#587)

* test(format): avoid json! macro recursion limit in camera_raw_roundtrip (#587)

* test(format): wrap SmartSource::Embedded bytes in Arc (#587)

* test(engine): use select.deselect in camera_raw_baseline_pin (#587)

* test(raw): capture legacy RAW Open and Camera Raw Filter pixel baselines (#587)

* test(raw): lock Camera Raw Filter baseline pixels and capture RAW Open values (#587)

* test(io): lock legacy RAW Open baseline pixels (#587)

* test(io): capture RAW Open camera WB legacy baseline pixels (#587)

* test(io): lock RAW Open camera WB legacy baseline pixels (#587)
2026-11-21 19:59:28 -05:00
David Mann 5374d1ca6d Merge remote-tracking branch 'origin/main' into pr-14292 2026-11-21 19:34:43 +01:00
Stefan S.andqvest-ssels 8aee047609 Open luminance and data-channel EXRs as RGB 32-bit (#16149)
* Open luminance and data-channel EXRs as RGB 32-bit

A Y-only, Z-only or Y + A EXR opened as a Grayscale document tagged linear gray through File > Open (the band decoder) and File > Open EXR Parts. Every EXR now opens as RGB 32-bit tagged linear sRGB, as in the reference application: the gray band is expanded to R = G = B with its alpha kept, and exr_parts converts every part or group to RGBA. RGB files are unchanged. The whole-file decoder in flat.rs (the bytes import and File > Open's fallback for a Z-only file) still opens gray as Grayscale and is left for a follow-up; an ignored test records it. Fixes #14069.

* Cover a Z-only EXR through File > Open

The band decoder reads a Z-only scanline EXR, so File > Open of one is covered by the passing test; only the bytes import through flat.rs stays an open point for #14069.

---------

Co-authored-by: qvest-ssels <[email protected]>
2026-11-21 13:00:37 -05:00
David Mann 1af7ecaeab Merge remote-tracking branch 'origin/main' into pr-14292 2026-11-21 17:29:26 +01:00
RickiNano 76c42a4808 Custom-domain lookup test: each container takes one domain spelling (#15936)
custom_domain_lookup_warns_and_round_trips_verbatim crossed 3 LUT domain
spellings with 6 PSD/PSB x depth containers (18 open/save chains). The
spelling only decides read_lookup's default-domain check; after that the
block is raw bytes whose stored lengths are all multiples of four, so no
spelling reaches a different container path. Each of the 6 containers now
takes the spellings in turn: every container and every spelling still runs
the whole open, native round trip and PSD/PSB re-save chain, with the same
assertions. adjust_map's unit tests still parse every spelling.
2026-11-21 11:38:34 +01:00
Higgs32584andClaude Opus 5.5 3356714009 Merge upstream main into fix/8047-channel-mixer-cmyk
Resolve the conflict in crates/engine/src/adjust_params.rs: keep this
branch's generic mixer_row (RGB rows of 4, ink rows of 5) and main's
rounding to whole percentages before clamping (#14414).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-20 18:57:10 -05:00
Dylan M. Taylor 663b2a4db3 test(io): add PSD resource 2999 duplicate/rename and brst truncation parity tests (#15992) 2026-11-20 12:00:41 -05:00
FredApps b6732645f0 Merge pull request #11861 from hnoerenberg/fix/gif-preserve-indexed-palette-11824
fix(io): GIF export keeps the indexed palette, unused entries and all
2026-11-20 21:04:09 +07:00
David Mann 915ec8d0cf Merge remote-tracking branch 'origin/main' into pr-14292 2026-11-20 13:02:59 +01:00
aiongg 5351576daf tests: the corpus tests take a fixed sample per directory; the nightly run sweeps every file
The real-file corpus tests the Linux gate runs took up to 394 s each (the psd-tools mutation
sweep), 780 test-s together. Each now walks a fixed sample chosen for coverage (photocraft-testkit
`corpus`: every colour mode and depth, PSD and PSB, the block kinds outside the large files, each
oracle kind, smart objects, vector blocks, type) and stays under a second. PHOTOCRAFT_FULL_SWEEP=1,
the switch the testkit sweeps already read, takes every file; the nightly run sets it.

- Oracles keep floors for the sample next to the full floors.
- The mutation sweep cuts and corrupts each sampled file 12 times instead of 31.
- The layered TIFF test takes the psd-tools sample.
- The smart-object test imports only files with a placed-layer block (full sweep: 32 s to 5 s).
- The blend-mode tests import once and render only the compared cells.
- The 16.8 MP spot-channel file runs in full sweeps only; the generated files check the same reading.
- The #1606 special-shapes test is the affinity table's row for that file plus its warning check.

Part of #15711
2026-11-20 07:23:46 +00:00
hnoerenberg 821e1bf576 Merge upstream/main into fix/gif-preserve-indexed-palette-11824 2026-11-20 05:55:15 +01:00
Dylan M. Taylor d661194b86 Preserve clipping resource flatness edits in PSD export (#15885) 2026-11-19 21:30:55 -05:00
Dylan M. Taylor e9bb736189 io: move remaining PSD block bytes to craft-psd (#15839)
* io: cut over remaining PSD block bytes to craft-psd

* io: unwrap PsdFile::to_bytes in clipping_path_resource_2999 test
2026-11-19 17:51:07 -05:00
David Mann a1b93266a9 Merge #14481 into the merge queue batch
Color Table: recolour by index, black past a shrunk table (#14342)
2026-11-19 22:27:46 +01:00
Higgs32584andClaude Opus 5.5 e92804520d Merge upstream main into fix/8047-channel-mixer-cmyk
main moved the command table out of crates/engine/src/cmd.rs into crates/engine/src/cmd/table/. cmd.rs takes main's version; this PR's Channel Mixer params doc (cyan/magenta/yellow/black ink outputs, monochrome unsupported for CMYK outputs) now lives on the channelMixer entry in cmd/table/image/adjustments.rs.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-19 15:53:45 -05:00
David MannandClaude Opus 5.5 ff4fbc294e Address CodeRabbit review: report Interlaced on palette PNG exports
The palette PNG path wrote an Indexed Color document without
interlacing and said nothing; the band-wise PNG path warns when it turns
interlacing off. The palette path now adds the same kind of warning.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-19 18:55:31 +01:00
Terra854 5ed4a3769c Use shared PSD channel restriction helpers (#15779) 2026-11-19 12:06:03 -05:00
Michael Higgins 9888613806 Merge branch 'storytold:main' into fix/8047-channel-mixer-cmyk 2026-11-19 10:19:01 -05:00
hnoerenberg 563b7820c3 Merge upstream/main into fix/gif-preserve-indexed-palette-11824 2026-11-19 13:10:49 +01:00
aiongg a8f95bd16d Document layer index and index-ordered selection (#15704)
Document.layers is a LayerTree that builds an id index on first lookup and drops it on any mutable access. Layer lookups and selected_layers use the index instead of walking the document.
2026-11-19 10:07:19 +00:00
hnoerenberg f37cf8376d Merge upstream/main into fix/gif-preserve-indexed-palette-11824 2026-11-19 00:36:51 +01:00
Terra854 dfa4ecc357 Merge upstream main for the Windows integration timeout fix 2026-11-19 04:39:53 +08:00
aiongg 0081fd10e1 Tests: merge single-file integration test binaries into one binary per crate
Each crate's top-level tests/*.rs files become modules of tests/it/main.rs, and a new xtask check (test-binaries) refuses a new single-file test binary.
2026-11-18 19:11:27 +00:00
Terra854 c1c53e2942 Preserve smart-object SVG compatibility and address review
Merge PhotoCraft main, retaining its framework dependency snapshot. Keep compressed smart-object refresh on native-size import, preserve omission warnings, and avoid redundant stage probes. Cover the save/reopen path, parser limits, and the native save-back notice.
2026-11-18 02:27:31 +08:00
Higgs32584andClaude Opus 5.5 25ced89e43 Merge upstream main into fix/8047-channel-mixer-cmyk
main (#15449) moved the adjustment editors onto the craft UI framework and deleted basic.rs, which held this PR's CMYK Channel Mixer editor. The framework ChannelMixer has red, green and blue rows only, so a CMYK mixer is now kept out of it: values::from_params refuses a mixer with ink keys (CMYK_MIXER_UNAVAILABLE), the Properties panel shows that message and edits nothing, and Image > Adjustments > Channel Mixer refuses to open in a CMYK document with the same reason. A CMYK editor in craft-libs is the follow-up.

ui_tests.rs keeps main's tests; the test of the deleted egui editor is replaced by cmyk_channel_mixer_is_kept_out_of_the_rgb_editor, and the every-kind Properties test expects the refusal for a CMYK mixer. The Tokens::mixer_rgb/mixer_ink fields added for the deleted editor are dropped (no user left).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-17 11:47:59 -05:00
aiongg ed14e1c413 PhotoCraft on the craft UI framework (#15449)
PhotoCraft's UI moves onto the shared craft UI framework in storytold/craft-libs (next branch): shell, dock and panels, hosted dialogs, keyboard, focus, IME and pointer routing, the canvas's view commands, themes and tokens. The engine, document model, file formats, commands and automation stay. PhotoCraft pins storytold/craft-libs next.
2026-11-17 10:41:35 -05:00
Terra854 05e97d9fe9 Preserve accepted SVG depth boundaries through the shared API 2026-11-17 20:12:43 +08:00
Dylan M. Taylor d71e9fd1bf text: bound copies of preserved style data and font names (#11046) 2026-11-16 21:59:36 -05:00
Higgs32584andClaude Opus 5.5 64fa0cd36e Channel Mixer: never regenerate a monochrome CMYK mixr; mixer track colours from tokens
PSD export no longer writes a monochrome CMYK Channel Mixer it would have to infer (an edited imported one, or an RGB monochrome mixer reshaped for a CMYK document); it warns that the layer's mixer was not written. Unedited imported blocks are still saved back verbatim.

The Channel Mixer source track colours come from new Tokens fields (mixer_rgb, mixer_ink) set in every theme, and the source and Constant sliders are disabled while an imported monochrome CMYK mixer has Monochrome on, the state the engine refuses to edit.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-16 09:32:36 -05:00
FredApps 421adc18cf io tests: forge hostile TySh transforms in the bytes (the shared writer refuses them) 2026-11-16 12:37:37 +01:00
FredApps a94e84dd8d text: take the TySh envelope from craft-psd (#778)
parse_tysh/write_tysh/translate_tysh/transform_is_safe become adapters over
craft_psd::text::envelope (extracted from here in craft-libs#1594); only the
Affine <-> [f64; 6] mapping stays. write_tysh/build_tysh return Option: a block
the shared writer refuses (unsafe transform, non-finite bounds, > 8 MiB) is not
written, and export falls back to pixels with its existing warning. craft-psd
re-pinned to craft-libs main eafb50af (additions only in crates/psd).
2026-11-16 12:35:11 +01:00
Sven Lafebre f85acd7773 Palette PNG indices: a band of rows per step on web, a cancel check between bands, and a fallible row buffer 2026-11-16 10:59:02 +01:00
hnoerenberg 3a9de0cf05 Merge upstream/main into fix/gif-preserve-indexed-palette-11824 2026-11-16 07:14:51 +01:00
FredApps e8531bbfd9 Merge main into codex/raw-adapter-safety
Keep main's newer craft-psd (2284a6bf) and craft-cms (c6eb84d4) pins;
keep this branch's unified fe6b443a pins elsewhere (newer than main's
ad8faa1c). Cargo.lock regenerated from main's lock.
2026-11-16 07:04:22 +01:00
David Mann 0c36b03091 Adapt to main: PSD tests import craft_psd (#13414) 2026-11-15 21:27:44 +01:00
David Mann 5e5f2dc8d9 Merge main into fix/8047-channel-mixer-cmyk 2026-11-15 20:30:30 +01:00
hnoerenberg 53e0d53a91 Merge upstream/main into fix/gif-preserve-indexed-palette-11824 2026-11-15 18:10:13 +01:00
Dylan M. Taylor 14bcf7962e test(io): document bounded annotation smart-source fallback 2026-11-15 09:29:05 -05:00
Dylan M. Taylor db0ff2778e io: delegate PSD annotations to shared bounded codec 2026-11-15 09:27:42 -05:00
Dylan M. Taylor 8e5ace3e04 test(io): use bounded fallible pixel conversion in banded fixtures 2026-11-15 06:48:28 -05:00
Sven Lafebre e77f5f6bf6 Color Table: read a palette PNG again only for shared colours
When every entry of the palette has its own colour, the pixel colours
already name the entries, and Color Table's nearest entry finds them.
The second pass over the file then adds nothing, and it is a pass that
neither the stepped import (the web build) splits up nor a cancel stops,
so it is skipped.

The io test helpers map the indices' layer along with the layers
instead of copying the expected one, so indices that name no layer
still make the documents differ.
2026-11-15 11:52:29 +01:00
Sven Lafebre e2cb5a0cf5 Color Table: keep each pixel's index where it is known
Indexed Color documents store RGB pixels, so Color Table found each
pixel's index again as the nearest entry, and entries of one colour
lost their own pixels (#14342). The document now keeps each pixel's
index (Document::color_indices) where it is known: recorded when a
palette PNG is opened, by Image > Mode > Indexed Color and by Color
Table itself. Color Table uses it while the layer still has exactly the
recorded tiles; after any other change it maps by nearest colour as
before. A known index past a shrunk table stays black until the table
grows back over it.

The native format saves the indices only while they hold for the layer
as saved, and pairs them with the loaded layer on open.
2026-11-15 10:50:12 +01:00
Dylan M. Taylor 0f7433b5a2 fix(svg): preserve smart artwork with explicit omission warnings 2026-11-15 04:10:06 -05:00
skylar taylor-barrick c162cb6d63 Bound SVG test failure diagnostics without weakening assertions (#15014)
* test(io): bound SVG fixture failure diagnostics

* test(io): keep diagnostic regressions bounded on failure
2026-11-14 23:08:28 -06:00