Skip to content

Show RAW starting-colour provenance in Profile panels - #1332

Open
QuirkyTurtle94 wants to merge 3 commits into
storytold:mainfrom
QuirkyTurtle94:codex/camera-colour-source
Open

QuirkyTurtle94 wants to merge 3 commits into
storytold:mainfrom
QuirkyTurtle94:codex/camera-colour-source

Conversation

@QuirkyTurtle94

Copy link
Copy Markdown
Contributor

When a RAW starts dark or flat, the Profile panel now reports the starting-colour path actually accepted by the decoder: the file's matrices, a built-in or local camera profile, its own camera-JPEG fit (including partial fits), spectral sensitivities, or neutral fallback. Black-and-white JPEG tone and an applied DRO tone change are reported separately.

The readout appears below the creative profile in both Edit and the profile browser. It follows the selected original, shows an unavailable state before decoding, and carries provenance across browser workers with bounded caching and source-identity checks. Profile presence alone is never presented as acceptance. Pixel calculations and render-cache versions are unchanged.

Validation:

  • Regression tests cover accepted/rejected paths, local-profile validation, source-cache eviction, stale worker results, and the text painted while switching photos in both panels.
  • Headless inspection of the sky RAW from Color Science and Input Profiles (DCP/ICC) #1281 confirms that the visible spectral-fallback label matches LIGHTCRAFT_PROFILE diagnostics.
  • Full cargo xtask ci: all eight gates passed (fmt, clippy, optional HEIF, workspace tests, parity, layers, assets, WASM). Native checks used Homebrew Rust 1.97.1; WASM checks used the installed rustup 1.97.1 toolchain, since Homebrew lacks that target.

The first commit contains test-only macOS portability fixes: locate true through PATH, handle APFS filename/case behavior, and account for the macOS-only export row. These were needed to run the unchanged test suite on macOS; the feature is isolated in the second commit.

Clean-room: no code, profiles, matrices, or camera data from other RAW processors. No photos or generated media are included.

Fixes #1310. The calibration wizard and selectable named camera profiles in #1315 remain a separate contribution.

QuirkyTurtle94 and others added 2 commits October 12, 2026 20:32
Locate the Unix test child through PATH, preserve physical-file fault injection across case aliases, handle APFS filename restrictions, and account for the Apple Photos export row. Reuse the test-only fixes from local commit 3fd5d82.

Co-authored-by: Codex <noreply@openai.com>
…anels

Carry accepted colour and tone provenance from decoding to the selected photo in native and browser views. Distinguish validated local and built-in profiles, per-photo and partial fits, file matrices, spectral colour, and neutral fallback without changing pixels or cache versions.

Co-authored-by: Codex <noreply@openai.com>

@s17sh70x2jfl031ag s17sh70x2jfl031ag left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These two pt-BR lines were still in English, so here are translations (native speaker). The same two lines are in #1342.

Co-authored-by: null 00000111 <287216888+s17sh70x2jfl031ag@users.noreply.github.com>

@wanikhawar wanikhawar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This edits translation files in crates/ui-egui/locales. Translations go to storytold/craft-i18n, and feature PRs add English only (rule 16). Please move the locale edits there and keep English only here. The file list also includes unrelated files (gpx.rs, xmp.rs, sidecar.rs and others), which suggests a stale base: please rebase so the PR carries only the provenance readout. It conflicts with main and has no CI results.

@wanikhawar

Copy link
Copy Markdown
Contributor

Please drop the locale JSON edits (English only here, rule 16) and move the macOS test-portability fixes into their own PR (rule 8). This overlaps #1342, so please agree the order with it. source_info() is called every frame from the panels; please check it stays cheap. Then please rebase.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Profile panel: show where a raw's starting colour came from (camera profile, per-photo fit, own matrices or fallback)

3 participants