Repository navigation
Description
Summary
Importing a real Lightroom Classic catalog (1917 Sony ILCE-7RM4 raws, #197) and rendering every photo with the imported develop settings, then comparing with the JPEGs Lightroom exported from the same catalog: the same Light-panel slider values give a noticeably different brightness and contrast in LightCraft. Crops match exactly (with #489/#493/#495), and colour matches once the camera is profiled. Tone is now the main reason migrated edits don't look like they did in Lightroom.
Measured on 24 px downscales (CIE L*, LightCraft minus Lightroom), LightCraft main at 8f924a9 with a local ILCE-7RM4 profile:
- median ΔL* +3.2; |ΔL*| > 5 on 48% of photos, > 10 on 13%
- by Lightroom process version: PV 11.0 +6.3 (530 photos), PV 15.4 +1.8 (1387)
- both directions: the worst cases are +26 and −35
Examples (same catalog settings, Lightroom export on the left)
Too bright, shadows filled in. Exposure +0.5, Contrast +7, Highlights −63, Shadows +48, Whites +15, Blacks −19 (PV 15.4). All 8 photos of this series share these synced settings, and all 8 come out +25 L* brighter.

Too dark: a bright sky renders grey. Exposure −1.0, Contrast +7, Highlights −84, Shadows +80, Whites −22, Blacks −50 (PV 15.4). ΔL* −35.

Too dark and dull. Exposure +0.09, Contrast +5, Highlights −49, Shadows +36, Whites +50, Blacks −60 (PV 15.4). A 4-photo series at ΔL* about −14.

Too dark, and clipped highlights turn pink. Exposure −0.88, Contrast +5, Highlights −75, Shadows +52, Whites +6, Blacks −37 (PV 11.0, values from Auto). ΔL* −29. The sky near the clipped area goes magenta in LightCraft; Lightroom renders it white.

Which sliders track the error
Correlation of each Lightroom value with ΔL* across all 1917 photos (+ means LightCraft gets relatively brighter as the slider goes up):
| Slider | Correlation | Mean value |
|---|---|---|
| Whites2012 | −0.37 | +18.2 |
| Blacks2012 | +0.29 | −20.6 |
| Exposure2012 | +0.25 | +0.0 |
| Saturation | +0.18 | +2.8 |
| Highlights2012 | −0.14 | −54.5 |
| Shadows2012 | +0.10 | +36.0 |
| Contrast2012 | −0.06 | +5.8 |
A linear model on these sliders plus a PV-11 flag explains only about 32% of the variance, so it isn't a single scale factor. The strongest signals: raising Whites brightens LightCraft less than Lightroom (a positive Whites leaves LightCraft darker), lowering Blacks darkens LightCraft more (a negative Blacks leaves it darker), and Exposure moves LightCraft further than Lightroom. The leopard and bird examples suggest strong Highlights/Shadows pairs are also involved: Lightroom keeps local contrast there, while LightCraft flattens the shadows in one case and greys the sky in the other.
Notes
- PV 11.0 photos are worse (+6.3 vs +1.8). Their slider values come from an older Lightroom tone model, so mapping by name may need a process-version adjustment.
- The base render without edits is close: LightCraft's default develop of these files matches the camera's embedded JPEG within median ΔE 3.5. So the gap is in how the Light sliders map, not the starting point.
- This only matters for migrated edits; new edits made in LightCraft are set by eye.
- Happy to rerun measurements on a branch: I have the catalog, raws and Lightroom exports locally, and the comparison is scripted.
🤖 Generated with Claude Code
Activity
AlexChambers commentedon Oct 9, 2026
This is a great dataset. I've measured Lightroom 9.5.1 (process version 2012, Adobe Color) as a black box on one camera (Sony A7CR): XMP sidecars in, 16-bit TIFFs out. Several of your correlations match what those measurements show the sliders do. More detail is in #146 (#146 (comment)).
#514 retunes the default raw curve. That curve is used by raws without a fitted camera look (DNGs, and photos whose fit is rejected), so the change alters their existing edits. I've proposed process versions in #533, so changes like that can ship without altering migrated or existing edits.
AlexChambers commentedon Oct 9, 2026
The pink clipped highlights are addressed in #607. Clipped pixels are rebuilt at decode, and three faults there carried colour that only showed once the area was darkened: borrowed colour from dark neighbours and fringes, two-channel clips left at their white-balance-skewed levels, and "neutral" cores that the camera-look colour model then tinted. Fully clipped cores now come out neutral (C* 0.0 at Highlights −100, as Lightroom exports them), and on the public ILCE-7RM4 sample with your river recipe the poplar halo goes from ΔE 7.5 to 0.05. @rock-meister, if you can rerun your catalog comparison on that branch, I'd be interested in the river photo in particular. A custom white balance in the catalog would still tint clipped cores; the PR lists that limit.
rock-meister commentedon Oct 10, 2026
Thanks, I ran #607 on the catalog (1917 photos, Sony ILCE-7RM4, profile on, LightCraft
main88ea1a8 vsmain+ #607, compared against Lightroom's exports):Happy to rerun on a follow-up commit.
AlexChambers commentedon Oct 10, 2026
Thank you, that's exactly the check I couldn't run. Good to see it's safe across the catalog and that tinted whites drop from 97 to 65. The teal lean in the river sky is real in your crop, so I'll treat it as a #607 follow-up. My guess is that the colour borrowed from the nearby "reliable" content picks up the yellow-green branches, or that the neutral mapping through your profile isn't fully neutral there. If you're able to share that one ARW, even just privately and not under CC0, I could reproduce it exactly. Otherwise I'll try to recreate it from similar CC0 frames and post a follow-up commit for you to rerun.
rock-meister commentedon Oct 10, 2026
Sure, the river ARW is DSC09182 in this folder (for local testing only, please don't redistribute): https://drive.google.com/drive/folders/1inV91n1UXt0Dx6_N9FGmBhu4u_ZUD_5A. Lightroom settings for it: Exposure −0.88, Contrast +5, Highlights −75, Shadows +52, Whites +6, Blacks −37, WB As Shot, PV 11.0 (values from Auto). Happy to rerun the catalog on your follow-up commit.
AlexChambers commentedon Oct 10, 2026
Got it, thanks. I'll keep it local and won't redistribute it. I'll post a #607 follow-up commit here for you to rerun once the teal lean is fixed on this frame.
LR-EDIT-LIGHT-HIGHLIGHTS: clipped highlights stay neutral when darken…
LR-EDIT-LIGHT-HIGHLIGHTS: pale partly clipped skies turn white, not t…
AlexChambers commentedon Oct 10, 2026
@rock-meister #607 now has a follow-up commit (41a61b7) for the teal lean, ready for a rerun on your catalog.
The cause: where only green clipped, red and blue said "pale cyan-blue sky", and the first version rebuilt green to match and kept that colour too long, so the darkening and your profile turned it teal. Now:
On your river frame, the mean C* in the areas Lightroom shows white comes out at 1.0–1.5 depending on the camera look, against 2.3–5.7 before. I don't have your ILCE-7RM4 profile, so I used a stand-in for that case and couldn't reproduce your exact teal. Your rerun is the real test. The render cache version is now 28, so cached renders from the first version refresh on their own.
radialmonster commentedon Oct 10, 2026
One more data point for the Highlights/Shadows part: #645 (open) addresses the "texture keeps its contrast" behaviour measured above. In LightCraft, Highlights and Shadows shifted tone on an edge-aware base that still followed fine detail such as twigs, trim and fur edges against sky, so strong values flattened that detail.
On a CC0 Nikon D5 frame, the bright-area local contrast at Highlights −100 goes from 0.058 to 0.080 with #645 (Exposure −1 keeps 0.083), and dark-area contrast at Shadows +100 goes from 0.190 to 0.228. Halos stay unchanged, and renders are bit-identical when both sliders are at 0.
It doesn't attempt the coverage-dependent strength you saw (more pull when more of the frame is dark), so the overall tone gaps on the leopard, bird and stork shots will remain. But if you rerun the catalog,
main+ #645 would show how much of the Highlights/Shadows mismatch is the lost texture.LR-EDIT-LIGHT-HIGHLIGHTS: clipped highlights stay neutral when darken…
LR-EDIT-LIGHT-HIGHLIGHTS: pale partly clipped skies turn white, not t…
rock-meister commentedon Oct 10, 2026
Reran the catalog on
main5436951 (everything merged overnight, incl. #607 + 41a61b7 and the DRO change from #244; profile on, fresh catalog import) against Lightroom's exports, 1917 photos:main+ LR-EDIT-LIGHT-HIGHLIGHTS: keep local contrast under Highlights and Shadows #645): bright-area local contrast vs Lightroom 0.950 → 0.960 (1.0 = Lightroom's), dark areas 1.034 → 1.042 (slightly over); overall look unchanged (no photo moved > 1 ΔE).Remaining big gaps: the stork and bird frames, which are #631-type.
AlexChambers commentedon Oct 10, 2026
Thanks @rock-meister, that's a very useful rerun.
The burst (#631): #699 lowers the tone fit's range limit. On
mainb70ae17 your DSC01630 gets no camera look (it falls back to the new spectral matrices: ΔE76 19.6 against its camera JPEG, ΔL* −17.9); with #699 it gets one at ΔE76 1.9. The bird has a different cause, explained in the PR: 92% of it is overcast sky above the fit's highlight cut, so it needs a separate change. I don't have the stork frames, but if they're mostly bright sky like the bird, they're probably the same case.The river sky turning grey: with your settings (Exposure −0.88, Highlights −75), LightCraft darkens the fully clipped sky along with everything else, while Lightroom keeps it near white. That matches what I measured on Lightroom 9.5.1 (my Sony A7CR, XMP in, TIFF16 out). In frames with a bright context, Lightroom barely moves clipped content at Highlights −50: about −0.05 stop where it's partly clipped and −0.01 to −0.03 where it's fully clipped. Only "strong" frames with a lot of deep shadow darken it a lot (−0.4 to −0.95 stop). It keeps clipped light white until the pull around it exceeds the white-balance headroom, and past that, the core darkens by about 0.585 × (pull − headroom) (13 points, median error 0.04 stop). I haven't measured negative Exposure on clipped content, but your export suggests Lightroom holds the sky there too.
The teal twigs: at default settings (on
main5436951) the twigs against the sky are close to the camera JPEG on your frame (mean a* about −0.6 against +2.3, b* −0.5 against +0.9 on the twig pixels). The teal mostly comes with the darkening, on edge pixels that mix twig with partly clipped sky. So I'd expect it to shrink if clipped sky were held near white the way Lightroom does it.If the maintainers want that behaviour, I'm happy to work on it. It would change existing renders, so it could ship as a new process version (#533).
AlexChambers commentedon Oct 11, 2026
Some numbers for the slider part of this issue (Exposure, Contrast, Whites, Blacks, Highlights), measured on
mainb70ae17, and what I know about how Lightroom's sliders work, in case it helps whoever calibrates them.What I measured
Setup: three of my ILCE-7CR raws (a night street, a window, a sky), each exported by Lightroom 9.5.1 at Neutral and with one slider moved (Adobe Standard + Adobe Color, lens corrections off, TIFF16 sRGB, 6000 × 4000). LightCraft rendered the same files at the same size with
lightcraft-cli render --set light.whites=50etc.; the frames line up pixel for pixel. For each slider I compare its effect, not the base picture: log2 of the luminance with the slider minus log2 at Neutral, per pixel (every 8th pixel in each direction), averaged over bands of Lightroom's Neutral luminance (linear Y). As a check on the method, the same measure on my own renderer, which I've been calibrating against Lightroom, gives 80-130% for most cells (its weakest is Highlights +50, 24-102%).How much of Lightroom's change LightCraft makes (Lightroom's own change in stops in brackets, mean of the photos; Blacks on the night and window photos, Whites on window and sky, Highlights +50 on the window):
Saturation ±50 is close: its luminance error is 0.01-0.06 stop.
Why, as far as I can tell: these files get a camera look, and
ToneMap::camera(crates/pipeline/src/tone.rs) applies Contrast, Whites and Blacks after the camera curve throughToneMap::display, the gentle adjustment meant for JPEGs: Blacks moves the gamma-encoded value by less than 0.07 even at ±100 and fades out by mid-grey, Whites only acts above encoded 0.45 (Y about 0.17). Raws without a look go throughToneMap::hdrinstead, whose Whites and Blacks are stronger. So on most ARW, NEF, RAF and CR3 files the Light panel works at JPEG strength. Highlights is a separate, local stage, and positive Highlights barely lifts anything below the brightest areas.Exposure is closest. Its gap is in the darker bands, where Lightroom's output moves by 1.2 to 1.7 stops for 1 EV and LightCraft's by 1.0 to 1.5. That points at the base curve (#146, Lightroom's has a toe) more than at the slider.
How Lightroom's sliders behave (my black-box measurements)
From Lightroom 9.5.1 exports of 24 of my ILCE-7CR photos (2048 px, XMP in, TIFF out, every slider swept on its own and in combinations; "encoded" means sRGB-encoded output values):
Next step
A fix would change existing edits, so it would need a new process version (#533), stacked on #645's
Process::V2. I'm happy to work on calibrating the camera-look path's Contrast, Whites and Blacks against these exports and the laws above, if the maintainers want that, and to rerun this measurement on any branch that changes them.70 remaining items
test(proraw): V18's curve stage leaves Whites to the ProRAW chain; V1…
fix(curve_stage): Refine Saturation restores the colour after Whites (s…
fix(curve_input): under V18 sample where the curve stage reads (story…
fix(tools): the tone charts' manifest carries the tool's prefix and f…
test(gpu): the curve-input prefix test names V17, where the sample is…
Merge lr-v8-tone into lr-v8-color: the series moves to process V18 (s…
Merge lr-v8-color into lr-v8-grading: the series moves to process V18 (…
Merge lr-v8-grading into lr-v8-base: the series moves to process V18 (s…
Merge lr-v8-base into lr-v9-highlights: the series moves to process V…
fix(local_tone): drop the import apply_framed needed; main's apply_in…
Merge lr-v9-highlights into lr-v9-calibration: the series moves to pr…
fix(curve_input): on ProRAW the sample's curve stage leaves Whites to…
fix(smart): back to encoding 4; previews never stored default_tone, s…
docs(parity): the default curve's exposure offsets cover four Lumix b…
docs(parity): the default curve's exposure offsets cover four Lumix b…