Skip to content

Upstream ports: calibrated camera colour, camera profiles (.dcp), export presets, cleared GPS stays cleared - #290

Merged
emmertex merged 5 commits into
mainfrom
feat/upstream-batch-0-9-x
Oct 18, 2026
Merged

emmertex merged 5 commits into
mainfrom
feat/upstream-batch-0-9-x

Conversation

@emmertex

Copy link
Copy Markdown
Owner

What

Five pieces from the open upstream PRs, one commit each (plus notes):

Commit Upstream What
LR-EXP-DIALOG #2209 Built-in export presets: Instagram Feed, Instagram Story / Reel, Web / Portfolio, Full Resolution Master
LR-PROF-CAMERACOLOR-CHOICE #2222 Profile ▸ Calibrated camera colour: a per-photo choice to start a raw without matrices from the camera database's spectral matrices instead of a look fitted to its JPEG
LR-META-XMP #2088 (own implementation) A GPS position cleared in the app is removed from the sidecar on save, so it is not read back (catalog format 13, Meta.gps_removed)
LR-PROF-DCP #2074 Import a person's own .dcp camera profiles (default per camera, chosen per photo) and XMP looks; without the PR's unrelated offline web app
Notes What's New and changelog entries

Notes for review

  • #2087 / #2088 were mostly in the fork already. The HEIC EXIF half of #2087 is lcc_meta's container reader (PREVIEW-QUEUE: preview builds queue behind a running build #1208); its file-date guess is captured_fallback (1a12f814); #2088's "sidecar GPS wins, a save keeps it" is 52c52e22. What was missing from #2088 is the cleared-position round trip, implemented here from scratch: the catalog keeps the cleared position in step on Op::SetMeta (one place, undoable), and saving removes the GPS tags only while the sidecar still states exactly that position.
  • media::LoadOptions now carries every decode option: colour choice, the existing Remove Hot Pixels flag, and the camera-profile choice. Upstream #2074 smuggled the profile choice through the file path (a separator character); here it is an option, so the source cache, the render jobs and the web worker's source key follow it like the others.
  • #2074 policy change: CLAUDE.md, ROADMAP.md and docs/raw-parity.md said external .dcp files are never loaded. They now say none is ever shipped, bundled or used as a fixture, and that a person's own files can be imported (decision 2026-10-18). The XMP-look importer decodes the LUT table encoding as observed in files a person supplies.
  • Our discrete-value policy for presets (a preset's discrete fields apply at any amount above 0) differs from upstream's; the ported tests follow ours.

Testing

  • cargo xtask ci --fast: all 14 steps pass (fmt, brand, quarantine, docs, notes, clippy -D warnings, heif, parity, shared-check, layers, assets, deny, wasm, android).
  • Tests: lcc-engine --lib 1489, lcc-catalog 265, lcc-develop, lcc-raw 512, lcc-pipeline, lcc-ui-egui i18n: all pass. New behavioural tests: Colorimetric start without the JPEG, source re-decode when the colour option or camera profile changes (and only for raws), cleared GPS leaves the sidecar / another app's position stays, catalog remembers and undoes a cleared position.
  • Not run: the SIL suite, the full cargo xtask ci, and the app itself (no GUI session).

Sources: upstream PRs #2209, #2222, #2074 (ported); GPS clear: own design following #2088's final head; DNG specification for the camera profile tags.

🤖 Generated with Claude Code

eliets2 and others added 5 commits October 18, 2026 23:12
…Story / Reel, Web / Portfolio and Full Resolution Master

Ported from upstream PR #2209. The named-preset system already existed; this adds the four delivery-target
built-ins and updates the LR-EXP-DIALOG / LR-EXP-PREVIOUS tracker rows.

UPSTREAM-PR: storytold/lightcraft#2209

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ice of a raw's starting colour

Ported from upstream PR #2222. A raw without colour matrices of its own can start from the camera database's
spectral matrices instead of a look fitted to its embedded JPEG (Profile > Calibrated camera colour), which keeps
the shadow range the fitted curve loses on some bodies.

Adapted to the fork: the choice goes through the camera database's spectral entries and the start trace, and the
decode options (`media::LoadOptions`) carry the existing Remove Hot Pixels flag as well as the colour, so a source
is decoded again only when an option that changes it changes.

Sources: upstream PR #2222; no new colour data (the spectral matrices were already in the tree).
UPSTREAM-PR: storytold/lightcraft#2222

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…idecar

The earlier port of upstream PR #2088 made the sidecar's position win and kept it on save, but clearing a position
here left the sidecar's GPS tags in place, so the next Read Metadata from File brought it back (and the position
stayed in a sidecar its owner meant to share without it).

The catalog now remembers a cleared position (`Meta.gps_removed`, catalog format 13), kept in step in one place, on
`Op::SetMeta`: clearing remembers it, setting any position forgets it, and undo/redo restore it with the position.
Saving removes the sidecar's GPS tags (latitude, longitude, altitude) while it still states exactly that position; a
different one written by another application since is left alone.

Sources: own design; the behaviour follows upstream PR #2088's final head.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… photo, and XMP looks

Ported from upstream PR #2074 (without its offline web app, which is unrelated).

- `.dcp` files (DNG camera profiles) are parsed by `lcc_raw::dcp` (bounded, never panics) and imported with
  `camera.importDcp`: the first for a camera model becomes its default from the next start, and `develop.cameraProfile`
  (Profiles > Camera Profile) picks one per photo. A raw developed through a profile takes its colour model from it,
  edits white balance in Kelvin and gets its tone fitted to the camera JPEG when the profile has none.
- XMP looks (`crs:PresetType="Look"` with a colour table) import like `.cube` profiles.
- Nothing is shipped or used as a fixture: a person's own files only; the clean-room notes in CLAUDE.md, ROADMAP.md
  and docs/raw-parity.md say so.

Adapted to the fork: the photo's profile choice travels in `media::LoadOptions` (with the colour option and the
hot-pixel flag) instead of being appended to the file path, so the source cache and the web worker's source key follow
it like any other decode option.

Sources: upstream PR #2074; the DNG specification (camera profile tags); XMP look tables as observed in files a person
supplies.
UPSTREAM-PR: storytold/lightcraft#2074

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@emmertex
emmertex merged commit d67b12f into main Oct 18, 2026
9 checks passed
@emmertex
emmertex deleted the feat/upstream-batch-0-9-x branch October 18, 2026 20:08
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.

2 participants