Repository navigation
Upstream ports: calibrated camera colour, camera profiles (.dcp), export presets, cleared GPS stays cleared - #290
Merged
Merged
Conversation
…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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Five pieces from the open upstream PRs, one commit each (plus notes):
LR-EXP-DIALOGLR-PROF-CAMERACOLOR-CHOICELR-META-XMPMeta.gps_removed)LR-PROF-DCP.dcpcamera profiles (default per camera, chosen per photo) and XMP looks; without the PR's unrelated offline web appNotesNotes for review
lcc_meta's container reader (PREVIEW-QUEUE: preview builds queue behind a running build #1208); its file-date guess iscaptured_fallback(1a12f814); #2088's "sidecar GPS wins, a save keeps it" is52c52e22. What was missing from #2088 is the cleared-position round trip, implemented here from scratch: the catalog keeps the cleared position in step onOp::SetMeta(one place, undoable), and saving removes the GPS tags only while the sidecar still states exactly that position.media::LoadOptionsnow 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.CLAUDE.md,ROADMAP.mdanddocs/raw-parity.mdsaid external.dcpfiles 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.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).lcc-engine --lib1489,lcc-catalog265,lcc-develop,lcc-raw512,lcc-pipeline,lcc-ui-eguii18n: 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.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