mirror of
https://github.com/storytold/lightcraft.git
synced 2026-11-25 03:53:53 +01:00
Against Lightroom's exports of real edits, V6's global Highlights and Shadows act too hard at large amounts: with Shadows +40..+100 the darkest tones came out about 6 L* above the export, and with Highlights -48..-100 the brightest about 5 L* below it. From process V7 the strength the local tone operator takes is a / (1 + ease * |a|) for a = slider / 100 (finish::tone_slider): slope 1 at zero, so small amounts are unchanged, and +-100 acts at 0.52 (Highlights, ease 0.92) and 0.43 (Shadows, ease 1.33) of V6's. The two constants come from the amounts that cancel the dark- and bright-band error per photo (Shadows: 0.61 at +52, 0.43 at +100; Highlights: 0.52 at -100). Mask amounts, V1 to V6 and renders with both sliders at 0 are unchanged; CPU and GPU take the value from FinishParams. Measured on 59 Lightroom exports of real portrait edits (Canon EOS R6 / R5), with the sidecar frame fix of #2239 applied: mean CIELAB dE 9.5 -> 8.7. On the 16 landscape photos that fix does not touch: 8.4 -> 7.4 (darkest 5 % of tones +4.7 -> -0.2 L*, brightest 5 % -3.5 -> +1.3).