Skip to content

Same Light-panel values render brighter/darker than Lightroom (Exposure, Whites/Blacks, Highlights/Shadows; worse for PV 11) #523

Open

Description

@rock-meister

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.
leopard

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.
bird

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.
storks

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.
river

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

  1. AlexChambers commented on Oct 9, 2026

    @AlexChambers
    Contributor

    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)).

    • "Exposure moves LightCraft further than Lightroom." In Lightroom, Exposure is a pure 2^EV gain applied before the base tone curve, so the curve's shoulder absorbs it near white (matched to within 0.0002 stop on a ramp). The same gain applied after the curve gives a different response.
    • "Raising Whites brightens LightCraft less." Lightroom's positive Whites isn't a fixed curve. It stretches toward a white point taken from the photo's 99th percentile: at +100, w = 1.394 × p99 − 0.553 (r 0.95), with strength scaling as (amount/100)^1.85. Photos with a low p99 get much more lift from the same value. Negative Whites and Blacks are fixed curves.
    • Strong Highlights/Shadows pairs. Lightroom's Highlights is local and edge-aware: texture keeps its contrast, and its strength depends mostly on how much of the frame is dark (on one crop, 10% → 90% dark coverage gave a 4.35× stronger pull). Any whole-histogram method misses that, and it fits your leopard and bird cases. Highlights and Shadows together each keep about 0.75 to 0.87 of their solo effect.
    • Pink clipped highlights. In Lightroom, fully clipped cores export neutral at Highlights −100, to 3 decimals. Unclipped near-white pixels move along their own channel ratios. A clipped light source stays white until the pull around it exceeds the white-balance headroom.

    #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.

  2. AlexChambers commented on Oct 9, 2026

    @AlexChambers
    Contributor

    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.

  3. rock-meister commented on Oct 10, 2026

    @rock-meister
    ContributorAuthor

    Thanks, I ran #607 on the catalog (1917 photos, Sony ILCE-7RM4, profile on, LightCraft main 88ea1a8 vs main + #607, compared against Lightroom's exports):

    river sky: Lightroom, main, #607

    • The tone gaps from the original report (leopard, bird, storks) are unchanged, as expected.

    Happy to rerun on a follow-up commit.

  4. AlexChambers commented on Oct 10, 2026

    @AlexChambers
    Contributor

    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.

  5. rock-meister commented on Oct 10, 2026

    @rock-meister
    ContributorAuthor

    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.

  6. AlexChambers commented on Oct 10, 2026

    @AlexChambers
    Contributor

    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.

  7. AlexChambers commented on Oct 10, 2026

    @AlexChambers
    Contributor

    @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:

    • pale, partly clipped colour fades to neutral from the first clip;
    • colour borrowed from other surfaces, like the yellow-green branches, is rejected when both the pixel and its rim contradict it.

    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.

  8. radialmonster commented on Oct 10, 2026

    @radialmonster
    Contributor

    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.

  9. rock-meister commented on Oct 10, 2026

    @rock-meister
    ContributorAuthor

    Reran the catalog on main 5436951 (everything merged overnight, incl. #607 + 41a61b7 and the DRO change from #244; profile on, fresh catalog import) against Lightroom's exports, 1917 photos:

    • Overall a big step: median look ΔE 7.12 → 5.39; "obviously different" (ΔE > 6) 65% → 40%; 865 photos better by > 1 ΔE, 95 worse. Most of it looks like the DRO change, since every file here is DRO Auto: the synced leopard series went from ΔL* +26 to +10.
    • River (DSC09182): the sky is now neutral grey (no pink, no teal halo) 👍, but the branches against the sky keep a teal/green fringe. C* in Lightroom's white areas: Lightroom 2.8, before 5.5, now 4.2. Crop: Lightroom | yesterday's main | today's main.

    river sky: Lightroom, main 88ea1a8, main 5436951

    Remaining big gaps: the stork and bird frames, which are #631-type.

  10. AlexChambers commented on Oct 10, 2026

    @AlexChambers
    Contributor

    Thanks @rock-meister, that's a very useful rerun.

    The burst (#631): #699 lowers the tone fit's range limit. On main b70ae17 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 main 5436951) 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).

  11. AlexChambers commented on Oct 11, 2026

    @AlexChambers
    Contributor

    Some numbers for the slider part of this issue (Exposure, Contrast, Whites, Blacks, Highlights), measured on main b70ae17, 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=50 etc.; 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):

    slider Y 0.03-0.10 0.10-0.25 0.25-0.50 0.50-0.90
    Blacks −50 6-7% (−3.0) 9% (−1.6) 6-7% (−0.5) 0% (−0.1)
    Blacks +50 24-27% (+0.7) 23% (+0.6) 10-11% (+0.3) 0% (+0.1)
    Whites −50 0% (−0.02) 0% (−0.06) 0% (−0.12) 27-28% (−0.2)
    Whites +50 0% (+0.03) 0% (+0.08) 0% (+0.15) 21-38% (+0.15 to +0.29)
    Highlights +50 0% (+0.4) 0% (+0.6) 0% (+0.7) 10% (+0.8)
    Contrast −50 65-71% (+0.9) 63-66% (+0.7) 44-82% (+0.3) 66-148% (−0.1)
    Contrast +50 65-70% (−1.1) 54-57% (−1.0) 35-66% (−0.4) 59-139% (+0.1)
    Exposure −1 84-87% (−1.2) 67-73% (−1.7) 94% (−1.6) 90-94% (−1.2)
    Exposure +1 66-72% (+1.6) 89-92% (+1.6) 92-94% (+1.4) 92-104% (+0.8)

    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 through ToneMap::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 through ToneMap::hdr instead, 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):

    • Exposure: a pure 2^EV gain on linear camera values before the base curve, within about 0.01 stop on grey charts from −0.75 to +0.5 EV. A gain after the curve misses by 0.02 to 0.07 and reaches only 80% of the response. No roll-off of its own: highlights that go past the curve's top export at 0.983-0.998 encoded.
    • Contrast: a fixed curve, not scene-adaptive. ±25 and ±50 are the ±100 response scaled, linear in the amount from 1 to 25. It's applied per channel, best matched in ProPhoto primaries with the sRGB transfer curve (luminance-only fits are 4 to 7 times worse), so it changes chroma too: about ×1.35 at +100 and ×0.69 at −100.
    • Whites, negative: a fixed curve, luminance only: at −100, out = in − 0.1·in² (encoded). Linear in the amount from 1 to 25.
    • Whites, positive: scene-adaptive. Below a shoulder, out = in / w with a toe at black; at +100, w = 1.394·p99 − 0.553 (the photo's 99th percentile, r 0.95; the maximum predicts it poorly, r 0.55), and 1 − w scales with (amount/100)^1.85 from 25 to 100 (a power of about 1.4 to 1.5 below 25). It's not a gain before the base curve: deep shadows barely move. It's applied per channel, so colours desaturate toward white near the top.
    • Blacks: a fixed per-pixel curve, the same on all 24 photos within 0.02. −100 moves the black point to 0.21 encoded with a soft toe (−50 to 0.075, −25 to 0.037). +100 lifts the deep shadows by 0.10 with the black end anchored. Negative Blacks is per channel; positive Blacks is per channel at +25 and about 0.4 per channel at +100, so it desaturates dark colours less for large lifts. Neither linear nor one power in the amount: at 1, 2 and 10 it gives 2.7%, 5.3% and 29.7% of the −100 effect (3.3%, 6.7%, 34.3% for positive).
    • Whites and Blacks compose additively with each other and with the other sliders: Whites in a full recipe equals Whites alone to 0.002 per band.
    • Highlights, positive: the +50 log gain mirrors the −50 log gain away from white (+0.059 against −0.059 stop in the middle bins); near white it's limited by clipping. Linear in the amount from 1 to 25. Negative Highlights is a pull before the base curve, exactly proportional to the slider (−10/−25/−50/−75 are 0.10/0.25/0.50/0.75 of the −100 pull within 0.004), and spatial and scene-dependent, as discussed above and in LR-EDIT-LIGHT-HIGHLIGHTS: keep local contrast under Highlights and Shadows #645.
    • Base curve toe: Lightroom's toe is steep: on a grey ramp its log-log slope below Y 0.02 is 2.13 to 2.24, which is why the same Exposure change moves shadows by more than a stop in its output.

    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.

  12. 70 remaining items

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions