From fed213e607751f55eb4210c8c4a4c30a00390f66 Mon Sep 17 00:00:00 2001 From: Pareilart <147240473+Pareilart@users.noreply.github.com> Date: Fri, 6 Nov 2026 18:10:59 +0100 Subject: [PATCH 1/4] LR-BEHAV-RENDER-FIDELITY: process V7 eases global Highlights and Shadows off at large amounts (#523) 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). --- crates/develop/src/settings.rs | 8 +++- crates/develop/src/tests_process.rs | 8 ++-- crates/pipeline/src/finish.rs | 73 +++++++++++++++++++++++++++-- crates/pipeline/src/light_v3.rs | 2 +- crates/pipeline/src/local.rs | 2 +- docs/gaps.md | 1 + docs/parity-checklist.md | 7 +-- docs/process-versions.md | 4 +- docs/whats-new.md | 9 ++++ 9 files changed, 99 insertions(+), 15 deletions(-) diff --git a/crates/develop/src/settings.rs b/crates/develop/src/settings.rs index c4197c2911..cf32cabf1f 100644 --- a/crates/develop/src/settings.rs +++ b/crates/develop/src/settings.rs @@ -96,12 +96,15 @@ pub enum Process { /// V5, with colour noise reduction on the linear colour differences R−Y and B−Y, leaving Y alone, with /// edge-aware weights from a denoised guide and a brake for isolated colour specks (issue #815). V6, + /// V6, with global Highlights and Shadows answering large amounts as Lightroom does: compressively, fitted to + /// Lightroom exports of real edits (`lightcraft_pipeline::finish::tone_slider`). + V7, } impl Process { /// Every process, oldest first. - pub const ALL: [Process; 6] = [Process::V1, Process::V2, Process::V3, Process::V4, Process::V5, Process::V6]; - pub const LATEST: Process = Process::V6; + pub const ALL: [Process; 7] = [Process::V1, Process::V2, Process::V3, Process::V4, Process::V5, Process::V6, Process::V7]; + pub const LATEST: Process = Process::V7; pub const fn version(self) -> ProcessVersion { match self { @@ -111,6 +114,7 @@ impl Process { Process::V4 => ProcessVersion(4), Process::V5 => ProcessVersion(5), Process::V6 => ProcessVersion(6), + Process::V7 => ProcessVersion(7), } } } diff --git a/crates/develop/src/tests_process.rs b/crates/develop/src/tests_process.rs index f89ebfa115..56fa0aed09 100644 --- a/crates/develop/src/tests_process.rs +++ b/crates/develop/src/tests_process.rs @@ -89,13 +89,13 @@ fn v1_is_left_out_when_saving_and_other_processes_are_kept() { #[test] fn unknown_process_numbers_load_and_render_with_the_newest_known() { // written by a newer LightCraft: kept as it is, rendered with the latest process this build has - let s = DevelopSettings::from_json(&json!({"process": 7, "light": {"exposure": 0.5}})).unwrap(); - assert_eq!(s.process, ProcessVersion(7)); + let s = DevelopSettings::from_json(&json!({"process": 99, "light": {"exposure": 0.5}})).unwrap(); + assert_eq!(s.process, ProcessVersion(99)); assert_eq!(s.process.process(), Process::LATEST); assert!(!s.process.is_known()); assert!(!s.process.is_outdated(), "never downgraded by Update to Current Process"); - assert_eq!(s.to_json()["process"], json!(7)); - assert_eq!(s.merged(&json!({"light": {"exposure": 1.0}})).unwrap().process, ProcessVersion(7)); + assert_eq!(s.to_json()["process"], json!(99)); + assert_eq!(s.merged(&json!({"light": {"exposure": 1.0}})).unwrap().process, ProcessVersion(99)); // below V1 (no LightCraft writes it): rendered as V1, and updatable let zero = DevelopSettings::from_json(&json!({"process": 0})).unwrap().process; assert_eq!((zero.process(), zero.is_known(), zero.is_outdated()), (Process::V1, false, true)); diff --git a/crates/pipeline/src/finish.rs b/crates/pipeline/src/finish.rs index 4cb3388127..3634cb9d84 100644 --- a/crates/pipeline/src/finish.rs +++ b/crates/pipeline/src/finish.rs @@ -284,8 +284,8 @@ impl FinishParams { out_luma: space.luma(), out_trc: space.trc(), proof: None, - hl: (s.light.highlights / 100.0) as f32, - sh: (s.light.shadows / 100.0) as f32, + hl: tone_slider(s.light.highlights, HIGHLIGHTS_EASE, s.process.process()), + sh: tone_slider(s.light.shadows, SHADOWS_EASE, s.process.process()), clar, tex, dehaze, @@ -323,6 +323,31 @@ impl FinishParams { } } +/// How much a full global Highlights (−100 or +100) eases off from V6's strength under V7: it acts at +/// `1 / (1 + HIGHLIGHTS_EASE)` of it. +pub const HIGHLIGHTS_EASE: f64 = 0.92; +/// The same for global Shadows. +pub const SHADOWS_EASE: f64 = 1.33; + +/// A global Highlights or Shadows slider (−100..100) as the strength the local tone operator takes (−1..1). +/// +/// Up to V6 the strength is the slider's, linearly. From V7 it eases off as the amount grows, `a / (1 + ease·|a|)` +/// for `a` = slider / 100: unchanged for small amounts (slope 1 at 0), and at most `1 / (1 + ease)` of V6's at ±100. +/// Fitted to 56 Lightroom exports of real portrait edits (Canon raws, Highlights −48 to −100, Shadows +40 to +100): +/// V6 left their darkest tones about 6 L* above the exports and their brightest about 5 below; the amounts that +/// cancel that are about 0.6 of V6's at Shadows +52 and 0.43 at +100, and 0.52 at Highlights −100. Masks keep +/// their linear amounts. +pub fn tone_slider(value: f64, ease: f64, process: lightcraft_develop::Process) -> f32 { + if process < lightcraft_develop::Process::V7 { + return (value / 100.0) as f32; + } + let a = (value / 100.0).clamp(-1.0, 1.0); + if !a.is_finite() { + return 0.0; + } + (a / (1.0 + ease * a.abs())) as f32 +} + /// The base tone map (scene → display luminance, with Contrast, Whites and Blacks) of `s`'s /// rendering process. This is where a new tone model branches: a retuned default tone curve (issue /// #146) is a new [`Process`] with its own arm here, and V1's arm stays as it is, so photos edited @@ -349,7 +374,7 @@ pub fn base_tone(s: &DevelopSettings, info: &SourceInfo, peak: f32) -> ToneMap { }, // V4, with a raw's tone curve rolling off into white in stops: a camera curve past its last // knot, the generic curve from half a stop below its white point instead of clipping (issue #1632) - Process::V5 | Process::V6 => match info.camera_tone.as_ref().filter(|_| info.raw) { + Process::V5 | Process::V6 | Process::V7 => match info.camera_tone.as_ref().filter(|_| info.raw) { Some(curve) => ToneMap::camera_rolloff_hdr(curve, 0.0, l.whites, 0.0, peak), None if info.raw => ToneMap::rolloff_hdr(l.contrast, l.whites, l.blacks, peak), None => ToneMap::display_hdr(l.contrast, l.whites, l.blacks, peak), @@ -903,6 +928,48 @@ fn enc(v: f32, dither: f32) -> u8 { #[cfg(test)] mod tests { use super::*; + use lightcraft_develop::Process; + + #[test] + fn tone_sliders_ease_off_from_v7_only() { + for v in [-100.0, -52.0, 0.0, 13.0, 100.0, 250.0] { + for p in [Process::V1, Process::V6] { + assert_eq!(tone_slider(v, SHADOWS_EASE, p), (v / 100.0) as f32, "{p:?} keeps the linear amount"); + } + } + let v7 = |v: f64, ease: f64| tone_slider(v, ease, Process::V7); + assert_eq!(v7(0.0, SHADOWS_EASE), 0.0); + assert!((v7(1.0, SHADOWS_EASE) - 0.01).abs() < 2e-4, "small amounts are as before"); + assert!((v7(100.0, SHADOWS_EASE) - 0.43).abs() < 0.005); + assert!((v7(52.0, SHADOWS_EASE) - 0.307).abs() < 0.005); + assert!((v7(-100.0, HIGHLIGHTS_EASE) + 0.52).abs() < 0.005); + assert_eq!(v7(250.0, SHADOWS_EASE), v7(100.0, SHADOWS_EASE), "clamped to the slider's range"); + assert_eq!(v7(f64::NAN, SHADOWS_EASE), 0.0); + let mut last = -1.0; + for i in -100..=100 { + let y = v7(i as f64, HIGHLIGHTS_EASE); + assert!(y > last, "monotonic at {i}"); + last = y; + } + } + + #[test] + fn v7_shadows_lift_less_than_v6() { + let src = lightcraft_raster::Rgb32f::from_fn(64, 8, |x, _| [0.002 * 1.12f32.powi(x as i32); 3]); + let mean = |p: Process| { + let mut s = DevelopSettings { process: p.version(), ..Default::default() }; + s.light.shadows = 80.0; + let r = crate::render(&src, &SourceInfo::default(), &s, &crate::RenderRequest::fit(64, 8)); + r.image.data.iter().take(24).map(|px| px[1] as f32).sum::() / 24.0 + }; + let base = { + let s = DevelopSettings { process: Process::V7.version(), ..Default::default() }; + let r = crate::render(&src, &SourceInfo::default(), &s, &crate::RenderRequest::fit(64, 8)); + r.image.data.iter().take(24).map(|px| px[1] as f32).sum::() / 24.0 + }; + let (v6, v7) = (mean(Process::V6), mean(Process::V7)); + assert!(v7 > base && v7 < v6, "Shadows still lifts the darks, less than V6: none {base}, V6 {v6}, V7 {v7}"); + } #[test] fn grain_noise_is_finite_for_degenerate_coordinates() { diff --git a/crates/pipeline/src/light_v3.rs b/crates/pipeline/src/light_v3.rs index 394c7c0829..a7db45ec06 100644 --- a/crates/pipeline/src/light_v3.rs +++ b/crates/pipeline/src/light_v3.rs @@ -284,7 +284,7 @@ pub fn applies(s: &DevelopSettings, info: &SourceInfo) -> bool { let camera_look = info.raw && info.camera_tone.is_some(); match s.process.process() { Process::V1 | Process::V2 | Process::V3 => false, - Process::V4 | Process::V5 | Process::V6 => camera_look, + Process::V4 | Process::V5 | Process::V6 | Process::V7 => camera_look, } } diff --git a/crates/pipeline/src/local.rs b/crates/pipeline/src/local.rs index debb5e8db6..5fb9ad84ce 100644 --- a/crates/pipeline/src/local.rs +++ b/crates/pipeline/src/local.rs @@ -375,7 +375,7 @@ pub fn base_detail_radius(px_per_long: f64) -> usize { pub fn tone_base_detail(s: &DevelopSettings, px_per_long: f64) -> usize { match s.process.process() { Process::V1 => 0, - Process::V2 | Process::V3 | Process::V4 | Process::V5 | Process::V6 => base_detail_radius(px_per_long), + Process::V2 | Process::V3 | Process::V4 | Process::V5 | Process::V6 | Process::V7 => base_detail_radius(px_per_long), } } diff --git a/docs/gaps.md b/docs/gaps.md index f11acd4747..02322f0f04 100644 --- a/docs/gaps.md +++ b/docs/gaps.md @@ -91,6 +91,7 @@ Beta-blocking gaps (B) total **~230–430 h**; with the stability and platform w | Date | Change | Summary | |---|---|---| | 2026-11-07 | correction | Compressed ORF sensor support withdrawn pending provenance review; embedded preview fallback remains. Coverage regenerated without the removed decoder: 557 verified, 665 unverified, 187 preview-only, 37 unsupported; 94% use-weighted coverage. | +| 2026-11-06 | minor | Gap 3: process V7 eases global Highlights and Shadows off at large amounts, fitted to 56 Lightroom exports of real Canon edits (mean ΔE 9.5 → 8.7, #523); the gap stays open and hours are unchanged | | 2026-11-04 | minor | Compressed ORF support was introduced in #3775; subsequently withdrawn pending provenance review. Earlier clean-room and verification claims are withdrawn; compressed files use embedded previews when available. See [ORF status](orf-compression.md). | | 2026-11-05 | minor | Gap 3: process V5 rolls a raw's tone curve off into white in stops, so raising Exposure keeps the highlights the sensor recorded (#1632); the gap stays open (no Lightroom comparison) and hours are unchanged | | 2026-10-27 | minor | Gap 26: the loupe shows built previews (they were rendered again), photos ahead and the whole view are prepared in the background with settings per mode; gap not closed | diff --git a/docs/parity-checklist.md b/docs/parity-checklist.md index cf6ab0de74..0704ecccd3 100644 --- a/docs/parity-checklist.md +++ b/docs/parity-checklist.md @@ -181,8 +181,8 @@ differences and missing bindings are in [ui-parity.md](ui-parity.md#shortcuts). | LR-EDIT-HDR-MODE | HDR editing | P2 | ✅ | `cmd:develop.hdr`, `ctl:hdr.maxEv`, `crates/ui-egui/src/panels/edit.rs` (`hdr_row`) | HDR button next to B&W in the Edit panel header, as Lightroom (Visualize HDR and the headroom limit in the Light panel while it's on, sliding open and shut with the histogram's layout change); see Q. HDR | | LR-EDIT-LIGHT-EXPOSURE | Exposure | P0 | ✅ | `ctl:light.exposure` | Alt/Option-drag shows highlight clipping (black, clipped channels in colour) | | LR-EDIT-LIGHT-CONTRAST | Contrast | P0 | 🟡 | `ctl:light.contrast` | From process V4, global Contrast on the camera-look path is fitted per channel in ProPhoto with the sRGB transfer. Check response error 0.136 to 0.038 stops on six held-out Sony photos. Other sources and local adjustments retain V2; broader parity remains unverified (`docs/light-v3.md`). | -| LR-EDIT-LIGHT-HIGHLIGHTS | Highlights | P0 | ✅ | `ctl:light.highlights`, `crates/raw/src/highlight.rs` | sensor-clipped highlights stay neutral when Highlights (or Exposure, Whites) darkens them: fully clipped content is rebuilt to the neutral of the colour model applied after it, partly clipped content takes its colour from reliable unclipped content nearby (not from dark objects, lens fringes or another surface beside it) and white where there is none, and pale partly clipped content (a white sky) turns white on its way to clipping (#523); binned previews and thumbnails decide clipping per sample before averaging (`develop_binned_masked`, `highlight::reconstruct_masked`), so a block with one clipped specular sample keeps its mean instead of jumping to the clip level, which reconstruction turned into green speckles at 500 px (#548) From process V2 the Highlights/Shadows base is the edge-aware filter of the 0.15 %-of-long-edge median of log luminance: twigs and fine texture take their surroundings' shift, so bright areas keep their local contrast as with Exposure (V1's base kept ~0.6 of it at −100, #632); region edges stay sharp. Alt/Option-drag shows highlight clipping | -| LR-EDIT-LIGHT-SHADOWS | Shadows | P0 | ✅ | `ctl:light.shadows` | From process V2, the same base as Highlights: dark areas keep their local contrast when lifted (#632). Alt/Option-drag shows shadow clipping (white, clipped channels in colour) | +| LR-EDIT-LIGHT-HIGHLIGHTS | Highlights | P0 | ✅ | `ctl:light.highlights`, `crates/raw/src/highlight.rs` | sensor-clipped highlights stay neutral when Highlights (or Exposure, Whites) darkens them: fully clipped content is rebuilt to the neutral of the colour model applied after it, partly clipped content takes its colour from reliable unclipped content nearby (not from dark objects, lens fringes or another surface beside it) and white where there is none, and pale partly clipped content (a white sky) turns white on its way to clipping (#523); binned previews and thumbnails decide clipping per sample before averaging (`develop_binned_masked`, `highlight::reconstruct_masked`), so a block with one clipped specular sample keeps its mean instead of jumping to the clip level, which reconstruction turned into green speckles at 500 px (#548) From process V2 the Highlights/Shadows base is the edge-aware filter of the 0.15 %-of-long-edge median of log luminance: twigs and fine texture take their surroundings' shift, so bright areas keep their local contrast as with Exposure (V1's base kept ~0.6 of it at −100, #632); region edges stay sharp. Alt/Option-drag shows highlight clipping From process V7 the global amount eases off as it grows (`a / (1 + 0.92·abs(a))`), fitted to Lightroom exports (#523). | +| LR-EDIT-LIGHT-SHADOWS | Shadows | P0 | ✅ | `ctl:light.shadows` | From process V2, the same base as Highlights: dark areas keep their local contrast when lifted (#632). Alt/Option-drag shows shadow clipping (white, clipped channels in colour) From process V7 the global amount eases off as it grows (`a / (1 + 1.33·abs(a))`), fitted to Lightroom exports (#523). | | LR-EDIT-LIGHT-WHITES | Whites | P0 | 🟡 | `ctl:light.whites`, `crates/pipeline/src/visualize.rs` | V4 preserves V2 Whites for both signs. Calibration is a planned follow-up; measured V2 check response error is 0.075 stops on the Sony test photos (`docs/light-v3.md`). Alt/Option-drag shows highlight clipping (black, clipped channels in colour) | | LR-EDIT-LIGHT-BLACKS | Blacks | P0 | 🟡 | `ctl:light.blacks`, `crates/pipeline/src/visualize.rs` | From process V4, global Blacks on the camera-look path uses a fitted per-channel/luminance mix. Check response error 0.424 to 0.077 stops on six held-out Sony photos; deepest tones still differ. Other sources and local adjustments retain V2 (`docs/light-v3.md`). Alt/Option-drag shows shadow clipping (white, clipped channels in colour) | | LR-EDIT-LIGHT-CURVE-PARAM | Parametric curve | P0 | ✅ | `ctl:curve.highlights`, `ctl:curve.lights`, `ctl:curve.darks`, `ctl:curve.shadows`, `ctl:curve.split*`, `crates/pipeline/src/curve.rs` | the graph draws the renderer's own curve model; dragging the line moves the region under the pointer (one undo step) | @@ -467,7 +467,7 @@ differences and missing bindings are in [ui-parity.md](ui-parity.md#shortcuts). | LR-BEHAV-OFFLINE | Offline editing | P1 | ✅ | | local-first: everything works offline | | LR-BEHAV-WEB-SAFETY | Library safety in the browser build | P1 | 🟡 | `cmd:file.backupLibrary`, `cmd:file.restoreLibrary`, `apps/lightcraft-web/src/safety.rs`, `apps/lightcraft-web/src/backup.rs`, `apps/lightcraft-web/src/files.rs` | web only (experimental): Back Up Library (zip of the catalog and every stored original) and a non-destructive Restore; failed saves show as unsaved and are retried; a photo that can't be stored isn't added; one tab per library (Web Locks); notices for storage that isn't persistent and for a library that can't open; `?reset` asks first; a panic shows a message. Missing: `?safe` start, deleting originals of removed photos, zip64 (backups > 4 GB) | | LR-BEHAV-GPU | GPU acceleration | P0 | ✅ | `crates/gpu/src/render.rs`, `cmd:app.gpu`, `docs/gpu-pipeline.md`, `crates/ui-egui/src/panels/notices.rs` | CPU fallback per render on device limits, out of memory, device errors / loss, incomplete or black results (`perf.gpuReason`, `perf.gpuFallback`; each render reports its own reason — `lightcraft_gpu::try_render`, `gpuFallback` per exported file — issue #675); short submissions for slow iGPUs; backend choice (DX12 only on Windows, `LIGHTCRAFT_GPU_BACKEND` / `WGPU_BACKEND`), device created after the window opens, crash sentinel (issue #136); a GPU lost while LightCraft runs (driver reset) stops it with that message and turns GPU rendering off for the next start, which says why (issue #1337; the window's renderer can't survive the lost device); quitting waits (up to 2 s) for renders in flight and starts no new GPU work, so none is inside the driver when the process exits (`crates/gpu/src/exit.rs`, issue #620; seen crashing only on Linux + NVIDIA, other drivers unverified); with GPU rendering on and no adapter found at all (e.g. no Vulkan loader on NixOS outside `nix develop`), the desktop app says once per session that it renders on the CPU and points to Help ▸ System Info (`gpu_notice`; not when the GPU is turned off or only a software adapter exists); no tiling beyond the buffer limit (CPU) | -| LR-BEHAV-RENDER-FIDELITY | Rendering matches Lightroom | P1 | 🟡 | `crates/pipeline/src/lib.rs`, `crates/pipeline/src/tone.rs` | Process V4 calibrates global camera-look Contrast and Blacks against black-box Lightroom exports of Sony ILCE-7CR photos. Held-out response errors are 0.038 and 0.077 stops; V1/V2 keep their rendering. Whites retains V2 and awaits a follow-up. Exposure, Highlights/Shadows, other operators and broader camera coverage remain open (`docs/light-v3.md`). From process V5 a raw's tone curve rolls off into white in stops (past a camera curve's last fitted knot, or from half a stop below the generic curve's white point instead of clipping), so Exposure +1 and +2 keep the highlights the sensor recorded: on 12 CC0 corpus raws and 6 CC0 DNGs on the generic curve, unclipped pixels whose luminance renders at 254 or more fall from up to 22.5 % to 0 at +1 EV and from up to 35 % to at most 0.03 % at +2 EV, apart from one sky that is mostly at the clip (#1632). Not compared with Lightroom's output | +| LR-BEHAV-RENDER-FIDELITY | Rendering matches Lightroom | P1 | 🟡 | `crates/pipeline/src/lib.rs`, `crates/pipeline/src/tone.rs` | Process V4 calibrates global camera-look Contrast and Blacks against black-box Lightroom exports of Sony ILCE-7CR photos. Held-out response errors are 0.038 and 0.077 stops; V1/V2 keep their rendering. Whites retains V2 and awaits a follow-up. Exposure, Highlights/Shadows, other operators and broader camera coverage remain open (`docs/light-v3.md`). From process V5 a raw's tone curve rolls off into white in stops (past a camera curve's last fitted knot, or from half a stop below the generic curve's white point instead of clipping), so Exposure +1 and +2 keep the highlights the sensor recorded: on 12 CC0 corpus raws and 6 CC0 DNGs on the generic curve, unclipped pixels whose luminance renders at 254 or more fall from up to 22.5 % to 0 at +1 EV and from up to 35 % to at most 0.03 % at +2 EV, apart from one sky that is mostly at the clip (#1632). Not compared with Lightroom's output From process V7 global Highlights and Shadows ease off at large amounts (`finish::tone_slider`, ±100 at 0.52 and 0.43 of V6), fitted to 56 Lightroom exports of real Canon portrait edits at Highlights −48 to −100 and Shadows +40 to +100 (mean ΔE 9.5 → 8.7); smaller amounts and the local, coverage-dependent strength measured in #523 remain open. | | LR-BEHAV-DRAGDROP | Drag and drop | P1 | ✅ | `crates/ui-egui/src/lib.rs`, `crates/ui-egui/src/panels/grid.rs` (`drag_feedback`), `crates/ui-egui/src/panels/left.rs` (`drop_target`, `album_drag_over`, `top_level_drop_target`, `drag_auto_scroll`), `crates/ui-egui/src/destination.rs`, `crates/ui-egui/src/widgets.rs` (`context_menu`), `crates/ui-egui/src/widgets/text_field.rs`, `crates/ui-egui/src/tests/carried_right_click.rs`, `crates/ui-egui/src/tests/carried_text_field_menu.rs` | a right-click while photos are carried opens no context menu (every menu opened through `widgets::context_menu`: sidebar rows, grid cells, lists; a text field's own Cut / Copy / Paste menu too); files → app (a drop-target card while they hover, then the import review); grid photos → an album row (adds the selection, with a count badge while dragging); sidebar album / folder rows → a folder (moves it; its name follows the pointer); a drag of albums or grid photos near the top or bottom edge of the sidebar scrolls it (faster nearer the edge, only while the pointer is over the sidebar); when another folder has the same name, the dragged label, the Move question and the toast name the folder it is in (`home (/a)`); an album drop's toast does the same for an album of that name in another album folder (two in the same place have nothing to tell them apart and keep the plain name); only the primary button drags photos and drops them: a right-button drag over a grid cell neither picks photos up nor changes the selection, and a right-button release while photos are dragged neither drops them nor ends the drag | | LR-BEHAV-TOAST | Toast notifications | P1 | ✅ | `crates/ui-egui/src/panels.rs` | | | LR-BEHAV-DIALOGS | Dialogs fit the window | P1 | ✅ | `crates/ui-egui/src/dialogs.rs` (`dialog_body`, `list_height`), `crates/ui-egui/src/tests/dialog_fit.rs`, `crates/ui-egui/src/tests/dialog_copy.rs`, `crates/ui-egui/src/tests/dialogs.rs` (`a_click_outside_closes_the_dialog_when_settings_allow_it`) | a dialog taller than the window (Export on a 1366×768 screen, issue #781) never runs off it: its options scroll while the title bar and the Cancel / confirm row stay on screen (the confirm button names its action: Create, Rename, Create Stacks, Export 3 Photos…, with "OK" kept only for a one-field prompt opened with a command that has no verb, `crates/ui-egui/src/tests/dialog_copy.rs`); lists that scroll on their own (What's New, All Metadata, shortcuts, smart-album rules, credits) get shorter first; dialogs that fit look as before; Import keeps its own resizable, scrolling window; Settings → Dialogs → Close a dialog by clicking outside it (off by default, so a stray click never throws away a dialog's choices): a click pressed and released on the dimmed backdrop closes the dialog like Esc and doesn't reach the panels below, while a drag that ends outside (a slider pulled past the edge) or a click that closes a dropdown keeps it; the import review never closes this way (`clicked_backdrop`); a one-line prompt (Rename Folder, New Folder on Disk, the preset and version names, New Library when its name can't be used, Auto-Tag from Tracklog) the engine refuses stays open with its text and shows the reason in a toast, so the name can be corrected, where it used to close without a word; a New Folder on Disk that works says so (“Created folder “Selects” in “2026/Shoot””, naming the parent by its last two folders as dialogs do) | @@ -803,6 +803,7 @@ Latin stays upright. Advanced Japanese composition remains open. Regression cove | Date | Change | Summary | |---|---|---| | 2026-11-07 | correction | Compressed ORF sensor support withdrawn pending provenance review; embedded preview fallback remains. Coverage regenerated without the removed decoder: 557 verified, 665 unverified, 187 preview-only, 37 unsupported; 94% use-weighted coverage. | +| 2026-11-06 | minor | LR-BEHAV-RENDER-FIDELITY, LR-EDIT-LIGHT-HIGHLIGHTS, LR-EDIT-LIGHT-SHADOWS, LRC-DEV-PROCESS: process V7 eases global Highlights and Shadows off at large amounts, fitted to Lightroom exports of real edits (#523); statuses and counts unchanged | | 2026-11-04 | minor | Compressed ORF support was introduced in #3775; subsequently withdrawn pending provenance review. Earlier clean-room and verification claims are withdrawn; compressed files use embedded previews when available. See [ORF status](orf-compression.md). | | 2026-10-28 | minor | KEY-HIDEPINS ✅ → 🟡: in the Masking panel an unmodified H toggles the mask pins (`view.maskPins`, the View ▸ Show Mask Pins switch) instead of opening Remove; the toggle yields only to an explicit assignment of H itself, a Remove key reassigned to anything else still opens Remove there, and outside Masking — and the full-screen preview, where no panel shows — H keeps its own binding (Remove, by default). Remove's spot pins keep ⇧H as their only hide toggle (`tests/keymap` `h_toggles_the_mask_pins_while_masking`, `a_remapped_remove_key_still_opens_remove_while_masking`, `h_still_toggles_the_pins_when_remove_moves_to_another_key`) | | 2026-11-06 | minor | LR-EDIT-DETAIL-CNR, LRC-DEV-PROCESS: process V6 takes colour noise reduction to the joint method on linear R−Y / B−Y (issue #815); status unchanged | diff --git a/docs/process-versions.md b/docs/process-versions.md index 154906de0b..22dbc44584 100644 --- a/docs/process-versions.md +++ b/docs/process-versions.md @@ -14,7 +14,8 @@ stronger Light sliders, issue #196) without changing a single photo someone has | **V3** | Pixel-scale sharpening (issue #757): Radius uses the original photo’s pixels, Detail controls halo damping, and downsized sources retain a response-matched sharpening band. V1 and V2 keep texture-band sharpening exactly. The sharpen plane is keyed by radius and process and invalidated after noise-reduction changes. The Highlights/Shadows base and tone map are unchanged from V2. | | **V4** | V3 plus calibrated global Contrast (per channel) and Blacks (per-channel/luminance mix) on raws with a camera tone curve. Whites behaves exactly as V2, both signs; its calibration is a planned follow-up. Other sources and local adjustments retain V2 operators. See [calibrated Light operators](light-v3.md). | | **V5** | V4 plus: a raw's tone curve rolls off into white in stops instead of reaching it within about a stop of the sensor's white, so raising Exposure keeps the highlights the sensor recorded (issue #1632). **Camera curve** (the look fitted to the embedded JPEG, or a DNG's `ProfileToneCurve`; `CameraTone`): past its last knot `CameraTone::apply_rolloff` closes the gap to white by `gap / (1 + c·(2^t − 1))` at `t` stops past the knot, with `c` matching the curve's slope there and the gap halving every stop in the end (`tone::ROLLOFF_STOPS`); `ToneMap::camera_rolloff_hdr` builds the table from it. Under V1 to V4 the curve past its last knot (fitted only to camera JPEG tones below 0.85, so 1 to 3 stops below the sensor's white on most photos) closes on white exponentially in linear light: the sensor's white renders at 8-bit 246 to 254 at Exposure 0 and 254 to 255 from Exposure +1. On the 11 CC0 corpus files with a fitted look (8 Sony, 2 Nikon, 1 Fujifilm) it now renders at 239 to 250 at Exposure 0 and 247 to 253 at +1. A DNG curve that reaches white at the sensor's white renders as before. **Generic curve** (raws without a camera curve, `ToneMap::rolloff_hdr`): from half a stop below its white point (`tone::GENERIC_KNEE_STOPS`) the same shoulder takes over, with the extended Reinhard curve's value and slope at the join, where V1 to V4 clip at the white point (scene 1.18 at default settings, ¼ stop above the sensor's white). The sensor's white renders at about 235, 248 and 252 at Exposure 0, +1 and +2 (V1 to V4: 239, 255, 255; the CC0 Canon R8 file and 6 CC0 DNGs without a camera curve). Content past the old clip point, such as a clipped sky, now renders up to 15 codes below white at Exposure 0 and reaches 255 about 5 stops past the sensor's white. Below the last knot or the join, JPEGs and other display-referred sources, and the camera fit itself are unchanged; CPU and GPU share the tone LUT. | -| **V6** (the latest) | V5 plus: colour noise reduction filters the linear colour differences R−Y and B−Y with the joint method (issue #815, `docs/nr-color-joint.md`): edge-aware weights from a denoised guide shared by both differences, anisotropic diffusion over scales, a brake for isolated colour specks; Y is kept exactly. V1 to V5 keep the blurred chromaticity (`local::denoise`). CPU (`local::denoise`) and GPU (`render::denoise`) branch on `local::joint_colour_nr`. Renders with Color 0 are the same as V2's. | +| **V6** | V5 plus: colour noise reduction filters the linear colour differences R−Y and B−Y with the joint method (issue #815, `docs/nr-color-joint.md`): edge-aware weights from a denoised guide shared by both differences, anisotropic diffusion over scales, a brake for isolated colour specks; Y is kept exactly. V1 to V5 keep the blurred chromaticity (`local::denoise`). CPU (`local::denoise`) and GPU (`render::denoise`) branch on `local::joint_colour_nr`. Renders with Color 0 are the same as V2's. | +| **V7** (the latest) | V6 plus: global Highlights and Shadows ease off at large amounts (`finish::tone_slider`): the strength the local tone operator takes is `a / (1 + ease·abs(a))` for `a` = slider / 100, so small amounts are unchanged (slope 1 at 0) and ±100 acts at 0.52 (Highlights, ease 0.92) and 0.43 (Shadows, ease 1.33) of V6's. Fitted to 56 Lightroom exports of real portrait edits of Canon raws (Highlights −48 to −100, Shadows +40 to +100), against which V6 rendered the darkest tones about 6 L* too light and the brightest about 5 L* too dark. Masks keep their linear amounts; amounts between 0 and ±40 had no exports to check. CPU and GPU take the strength from `FinishParams`. Renders with both sliders at 0 are the same as V6's. | ## The rule @@ -110,5 +111,6 @@ extra field and retain their existing cached renders. No cache-version bump is n | Date | Change | Summary | |---|---|---| +| 2026-11-06 | minor | V7: global Highlights and Shadows ease off at large amounts, fitted to Lightroom exports | | 2026-11-05 | minor | V5: a raw's tone curve rolls off into white in stops, so raising Exposure keeps recorded highlights (#1632) | | 2026-10-12 | minor | Calibrated Contrast and Blacks, V2 Whites, resolved-process cache keys and number coordination | diff --git a/docs/whats-new.md b/docs/whats-new.md index ab0f90c033..2929abc095 100644 --- a/docs/whats-new.md +++ b/docs/whats-new.md @@ -2,6 +2,15 @@ ## Unreleased +### Highlights and Shadows closer to Lightroom (process V7) +- Global Highlights and Shadows ease off at large amounts as Lightroom's do (issue #523): ±100 acts at about half of + what it did (0.52 of it for Highlights, 0.43 for Shadows), +52 Shadows at 0.6, and small amounts are as before. + Strong Shadows no longer lift the darkest tones about 6 L* above Lightroom's render of the same edit, nor strong + Highlights pull the brightest about 5 L* below it. Masks keep their amounts. New photos get it; photos edited before + keep their look until Update to Current Process. +- Fitted to 56 Lightroom exports of real portrait edits (Canon EOS R6 and R5 raws): mean ΔE to the exports 9.5 → 8.7, + and on the 16 landscape photos the sidecar fixes of #2239 don't touch, 8.4 → 7.4. + ### Colour noise reduction (process V6) - Colour noise reduction removes colour noise at the raw default 25, where it used to leave most of it, and keeps colour edges at high values instead of bleeding them into fringes (issue #815). It filters the colour differences From 8c9f79cccd9e40f19dc0016e509c7a54044d6a89 Mon Sep 17 00:00:00 2001 From: Pareilart <147240473+Pareilart@users.noreply.github.com> Date: Sat, 7 Nov 2026 11:04:09 +0100 Subject: [PATCH 2/4] LR-BEHAV-RENDER-FIDELITY: V7 eases negative Texture and the Global grading wheel (#523) Two more operators measured against Lightroom exports of real edits, in the same process: - Negative global Texture smooths at 0.67 of V6's strength (finish::texture_slider). At Texture -27, V6 left the 1-8 px detail (difference-of-Gaussian bands of L*) of four full-size exports of Canon EOS R6 edits at 0.87-0.94 of the exports'; 0.67 brings it to 0.94-1.02. Exports resized on export (the R5 ones here) can't be compared this way. - The Global colour-grading wheel tints at 0.45 of the other wheels at the same saturation (colorops::global_wheel). Photos graded Global 10 (three) and 16 (one) came out about +2 b* (and up to +2.8 a*) warmer than the exports; 0.4-0.6 of the tint cancels it. Halving the Highlights wheel (sat 23) moved those photos further from the exports, so the shadows, midtones and highlights wheels stay as they are. Positive Texture, masks and V1 to V6 are unchanged. --- crates/develop/src/settings.rs | 5 +++-- crates/pipeline/src/colorops.rs | 36 ++++++++++++++++++++++++++++++++- crates/pipeline/src/finish.rs | 25 ++++++++++++++++++++++- docs/parity-checklist.md | 6 +++--- docs/process-versions.md | 4 ++-- docs/whats-new.md | 3 +++ 6 files changed, 70 insertions(+), 9 deletions(-) diff --git a/crates/develop/src/settings.rs b/crates/develop/src/settings.rs index cf32cabf1f..4f33843ef8 100644 --- a/crates/develop/src/settings.rs +++ b/crates/develop/src/settings.rs @@ -96,8 +96,9 @@ pub enum Process { /// V5, with colour noise reduction on the linear colour differences R−Y and B−Y, leaving Y alone, with /// edge-aware weights from a denoised guide and a brake for isolated colour specks (issue #815). V6, - /// V6, with global Highlights and Shadows answering large amounts as Lightroom does: compressively, fitted to - /// Lightroom exports of real edits (`lightcraft_pipeline::finish::tone_slider`). + /// V6, calibrated against Lightroom exports of real edits: global Highlights and Shadows answer large amounts + /// compressively (`lightcraft_pipeline::finish::tone_slider`), a negative Texture smooths less + /// (`finish::texture_slider`) and the Global grading wheel tints less (`colorops::global_wheel`). V7, } diff --git a/crates/pipeline/src/colorops.rs b/crates/pipeline/src/colorops.rs index ff32779313..131e92e42e 100644 --- a/crates/pipeline/src/colorops.rs +++ b/crates/pipeline/src/colorops.rs @@ -146,6 +146,18 @@ pub struct ColorOps { pub skin: f32, } +/// How much of V6's tint the global colour-grading wheel keeps under V7. +pub const GLOBAL_WHEEL_V7: f32 = 0.45; + +/// The global wheel: from V7 its tint is [`GLOBAL_WHEEL_V7`] of the other wheels' at the same saturation. On Lightroom +/// exports of real edits with Global saturation 10 (three photos) and 16 (one), V6 left the photos about +2 b* and up +/// to +2.8 a* warmer than the exports, and 0.4 to 0.6 of the tint cancels it; the shadows and highlights wheels +/// measured right as they are (Highlights 23 got further from the exports when halved). Its luminance is unchanged. +fn global_wheel(w: &lightcraft_develop::Wheel, process: lightcraft_develop::Process) -> WheelK { + let k = wheel(w); + if process >= lightcraft_develop::Process::V7 { WheelK { a: k.a * GLOBAL_WHEEL_V7, b: k.b * GLOBAL_WHEEL_V7, ..k } } else { k } +} + fn wheel(w: &lightcraft_develop::Wheel) -> WheelK { let h = oklch_hue_of_srgb_hue(w.hue); let s = (w.sat / 100.0) as f32 * 0.09; @@ -171,7 +183,7 @@ impl ColorOps { bw: crate::is_bw(s).then(|| s.bw_mix.bands().map(|v| (v / 100.0) as f32)), grading: (!g.is_neutral()).then(|| { ( - [wheel(&g.shadows), wheel(&g.midtones), wheel(&g.highlights), wheel(&g.global)], + [wheel(&g.shadows), wheel(&g.midtones), wheel(&g.highlights), global_wheel(&g.global, s.process.process())], (g.blending / 100.0) as f32, (g.balance / 100.0) as f32, ) @@ -455,4 +467,26 @@ mod tests { assert!(dark[2] > dark[0]); assert!((bright[2] - bright[0]).abs() < 0.02); } + + #[test] + fn v7_global_wheel_tints_at_its_calibrated_share() { + use lightcraft_develop::Process; + let tint = |p: Process, global: bool| { + let mut s = DevelopSettings { process: p.version(), ..Default::default() }; + let w = lightcraft_develop::Wheel { hue: 35.0, sat: 16.0, lum: 0.0 }; + if global { + s.grading.global = w + } else { + s.grading.shadows = w + } + let ops = ColorOps::new(&s); + let (wheels, _, _) = ops.grading.expect("grading"); + let k = wheels[if global { 3 } else { 0 }]; + (k.a, k.b) + }; + let (v6, v7) = (tint(Process::V6, true), tint(Process::V7, true)); + assert!(v6.0 != 0.0 && v6.1 != 0.0); + assert!((v7.0 - v6.0 * GLOBAL_WHEEL_V7).abs() < 1e-7 && (v7.1 - v6.1 * GLOBAL_WHEEL_V7).abs() < 1e-7); + assert_eq!(tint(Process::V6, false), tint(Process::V7, false), "the shadows wheel is unchanged"); + } } diff --git a/crates/pipeline/src/finish.rs b/crates/pipeline/src/finish.rs index 3634cb9d84..074aad4b98 100644 --- a/crates/pipeline/src/finish.rs +++ b/crates/pipeline/src/finish.rs @@ -249,7 +249,7 @@ impl FinishParams { let FinishParamsInput { settings: s, frame, info, image_size: (w, h), px_per_long, air_pre, space } = input; let effects = s.section_enabled("effects"); let (clar, tex, dehaze) = if effects { - ((s.effects.clarity / 100.0) as f32, (s.effects.texture / 100.0) as f32, (s.effects.dehaze / 100.0) as f32) + ((s.effects.clarity / 100.0) as f32, texture_slider(s.effects.texture, s.process.process()), (s.effects.dehaze / 100.0) as f32) } else { (0.0, 0.0, 0.0) }; @@ -348,6 +348,19 @@ pub fn tone_slider(value: f64, ease: f64, process: lightcraft_develop::Process) (a / (1.0 + ease * a.abs())) as f32 } +/// How much of V6's strength a global negative Texture keeps under V7. +pub const NEGATIVE_TEXTURE_V7: f64 = 0.67; + +/// The global Texture slider (−100..100) as the strength of the texture band (−1..1). +/// +/// From V7 a negative amount smooths at [`NEGATIVE_TEXTURE_V7`] of V6's strength: at Texture −27, V6 left the +/// 1–8 px detail of four full-size Lightroom exports of real Canon EOS R6 edits at 0.87–0.94 of the exports' and +/// 0.67 of the amount brings it to 0.94–1.02. Positive amounts, masks and V1 to V6 are unchanged. +pub fn texture_slider(value: f64, process: lightcraft_develop::Process) -> f32 { + let t = value / 100.0; + if process >= lightcraft_develop::Process::V7 && t < 0.0 { (t * NEGATIVE_TEXTURE_V7) as f32 } else { t as f32 } +} + /// The base tone map (scene → display luminance, with Contrast, Whites and Blacks) of `s`'s /// rendering process. This is where a new tone model branches: a retuned default tone curve (issue /// #146) is a new [`Process`] with its own arm here, and V1's arm stays as it is, so photos edited @@ -953,6 +966,16 @@ mod tests { } } + #[test] + fn v7_eases_negative_texture_only() { + for v in [-100.0, -27.0, 0.0, 35.0] { + assert_eq!(texture_slider(v, Process::V6), (v / 100.0) as f32); + } + assert!((texture_slider(-27.0, Process::V7) - (-0.27 * NEGATIVE_TEXTURE_V7) as f32).abs() < 1e-7); + assert_eq!(texture_slider(35.0, Process::V7), 0.35); + assert_eq!(texture_slider(0.0, Process::V7), 0.0); + } + #[test] fn v7_shadows_lift_less_than_v6() { let src = lightcraft_raster::Rgb32f::from_fn(64, 8, |x, _| [0.002 * 1.12f32.powi(x as i32); 3]); diff --git a/docs/parity-checklist.md b/docs/parity-checklist.md index 0704ecccd3..1b4cf4ec0d 100644 --- a/docs/parity-checklist.md +++ b/docs/parity-checklist.md @@ -199,8 +199,8 @@ differences and missing bindings are in [ui-parity.md](ui-parity.md#shortcuts). | LR-EDIT-COLOR-MIXER-HSL | 8-band colour mixer | P0 | ✅ | `ctl:mixer.*` | no targeted (drag-on-image) mode | | LR-EDIT-COLOR-MIXER-BW | B&W mix | P1 | ✅ | `ctl:bw.*`, `cmd:develop.autoBwMix` | eight bands; Auto pushes each hue band's colourful pixels away from the mean lightness (own rule) | | LR-EDIT-COLOR-POINTCOLOR | Point colour | P1 | ✅ | `cmd:pointColor.pick`, `cmd:pointColor.delete` | | -| LR-EDIT-COLOR-GRADING | Colour grading wheels | P0 | ✅ | `ctl:grading.*`, `crates/ui-egui/src/panels/edit.rs` (`grading`) | 3-Way / Shadows / Midtones / Highlights tabs; a range tab shows one large wheel with Hue, Saturation and Luminance sliders; Blending and Balance in every tab; 3-Way shows the hovered wheel's hue and saturation; every wheel marks its neutral centre; wheel modifiers as in Lightroom: Shift-drag keeps the puck's hue and changes saturation only (the spoke is the guide; a puck at the centre has no hue, so it takes the angle where the pointer pressed), Cmd/Ctrl-drag keeps the saturation and changes hue only (the circle is the guide), Alt/Option-drag fine-adjusts at 0.1x and combines with either lock, and a hover tooltip lists them (issues #559, #1160; tests `shift_dragging_across_the_tangent_keeps_the_hue_and_moves_saturation`, `shift_drag_keeps_the_pucks_hue_wherever_the_pointer_grabs`, `cmd_drag_keeps_the_saturation_and_changes_only_the_hue`, `alt_drag_fine_adjusts_to_a_tenth_of_the_pointers_travel`, `alt_works_with_shift_and_cmd_constraints` in `crates/ui-egui/src/tests/grading.rs`); a wheel drag holds the pointer as in Lightroom: hidden while dragging (the puck follows the mouse's travel; on macOS the pointer is locked in place), back where the button went down on release, and given back at once on Esc, a lost window focus or a wheel that goes away mid-drag; the browser can't move the pointer, so there it only shows again where the drag ended (issue #1899; tests `a_held_wheel_follows_the_mouses_motion_not_where_the_pointer_sits`, `a_wheel_drag_hides_the_pointer_and_releasing_puts_it_back_where_it_was_pressed`, `escape_or_losing_focus_gives_the_pointer_back_mid_drag`, `a_wheel_that_goes_away_mid_drag_gives_the_pointer_back`); the large wheel adds 25/50/75 % saturation rings (issue #559); each wheel's eye hides its effect for viewing only (`RenderJob::with_hidden_grading`, not saved, export unaffected) (issue #737). No Global wheel tab yet | -| LR-EDIT-EFFECTS-TEXTURE | Texture | P0 | ✅ | `ctl:effects.texture` | | +| LR-EDIT-COLOR-GRADING | Colour grading wheels | P0 | ✅ | `ctl:grading.*`, `crates/ui-egui/src/panels/edit.rs` (`grading`) | 3-Way / Shadows / Midtones / Highlights tabs; a range tab shows one large wheel with Hue, Saturation and Luminance sliders; Blending and Balance in every tab; 3-Way shows the hovered wheel's hue and saturation; every wheel marks its neutral centre; wheel modifiers as in Lightroom: Shift-drag keeps the puck's hue and changes saturation only (the spoke is the guide; a puck at the centre has no hue, so it takes the angle where the pointer pressed), Cmd/Ctrl-drag keeps the saturation and changes hue only (the circle is the guide), Alt/Option-drag fine-adjusts at 0.1x and combines with either lock, and a hover tooltip lists them (issues #559, #1160; tests `shift_dragging_across_the_tangent_keeps_the_hue_and_moves_saturation`, `shift_drag_keeps_the_pucks_hue_wherever_the_pointer_grabs`, `cmd_drag_keeps_the_saturation_and_changes_only_the_hue`, `alt_drag_fine_adjusts_to_a_tenth_of_the_pointers_travel`, `alt_works_with_shift_and_cmd_constraints` in `crates/ui-egui/src/tests/grading.rs`); a wheel drag holds the pointer as in Lightroom: hidden while dragging (the puck follows the mouse's travel; on macOS the pointer is locked in place), back where the button went down on release, and given back at once on Esc, a lost window focus or a wheel that goes away mid-drag; the browser can't move the pointer, so there it only shows again where the drag ended (issue #1899; tests `a_held_wheel_follows_the_mouses_motion_not_where_the_pointer_sits`, `a_wheel_drag_hides_the_pointer_and_releasing_puts_it_back_where_it_was_pressed`, `escape_or_losing_focus_gives_the_pointer_back_mid_drag`, `a_wheel_that_goes_away_mid_drag_gives_the_pointer_back`); the large wheel adds 25/50/75 % saturation rings (issue #559); each wheel's eye hides its effect for viewing only (`RenderJob::with_hidden_grading`, not saved, export unaffected) (issue #737). No Global wheel tab yet; from process V7 the Global wheel tints at 0.45 of the other wheels at the same saturation, measured against Lightroom exports (`colorops::global_wheel`) | +| LR-EDIT-EFFECTS-TEXTURE | Texture | P0 | ✅ | `ctl:effects.texture` | From process V7 a negative amount smooths at 0.67 of V6's strength, measured against full-size Lightroom exports at −27 (`finish::texture_slider`) | | LR-EDIT-EFFECTS-CLARITY | Clarity | P0 | ✅ | `ctl:effects.clarity` | | | LR-EDIT-EFFECTS-DEHAZE | Dehaze | P0 | ✅ | `ctl:effects.dehaze` | | | LR-EDIT-EFFECTS-VIGNETTE | Post-crop vignette | P0 | ✅ | `ctl:vignette.*`, `crates/pipeline/src/finish.rs`, `crates/ui-egui/src/panels/edit.rs` | style picker (Highlight / Color / Paint) in the Effects section | @@ -803,7 +803,7 @@ Latin stays upright. Advanced Japanese composition remains open. Regression cove | Date | Change | Summary | |---|---|---| | 2026-11-07 | correction | Compressed ORF sensor support withdrawn pending provenance review; embedded preview fallback remains. Coverage regenerated without the removed decoder: 557 verified, 665 unverified, 187 preview-only, 37 unsupported; 94% use-weighted coverage. | -| 2026-11-06 | minor | LR-BEHAV-RENDER-FIDELITY, LR-EDIT-LIGHT-HIGHLIGHTS, LR-EDIT-LIGHT-SHADOWS, LRC-DEV-PROCESS: process V7 eases global Highlights and Shadows off at large amounts, fitted to Lightroom exports of real edits (#523); statuses and counts unchanged | +| 2026-11-06 | minor | LR-BEHAV-RENDER-FIDELITY, LR-EDIT-LIGHT-HIGHLIGHTS, LR-EDIT-LIGHT-SHADOWS, LR-EDIT-EFFECTS-TEXTURE, LR-EDIT-COLOR-GRADING, LRC-DEV-PROCESS: process V7 eases global Highlights and Shadows off at large amounts, negative Texture and the Global grading wheel act less, fitted to Lightroom exports of real edits (#523); statuses and counts unchanged | | 2026-11-04 | minor | Compressed ORF support was introduced in #3775; subsequently withdrawn pending provenance review. Earlier clean-room and verification claims are withdrawn; compressed files use embedded previews when available. See [ORF status](orf-compression.md). | | 2026-10-28 | minor | KEY-HIDEPINS ✅ → 🟡: in the Masking panel an unmodified H toggles the mask pins (`view.maskPins`, the View ▸ Show Mask Pins switch) instead of opening Remove; the toggle yields only to an explicit assignment of H itself, a Remove key reassigned to anything else still opens Remove there, and outside Masking — and the full-screen preview, where no panel shows — H keeps its own binding (Remove, by default). Remove's spot pins keep ⇧H as their only hide toggle (`tests/keymap` `h_toggles_the_mask_pins_while_masking`, `a_remapped_remove_key_still_opens_remove_while_masking`, `h_still_toggles_the_pins_when_remove_moves_to_another_key`) | | 2026-11-06 | minor | LR-EDIT-DETAIL-CNR, LRC-DEV-PROCESS: process V6 takes colour noise reduction to the joint method on linear R−Y / B−Y (issue #815); status unchanged | diff --git a/docs/process-versions.md b/docs/process-versions.md index 22dbc44584..16c84bb2ae 100644 --- a/docs/process-versions.md +++ b/docs/process-versions.md @@ -15,7 +15,7 @@ stronger Light sliders, issue #196) without changing a single photo someone has | **V4** | V3 plus calibrated global Contrast (per channel) and Blacks (per-channel/luminance mix) on raws with a camera tone curve. Whites behaves exactly as V2, both signs; its calibration is a planned follow-up. Other sources and local adjustments retain V2 operators. See [calibrated Light operators](light-v3.md). | | **V5** | V4 plus: a raw's tone curve rolls off into white in stops instead of reaching it within about a stop of the sensor's white, so raising Exposure keeps the highlights the sensor recorded (issue #1632). **Camera curve** (the look fitted to the embedded JPEG, or a DNG's `ProfileToneCurve`; `CameraTone`): past its last knot `CameraTone::apply_rolloff` closes the gap to white by `gap / (1 + c·(2^t − 1))` at `t` stops past the knot, with `c` matching the curve's slope there and the gap halving every stop in the end (`tone::ROLLOFF_STOPS`); `ToneMap::camera_rolloff_hdr` builds the table from it. Under V1 to V4 the curve past its last knot (fitted only to camera JPEG tones below 0.85, so 1 to 3 stops below the sensor's white on most photos) closes on white exponentially in linear light: the sensor's white renders at 8-bit 246 to 254 at Exposure 0 and 254 to 255 from Exposure +1. On the 11 CC0 corpus files with a fitted look (8 Sony, 2 Nikon, 1 Fujifilm) it now renders at 239 to 250 at Exposure 0 and 247 to 253 at +1. A DNG curve that reaches white at the sensor's white renders as before. **Generic curve** (raws without a camera curve, `ToneMap::rolloff_hdr`): from half a stop below its white point (`tone::GENERIC_KNEE_STOPS`) the same shoulder takes over, with the extended Reinhard curve's value and slope at the join, where V1 to V4 clip at the white point (scene 1.18 at default settings, ¼ stop above the sensor's white). The sensor's white renders at about 235, 248 and 252 at Exposure 0, +1 and +2 (V1 to V4: 239, 255, 255; the CC0 Canon R8 file and 6 CC0 DNGs without a camera curve). Content past the old clip point, such as a clipped sky, now renders up to 15 codes below white at Exposure 0 and reaches 255 about 5 stops past the sensor's white. Below the last knot or the join, JPEGs and other display-referred sources, and the camera fit itself are unchanged; CPU and GPU share the tone LUT. | | **V6** | V5 plus: colour noise reduction filters the linear colour differences R−Y and B−Y with the joint method (issue #815, `docs/nr-color-joint.md`): edge-aware weights from a denoised guide shared by both differences, anisotropic diffusion over scales, a brake for isolated colour specks; Y is kept exactly. V1 to V5 keep the blurred chromaticity (`local::denoise`). CPU (`local::denoise`) and GPU (`render::denoise`) branch on `local::joint_colour_nr`. Renders with Color 0 are the same as V2's. | -| **V7** (the latest) | V6 plus: global Highlights and Shadows ease off at large amounts (`finish::tone_slider`): the strength the local tone operator takes is `a / (1 + ease·abs(a))` for `a` = slider / 100, so small amounts are unchanged (slope 1 at 0) and ±100 acts at 0.52 (Highlights, ease 0.92) and 0.43 (Shadows, ease 1.33) of V6's. Fitted to 56 Lightroom exports of real portrait edits of Canon raws (Highlights −48 to −100, Shadows +40 to +100), against which V6 rendered the darkest tones about 6 L* too light and the brightest about 5 L* too dark. Masks keep their linear amounts; amounts between 0 and ±40 had no exports to check. CPU and GPU take the strength from `FinishParams`. Renders with both sliders at 0 are the same as V6's. | +| **V7** (the latest) | V6 plus: global Highlights and Shadows ease off at large amounts (`finish::tone_slider`): the strength the local tone operator takes is `a / (1 + ease·abs(a))` for `a` = slider / 100, so small amounts are unchanged (slope 1 at 0) and ±100 acts at 0.52 (Highlights, ease 0.92) and 0.43 (Shadows, ease 1.33) of V6's. Fitted to 56 Lightroom exports of real portrait edits of Canon raws (Highlights −48 to −100, Shadows +40 to +100), against which V6 rendered the darkest tones about 6 L* too light and the brightest about 5 L* too dark. Masks keep their linear amounts; amounts between 0 and ±40 had no exports to check. CPU and GPU take the strength from `FinishParams`. Renders with both sliders at 0 are the same as V6's. Also from V7: a negative global Texture smooths at 0.67 of V6's strength (`finish::texture_slider`; at −27, V6 left the 1–8 px detail of four full-size Lightroom exports of Canon EOS R6 edits at 0.87–0.94 of theirs, and 0.67 brings it to 0.94–1.02); and the global colour-grading wheel tints at 0.45 of the other wheels at the same saturation (`colorops::global_wheel`; V6 left photos graded Global 10 and 16 about +2 b* warmer than the exports). Positive Texture, the shadows, midtones and highlights wheels and masks are unchanged. | ## The rule @@ -111,6 +111,6 @@ extra field and retain their existing cached renders. No cache-version bump is n | Date | Change | Summary | |---|---|---| -| 2026-11-06 | minor | V7: global Highlights and Shadows ease off at large amounts, fitted to Lightroom exports | +| 2026-11-06 | minor | V7: global Highlights and Shadows ease off at large amounts, negative Texture and the global grading wheel act less, fitted to Lightroom exports | | 2026-11-05 | minor | V5: a raw's tone curve rolls off into white in stops, so raising Exposure keeps recorded highlights (#1632) | | 2026-10-12 | minor | Calibrated Contrast and Blacks, V2 Whites, resolved-process cache keys and number coordination | diff --git a/docs/whats-new.md b/docs/whats-new.md index 2929abc095..60d8eeb724 100644 --- a/docs/whats-new.md +++ b/docs/whats-new.md @@ -8,6 +8,9 @@ Strong Shadows no longer lift the darkest tones about 6 L* above Lightroom's render of the same edit, nor strong Highlights pull the brightest about 5 L* below it. Masks keep their amounts. New photos get it; photos edited before keep their look until Update to Current Process. +- A negative Texture smooths at two thirds of what it did: at −27 it took about 8 % more fine detail than Lightroom + does. The global colour-grading wheel tints at 0.45 of what it did: a Global tint of 16 made a photo visibly pinker + and warmer than Lightroom's (+2.8 a*, +2.2 b*). The shadows, midtones and highlights wheels are unchanged. - Fitted to 56 Lightroom exports of real portrait edits (Canon EOS R6 and R5 raws): mean ΔE to the exports 9.5 → 8.7, and on the 16 landscape photos the sidecar fixes of #2239 don't touch, 8.4 → 7.4. From bb6bfe970f41cb30a672b0f802505dcea7202213 Mon Sep 17 00:00:00 2001 From: Pareilart <147240473+Pareilart@users.noreply.github.com> Date: Sat, 7 Nov 2026 16:21:11 +0100 Subject: [PATCH 3/4] LR-BEHAV-RENDER-FIDELITY: V7's tone easing stated in slider units, and checked through FinishParams (#523) Small amounts ease off too (Shadows +10 at 0.88 of V6's): the release notes, process versions and tone_slider's doc said they were unchanged. The checklist rows define a as slider / 100, and the LRC-DEV-PROCESS row lists V6 and V7. A test reads the calibrated strengths from FinishParams. From review. --- crates/pipeline/src/finish.rs | 33 +++++++++++++++++++++++++++++++-- docs/parity-checklist.md | 6 +++--- docs/process-versions.md | 2 +- docs/whats-new.md | 2 +- 4 files changed, 36 insertions(+), 7 deletions(-) diff --git a/crates/pipeline/src/finish.rs b/crates/pipeline/src/finish.rs index 074aad4b98..14a14c46ed 100644 --- a/crates/pipeline/src/finish.rs +++ b/crates/pipeline/src/finish.rs @@ -332,7 +332,8 @@ pub const SHADOWS_EASE: f64 = 1.33; /// A global Highlights or Shadows slider (−100..100) as the strength the local tone operator takes (−1..1). /// /// Up to V6 the strength is the slider's, linearly. From V7 it eases off as the amount grows, `a / (1 + ease·|a|)` -/// for `a` = slider / 100: unchanged for small amounts (slope 1 at 0), and at most `1 / (1 + ease)` of V6's at ±100. +/// for `a` = slider / 100: slope 1 at 0, so small amounts change least (Shadows +10 acts at 0.88 of V6's), and +/// `1 / (1 + ease)` of V6's at ±100. /// Fitted to 56 Lightroom exports of real portrait edits (Canon raws, Highlights −48 to −100, Shadows +40 to +100): /// V6 left their darkest tones about 6 L* above the exports and their brightest about 5 below; the amounts that /// cancel that are about 0.6 of V6's at Shadows +52 and 0.43 at +100, and 0.52 at Highlights −100. Masks keep @@ -952,7 +953,8 @@ mod tests { } let v7 = |v: f64, ease: f64| tone_slider(v, ease, Process::V7); assert_eq!(v7(0.0, SHADOWS_EASE), 0.0); - assert!((v7(1.0, SHADOWS_EASE) - 0.01).abs() < 2e-4, "small amounts are as before"); + assert!((v7(1.0, SHADOWS_EASE) - 0.01).abs() < 2e-4, "slope 1 at 0"); + assert!((v7(10.0, SHADOWS_EASE) / 0.1 - 0.883).abs() < 0.005, "Shadows +10 eases off by about 12 %"); assert!((v7(100.0, SHADOWS_EASE) - 0.43).abs() < 0.005); assert!((v7(52.0, SHADOWS_EASE) - 0.307).abs() < 0.005); assert!((v7(-100.0, HIGHLIGHTS_EASE) + 0.52).abs() < 0.005); @@ -994,6 +996,33 @@ mod tests { assert!(v7 > base && v7 < v6, "Shadows still lifts the darks, less than V6: none {base}, V6 {v6}, V7 {v7}"); } + #[test] + fn a_render_takes_the_calibrated_tone_strengths() { + // the strengths that matched the Lightroom exports: Shadows +52 → ~0.31 (0.6 of V6's), +100 → 0.43, + // Highlights −100 → −0.52; V6 takes the slider's + let params = |p: Process, highlights: f64, shadows: f64| { + let mut s = DevelopSettings { process: p.version(), ..Default::default() }; + (s.light.highlights, s.light.shadows) = (highlights, shadows); + let frame = crate::geometry::Frame::new(64, 8, &s, false); + let info = SourceInfo::default(); + let fp = FinishParams::new(FinishParamsInput { + settings: &s, + frame: &frame, + info: &info, + image_size: (64, 8), + px_per_long: 64.0, + air_pre: 0.0, + space: OutputSpace::Srgb, + }); + (fp.hl, fp.sh) + }; + for (highlights, shadows, hl, sh) in [(0.0, 52.0, 0.0, 0.307), (-100.0, 100.0, -0.521, 0.429)] { + let (got_hl, got_sh) = params(Process::V7, highlights, shadows); + assert!((got_hl - hl).abs() < 0.002 && (got_sh - sh).abs() < 0.002, "V7 {highlights}/{shadows}: {got_hl}, {got_sh}"); + assert_eq!(params(Process::V6, highlights, shadows), ((highlights / 100.0) as f32, (shadows / 100.0) as f32)); + } + } + #[test] fn grain_noise_is_finite_for_degenerate_coordinates() { for (x, y) in [(f32::NAN, 1.0), (1.0, f32::INFINITY), (f32::NEG_INFINITY, f32::NAN)] { diff --git a/docs/parity-checklist.md b/docs/parity-checklist.md index 1b4cf4ec0d..3de476cc4e 100644 --- a/docs/parity-checklist.md +++ b/docs/parity-checklist.md @@ -181,8 +181,8 @@ differences and missing bindings are in [ui-parity.md](ui-parity.md#shortcuts). | LR-EDIT-HDR-MODE | HDR editing | P2 | ✅ | `cmd:develop.hdr`, `ctl:hdr.maxEv`, `crates/ui-egui/src/panels/edit.rs` (`hdr_row`) | HDR button next to B&W in the Edit panel header, as Lightroom (Visualize HDR and the headroom limit in the Light panel while it's on, sliding open and shut with the histogram's layout change); see Q. HDR | | LR-EDIT-LIGHT-EXPOSURE | Exposure | P0 | ✅ | `ctl:light.exposure` | Alt/Option-drag shows highlight clipping (black, clipped channels in colour) | | LR-EDIT-LIGHT-CONTRAST | Contrast | P0 | 🟡 | `ctl:light.contrast` | From process V4, global Contrast on the camera-look path is fitted per channel in ProPhoto with the sRGB transfer. Check response error 0.136 to 0.038 stops on six held-out Sony photos. Other sources and local adjustments retain V2; broader parity remains unverified (`docs/light-v3.md`). | -| LR-EDIT-LIGHT-HIGHLIGHTS | Highlights | P0 | ✅ | `ctl:light.highlights`, `crates/raw/src/highlight.rs` | sensor-clipped highlights stay neutral when Highlights (or Exposure, Whites) darkens them: fully clipped content is rebuilt to the neutral of the colour model applied after it, partly clipped content takes its colour from reliable unclipped content nearby (not from dark objects, lens fringes or another surface beside it) and white where there is none, and pale partly clipped content (a white sky) turns white on its way to clipping (#523); binned previews and thumbnails decide clipping per sample before averaging (`develop_binned_masked`, `highlight::reconstruct_masked`), so a block with one clipped specular sample keeps its mean instead of jumping to the clip level, which reconstruction turned into green speckles at 500 px (#548) From process V2 the Highlights/Shadows base is the edge-aware filter of the 0.15 %-of-long-edge median of log luminance: twigs and fine texture take their surroundings' shift, so bright areas keep their local contrast as with Exposure (V1's base kept ~0.6 of it at −100, #632); region edges stay sharp. Alt/Option-drag shows highlight clipping From process V7 the global amount eases off as it grows (`a / (1 + 0.92·abs(a))`), fitted to Lightroom exports (#523). | -| LR-EDIT-LIGHT-SHADOWS | Shadows | P0 | ✅ | `ctl:light.shadows` | From process V2, the same base as Highlights: dark areas keep their local contrast when lifted (#632). Alt/Option-drag shows shadow clipping (white, clipped channels in colour) From process V7 the global amount eases off as it grows (`a / (1 + 1.33·abs(a))`), fitted to Lightroom exports (#523). | +| LR-EDIT-LIGHT-HIGHLIGHTS | Highlights | P0 | ✅ | `ctl:light.highlights`, `crates/raw/src/highlight.rs` | sensor-clipped highlights stay neutral when Highlights (or Exposure, Whites) darkens them: fully clipped content is rebuilt to the neutral of the colour model applied after it, partly clipped content takes its colour from reliable unclipped content nearby (not from dark objects, lens fringes or another surface beside it) and white where there is none, and pale partly clipped content (a white sky) turns white on its way to clipping (#523); binned previews and thumbnails decide clipping per sample before averaging (`develop_binned_masked`, `highlight::reconstruct_masked`), so a block with one clipped specular sample keeps its mean instead of jumping to the clip level, which reconstruction turned into green speckles at 500 px (#548) From process V2 the Highlights/Shadows base is the edge-aware filter of the 0.15 %-of-long-edge median of log luminance: twigs and fine texture take their surroundings' shift, so bright areas keep their local contrast as with Exposure (V1's base kept ~0.6 of it at −100, #632); region edges stay sharp. Alt/Option-drag shows highlight clipping From process V7 the global amount eases off as it grows: the operator's strength is `a / (1 + 0.92·abs(a))` for `a` = slider / 100 (0.52 at −100, against 1 up to V6), fitted to Lightroom exports (#523). | +| LR-EDIT-LIGHT-SHADOWS | Shadows | P0 | ✅ | `ctl:light.shadows` | From process V2, the same base as Highlights: dark areas keep their local contrast when lifted (#632). Alt/Option-drag shows shadow clipping (white, clipped channels in colour) From process V7 the global amount eases off as it grows: the operator's strength is `a / (1 + 1.33·abs(a))` for `a` = slider / 100 (0.43 at +100, against 1 up to V6), fitted to Lightroom exports (#523). | | LR-EDIT-LIGHT-WHITES | Whites | P0 | 🟡 | `ctl:light.whites`, `crates/pipeline/src/visualize.rs` | V4 preserves V2 Whites for both signs. Calibration is a planned follow-up; measured V2 check response error is 0.075 stops on the Sony test photos (`docs/light-v3.md`). Alt/Option-drag shows highlight clipping (black, clipped channels in colour) | | LR-EDIT-LIGHT-BLACKS | Blacks | P0 | 🟡 | `ctl:light.blacks`, `crates/pipeline/src/visualize.rs` | From process V4, global Blacks on the camera-look path uses a fitted per-channel/luminance mix. Check response error 0.424 to 0.077 stops on six held-out Sony photos; deepest tones still differ. Other sources and local adjustments retain V2 (`docs/light-v3.md`). Alt/Option-drag shows shadow clipping (white, clipped channels in colour) | | LR-EDIT-LIGHT-CURVE-PARAM | Parametric curve | P0 | ✅ | `ctl:curve.highlights`, `ctl:curve.lights`, `ctl:curve.darks`, `ctl:curve.shadows`, `ctl:curve.split*`, `crates/pipeline/src/curve.rs` | the graph draws the renderer's own curve model; dragging the line moves the region under the pointer (one undo step) | @@ -732,7 +732,7 @@ From `08-lightroom-classic-extras.md` (Classic-only features) and part 2 of `06- | LRC-DEV-CALIB | Calibration panel | P1 | ✅ | `ctl:calibration.*` | | | LRC-DEV-TAT | Targeted adjustment tools | P1 | ✅ | `cmd:develop.targeted` (`target`: curve / hue / sat / lum) | | | LRC-DEV-DEFAULTS | Per-camera raw defaults | P1 | ✅ | `cmd:library.preferences` (`camera`, `import.perCamera`), `crates/ui-egui/src/dialogs/settings.rs` | Settings → Import: raw default and per-camera presets | -| LRC-DEV-PROCESS | Process versions, Update to Current Process | P1 | ✅ | `cmd:develop.updateProcess`, `cmd:develop.reset`, `cmd:develop.get`, `crates/develop/src/settings.rs`, `crates/pipeline/src/finish.rs`, `docs/process-versions.md` | Each photo keeps its saved rendering process. V1 is legacy, V2 preserves Highlights/Shadows detail, V3 is pixel-scale sharpening, V4 calibrates camera-look Contrast and Blacks, V5 rolls raw tone curves off into white in stops (#1632). New photos and Reset use the latest; Update is one undoable step and never downgrades a future number. Copy/paste/sync preserve the receiving process. Persistent render keys include the resolved process from V3 on; V1/V2 keys remain unchanged. | +| LRC-DEV-PROCESS | Process versions, Update to Current Process | P1 | ✅ | `cmd:develop.updateProcess`, `cmd:develop.reset`, `cmd:develop.get`, `crates/develop/src/settings.rs`, `crates/pipeline/src/finish.rs`, `docs/process-versions.md` | Each photo keeps its saved rendering process. V1 is legacy, V2 preserves Highlights/Shadows detail, V3 is pixel-scale sharpening, V4 calibrates camera-look Contrast and Blacks, V5 rolls raw tone curves off into white in stops (#1632), V6 takes colour noise reduction to the joint method (#815), V7 eases global Highlights and Shadows off at large amounts and has negative Texture and the Global grading wheel act less, as measured against Lightroom exports (#523). New photos and Reset use the latest; Update is one undoable step and never downgrades a future number. Copy/paste/sync preserve the receiving process. Persistent render keys include the resolved process from V3 on; V1/V2 keys remain unchanged. | | LRC-DEV-VIEWOPTIONS | Develop view options | P2 | 🟡 | `cmd:view.viewOptions`, `crates/ui-egui/src/dialogs/settings.rs` (`view_options`) | View ▸ View Options… (⌘J), the Loupe View part: Show Info Overlay with Info 1 / Info 2, and the three lines of each (none, file name, capture date, dimensions, exposure, camera, lens, camera + lens) with Use Defaults; Show Briefly When Photo Changes under each Info (one at most): with the overlay off, that Info shows for 3 s each time the loupe changes photo; General's Show message when loading or rendering photos (on by default; off, the loupe does not say "Rendering…"); applied as they change, saved with the app settings; `view.viewOptions {info1, info2, briefly, loupeMessages}` sets them for agents. Not yet: the Grid View tab, more fields (ratings, metadata, copy name), the video-frame option | | LRC-DEV-LOUPEOVERLAY | Loupe overlay: layout image | P2 | 🟡 | `cmd:view.chooseLayoutImage`, `cmd:view.layoutImage`, `cmd:view.layoutImageOpacity`, `cmd:view.layoutImageMatte`, `crates/ui-egui/src/panels/layout_overlay.rs` | View ▸ Loupe Overlay: a PNG with transparency (a cover layout, a banner's safe areas) fitted and centred over the loupe photo, following zoom and pan; opacity and matte (the photo darkened outside the graphic's box) in steps; ⌥⌘O shows / hides it; read off the UI thread; saved with the UI state. Not yet: the Grid and Guides overlays, moving and resizing the layout with ⌘ held, free opacity / matte sliders | | LRC-DEV-VIDEO | Video frame capture | P2 | ⬜ | | | diff --git a/docs/process-versions.md b/docs/process-versions.md index 16c84bb2ae..9e66a0a92a 100644 --- a/docs/process-versions.md +++ b/docs/process-versions.md @@ -15,7 +15,7 @@ stronger Light sliders, issue #196) without changing a single photo someone has | **V4** | V3 plus calibrated global Contrast (per channel) and Blacks (per-channel/luminance mix) on raws with a camera tone curve. Whites behaves exactly as V2, both signs; its calibration is a planned follow-up. Other sources and local adjustments retain V2 operators. See [calibrated Light operators](light-v3.md). | | **V5** | V4 plus: a raw's tone curve rolls off into white in stops instead of reaching it within about a stop of the sensor's white, so raising Exposure keeps the highlights the sensor recorded (issue #1632). **Camera curve** (the look fitted to the embedded JPEG, or a DNG's `ProfileToneCurve`; `CameraTone`): past its last knot `CameraTone::apply_rolloff` closes the gap to white by `gap / (1 + c·(2^t − 1))` at `t` stops past the knot, with `c` matching the curve's slope there and the gap halving every stop in the end (`tone::ROLLOFF_STOPS`); `ToneMap::camera_rolloff_hdr` builds the table from it. Under V1 to V4 the curve past its last knot (fitted only to camera JPEG tones below 0.85, so 1 to 3 stops below the sensor's white on most photos) closes on white exponentially in linear light: the sensor's white renders at 8-bit 246 to 254 at Exposure 0 and 254 to 255 from Exposure +1. On the 11 CC0 corpus files with a fitted look (8 Sony, 2 Nikon, 1 Fujifilm) it now renders at 239 to 250 at Exposure 0 and 247 to 253 at +1. A DNG curve that reaches white at the sensor's white renders as before. **Generic curve** (raws without a camera curve, `ToneMap::rolloff_hdr`): from half a stop below its white point (`tone::GENERIC_KNEE_STOPS`) the same shoulder takes over, with the extended Reinhard curve's value and slope at the join, where V1 to V4 clip at the white point (scene 1.18 at default settings, ¼ stop above the sensor's white). The sensor's white renders at about 235, 248 and 252 at Exposure 0, +1 and +2 (V1 to V4: 239, 255, 255; the CC0 Canon R8 file and 6 CC0 DNGs without a camera curve). Content past the old clip point, such as a clipped sky, now renders up to 15 codes below white at Exposure 0 and reaches 255 about 5 stops past the sensor's white. Below the last knot or the join, JPEGs and other display-referred sources, and the camera fit itself are unchanged; CPU and GPU share the tone LUT. | | **V6** | V5 plus: colour noise reduction filters the linear colour differences R−Y and B−Y with the joint method (issue #815, `docs/nr-color-joint.md`): edge-aware weights from a denoised guide shared by both differences, anisotropic diffusion over scales, a brake for isolated colour specks; Y is kept exactly. V1 to V5 keep the blurred chromaticity (`local::denoise`). CPU (`local::denoise`) and GPU (`render::denoise`) branch on `local::joint_colour_nr`. Renders with Color 0 are the same as V2's. | -| **V7** (the latest) | V6 plus: global Highlights and Shadows ease off at large amounts (`finish::tone_slider`): the strength the local tone operator takes is `a / (1 + ease·abs(a))` for `a` = slider / 100, so small amounts are unchanged (slope 1 at 0) and ±100 acts at 0.52 (Highlights, ease 0.92) and 0.43 (Shadows, ease 1.33) of V6's. Fitted to 56 Lightroom exports of real portrait edits of Canon raws (Highlights −48 to −100, Shadows +40 to +100), against which V6 rendered the darkest tones about 6 L* too light and the brightest about 5 L* too dark. Masks keep their linear amounts; amounts between 0 and ±40 had no exports to check. CPU and GPU take the strength from `FinishParams`. Renders with both sliders at 0 are the same as V6's. Also from V7: a negative global Texture smooths at 0.67 of V6's strength (`finish::texture_slider`; at −27, V6 left the 1–8 px detail of four full-size Lightroom exports of Canon EOS R6 edits at 0.87–0.94 of theirs, and 0.67 brings it to 0.94–1.02); and the global colour-grading wheel tints at 0.45 of the other wheels at the same saturation (`colorops::global_wheel`; V6 left photos graded Global 10 and 16 about +2 b* warmer than the exports). Positive Texture, the shadows, midtones and highlights wheels and masks are unchanged. | +| **V7** (the latest) | V6 plus: global Highlights and Shadows ease off at large amounts (`finish::tone_slider`): the strength the local tone operator takes is `a / (1 + ease·abs(a))` for `a` = slider / 100, so the easing grows with the amount (slope 1 at 0; Shadows +10 acts at 0.88 of V6's, Highlights −10 at 0.92) and ±100 acts at 0.52 (Highlights, ease 0.92) and 0.43 (Shadows, ease 1.33) of V6's. Fitted to 56 Lightroom exports of real portrait edits of Canon raws (Highlights −48 to −100, Shadows +40 to +100), against which V6 rendered the darkest tones about 6 L* too light and the brightest about 5 L* too dark. Masks keep their linear amounts; amounts between 0 and ±40 had no exports to check. CPU and GPU take the strength from `FinishParams`. Renders with both sliders at 0 are the same as V6's. Also from V7: a negative global Texture smooths at 0.67 of V6's strength (`finish::texture_slider`; at −27, V6 left the 1–8 px detail of four full-size Lightroom exports of Canon EOS R6 edits at 0.87–0.94 of theirs, and 0.67 brings it to 0.94–1.02); and the global colour-grading wheel tints at 0.45 of the other wheels at the same saturation (`colorops::global_wheel`; V6 left photos graded Global 10 and 16 about +2 b* warmer than the exports). Positive Texture, the shadows, midtones and highlights wheels and masks are unchanged. | ## The rule diff --git a/docs/whats-new.md b/docs/whats-new.md index 60d8eeb724..8c83602a62 100644 --- a/docs/whats-new.md +++ b/docs/whats-new.md @@ -4,7 +4,7 @@ ### Highlights and Shadows closer to Lightroom (process V7) - Global Highlights and Shadows ease off at large amounts as Lightroom's do (issue #523): ±100 acts at about half of - what it did (0.52 of it for Highlights, 0.43 for Shadows), +52 Shadows at 0.6, and small amounts are as before. + what it did (0.52 of it for Highlights, 0.43 for Shadows), +52 Shadows at 0.6, and small amounts less so (about 12 % less at +10 Shadows, 8 % at −10 Highlights). Strong Shadows no longer lift the darkest tones about 6 L* above Lightroom's render of the same edit, nor strong Highlights pull the brightest about 5 L* below it. Masks keep their amounts. New photos get it; photos edited before keep their look until Update to Current Process. From 8dd85d5048d9c0e47c276ab036caa705988f27dd Mon Sep 17 00:00:00 2001 From: Pareilart <147240473+Pareilart@users.noreply.github.com> Date: Sat, 7 Nov 2026 18:27:56 +0100 Subject: [PATCH 4/4] LR-BEHAV-RENDER-FIDELITY: V7 leaves global Highlights linear (#523) Single-slider Lightroom exports posted on the pull request show Lightroom's response to Highlights alone close to linear and dependent on the frame's content, where V6 under-responds and the easing made -100 worse. On the combined edits it was fitted to, the easing stood in for that content dependence (or for Whites, which those edits barely vary), so V7 keeps the Shadows easing, negative Texture and the Global wheel, and Highlights takes the slider's amount as before. Those exports: mean dE 9.53 -> 9.00 (8.70 with the Highlights easing). --- crates/develop/src/settings.rs | 2 +- crates/pipeline/src/finish.rs | 30 +++++++++++++++--------------- docs/gaps.md | 2 +- docs/parity-checklist.md | 8 ++++---- docs/process-versions.md | 4 ++-- docs/whats-new.md | 9 ++++----- 6 files changed, 27 insertions(+), 28 deletions(-) diff --git a/crates/develop/src/settings.rs b/crates/develop/src/settings.rs index 4f33843ef8..fa48e4babc 100644 --- a/crates/develop/src/settings.rs +++ b/crates/develop/src/settings.rs @@ -96,7 +96,7 @@ pub enum Process { /// V5, with colour noise reduction on the linear colour differences R−Y and B−Y, leaving Y alone, with /// edge-aware weights from a denoised guide and a brake for isolated colour specks (issue #815). V6, - /// V6, calibrated against Lightroom exports of real edits: global Highlights and Shadows answer large amounts + /// V6, calibrated against Lightroom exports of real edits: global Shadows answers large amounts /// compressively (`lightcraft_pipeline::finish::tone_slider`), a negative Texture smooths less /// (`finish::texture_slider`) and the Global grading wheel tints less (`colorops::global_wheel`). V7, diff --git a/crates/pipeline/src/finish.rs b/crates/pipeline/src/finish.rs index 14a14c46ed..0c7423da88 100644 --- a/crates/pipeline/src/finish.rs +++ b/crates/pipeline/src/finish.rs @@ -284,7 +284,7 @@ impl FinishParams { out_luma: space.luma(), out_trc: space.trc(), proof: None, - hl: tone_slider(s.light.highlights, HIGHLIGHTS_EASE, s.process.process()), + hl: (s.light.highlights / 100.0) as f32, sh: tone_slider(s.light.shadows, SHADOWS_EASE, s.process.process()), clar, tex, @@ -323,21 +323,21 @@ impl FinishParams { } } -/// How much a full global Highlights (−100 or +100) eases off from V6's strength under V7: it acts at -/// `1 / (1 + HIGHLIGHTS_EASE)` of it. -pub const HIGHLIGHTS_EASE: f64 = 0.92; -/// The same for global Shadows. +/// How much a full global Shadows (−100 or +100) eases off from V6's strength under V7: it acts at +/// `1 / (1 + SHADOWS_EASE)` of it. pub const SHADOWS_EASE: f64 = 1.33; -/// A global Highlights or Shadows slider (−100..100) as the strength the local tone operator takes (−1..1). +/// A global Shadows slider (−100..100) as the strength the local tone operator takes (−1..1), with `ease` = +/// [`SHADOWS_EASE`]. /// /// Up to V6 the strength is the slider's, linearly. From V7 it eases off as the amount grows, `a / (1 + ease·|a|)` /// for `a` = slider / 100: slope 1 at 0, so small amounts change least (Shadows +10 acts at 0.88 of V6's), and /// `1 / (1 + ease)` of V6's at ±100. -/// Fitted to 56 Lightroom exports of real portrait edits (Canon raws, Highlights −48 to −100, Shadows +40 to +100): -/// V6 left their darkest tones about 6 L* above the exports and their brightest about 5 below; the amounts that -/// cancel that are about 0.6 of V6's at Shadows +52 and 0.43 at +100, and 0.52 at Highlights −100. Masks keep -/// their linear amounts. +/// Fitted to 56 Lightroom exports of real portrait edits (Canon raws, Shadows +40 to +100): V6 left their darkest +/// tones about 6 L* above the exports; the amounts that cancel that are about 0.6 of V6's at +52 and 0.43 at +100. +/// Global Highlights stays linear in every process: on the same edits V6 renders their brightest tones about 5 L* +/// too dark, but Lightroom's response to Highlights alone is close to linear and depends on the frame's content +/// (single-slider exports, #3923), which a fixed easing would not follow. Masks keep their linear amounts. pub fn tone_slider(value: f64, ease: f64, process: lightcraft_develop::Process) -> f32 { if process < lightcraft_develop::Process::V7 { return (value / 100.0) as f32; @@ -957,12 +957,12 @@ mod tests { assert!((v7(10.0, SHADOWS_EASE) / 0.1 - 0.883).abs() < 0.005, "Shadows +10 eases off by about 12 %"); assert!((v7(100.0, SHADOWS_EASE) - 0.43).abs() < 0.005); assert!((v7(52.0, SHADOWS_EASE) - 0.307).abs() < 0.005); - assert!((v7(-100.0, HIGHLIGHTS_EASE) + 0.52).abs() < 0.005); + assert!((v7(-100.0, SHADOWS_EASE) + 0.43).abs() < 0.005, "symmetric"); assert_eq!(v7(250.0, SHADOWS_EASE), v7(100.0, SHADOWS_EASE), "clamped to the slider's range"); assert_eq!(v7(f64::NAN, SHADOWS_EASE), 0.0); let mut last = -1.0; for i in -100..=100 { - let y = v7(i as f64, HIGHLIGHTS_EASE); + let y = v7(i as f64, SHADOWS_EASE); assert!(y > last, "monotonic at {i}"); last = y; } @@ -998,8 +998,8 @@ mod tests { #[test] fn a_render_takes_the_calibrated_tone_strengths() { - // the strengths that matched the Lightroom exports: Shadows +52 → ~0.31 (0.6 of V6's), +100 → 0.43, - // Highlights −100 → −0.52; V6 takes the slider's + // the strengths that matched the Lightroom exports: Shadows +52 → ~0.31 (0.6 of V6's), +100 → 0.43; + // Highlights stays the slider's, and V6 takes the slider's for both let params = |p: Process, highlights: f64, shadows: f64| { let mut s = DevelopSettings { process: p.version(), ..Default::default() }; (s.light.highlights, s.light.shadows) = (highlights, shadows); @@ -1016,7 +1016,7 @@ mod tests { }); (fp.hl, fp.sh) }; - for (highlights, shadows, hl, sh) in [(0.0, 52.0, 0.0, 0.307), (-100.0, 100.0, -0.521, 0.429)] { + for (highlights, shadows, hl, sh) in [(0.0, 52.0, 0.0, 0.307), (-100.0, 100.0, -1.0, 0.429), (-48.0, 0.0, -0.48, 0.0)] { let (got_hl, got_sh) = params(Process::V7, highlights, shadows); assert!((got_hl - hl).abs() < 0.002 && (got_sh - sh).abs() < 0.002, "V7 {highlights}/{shadows}: {got_hl}, {got_sh}"); assert_eq!(params(Process::V6, highlights, shadows), ((highlights / 100.0) as f32, (shadows / 100.0) as f32)); diff --git a/docs/gaps.md b/docs/gaps.md index 02322f0f04..51e7ac14a4 100644 --- a/docs/gaps.md +++ b/docs/gaps.md @@ -91,7 +91,7 @@ Beta-blocking gaps (B) total **~230–430 h**; with the stability and platform w | Date | Change | Summary | |---|---|---| | 2026-11-07 | correction | Compressed ORF sensor support withdrawn pending provenance review; embedded preview fallback remains. Coverage regenerated without the removed decoder: 557 verified, 665 unverified, 187 preview-only, 37 unsupported; 94% use-weighted coverage. | -| 2026-11-06 | minor | Gap 3: process V7 eases global Highlights and Shadows off at large amounts, fitted to 56 Lightroom exports of real Canon edits (mean ΔE 9.5 → 8.7, #523); the gap stays open and hours are unchanged | +| 2026-11-06 | minor | Gap 3: process V7 eases global Shadows off at large amounts, and negative Texture and the Global grading wheel act less, fitted to 56 Lightroom exports of real Canon edits (mean ΔE 9.5 → 9.0, #523); the gap stays open and hours are unchanged | | 2026-11-04 | minor | Compressed ORF support was introduced in #3775; subsequently withdrawn pending provenance review. Earlier clean-room and verification claims are withdrawn; compressed files use embedded previews when available. See [ORF status](orf-compression.md). | | 2026-11-05 | minor | Gap 3: process V5 rolls a raw's tone curve off into white in stops, so raising Exposure keeps the highlights the sensor recorded (#1632); the gap stays open (no Lightroom comparison) and hours are unchanged | | 2026-10-27 | minor | Gap 26: the loupe shows built previews (they were rendered again), photos ahead and the whole view are prepared in the background with settings per mode; gap not closed | diff --git a/docs/parity-checklist.md b/docs/parity-checklist.md index 3de476cc4e..e9f5dc58b8 100644 --- a/docs/parity-checklist.md +++ b/docs/parity-checklist.md @@ -181,7 +181,7 @@ differences and missing bindings are in [ui-parity.md](ui-parity.md#shortcuts). | LR-EDIT-HDR-MODE | HDR editing | P2 | ✅ | `cmd:develop.hdr`, `ctl:hdr.maxEv`, `crates/ui-egui/src/panels/edit.rs` (`hdr_row`) | HDR button next to B&W in the Edit panel header, as Lightroom (Visualize HDR and the headroom limit in the Light panel while it's on, sliding open and shut with the histogram's layout change); see Q. HDR | | LR-EDIT-LIGHT-EXPOSURE | Exposure | P0 | ✅ | `ctl:light.exposure` | Alt/Option-drag shows highlight clipping (black, clipped channels in colour) | | LR-EDIT-LIGHT-CONTRAST | Contrast | P0 | 🟡 | `ctl:light.contrast` | From process V4, global Contrast on the camera-look path is fitted per channel in ProPhoto with the sRGB transfer. Check response error 0.136 to 0.038 stops on six held-out Sony photos. Other sources and local adjustments retain V2; broader parity remains unverified (`docs/light-v3.md`). | -| LR-EDIT-LIGHT-HIGHLIGHTS | Highlights | P0 | ✅ | `ctl:light.highlights`, `crates/raw/src/highlight.rs` | sensor-clipped highlights stay neutral when Highlights (or Exposure, Whites) darkens them: fully clipped content is rebuilt to the neutral of the colour model applied after it, partly clipped content takes its colour from reliable unclipped content nearby (not from dark objects, lens fringes or another surface beside it) and white where there is none, and pale partly clipped content (a white sky) turns white on its way to clipping (#523); binned previews and thumbnails decide clipping per sample before averaging (`develop_binned_masked`, `highlight::reconstruct_masked`), so a block with one clipped specular sample keeps its mean instead of jumping to the clip level, which reconstruction turned into green speckles at 500 px (#548) From process V2 the Highlights/Shadows base is the edge-aware filter of the 0.15 %-of-long-edge median of log luminance: twigs and fine texture take their surroundings' shift, so bright areas keep their local contrast as with Exposure (V1's base kept ~0.6 of it at −100, #632); region edges stay sharp. Alt/Option-drag shows highlight clipping From process V7 the global amount eases off as it grows: the operator's strength is `a / (1 + 0.92·abs(a))` for `a` = slider / 100 (0.52 at −100, against 1 up to V6), fitted to Lightroom exports (#523). | +| LR-EDIT-LIGHT-HIGHLIGHTS | Highlights | P0 | ✅ | `ctl:light.highlights`, `crates/raw/src/highlight.rs` | sensor-clipped highlights stay neutral when Highlights (or Exposure, Whites) darkens them: fully clipped content is rebuilt to the neutral of the colour model applied after it, partly clipped content takes its colour from reliable unclipped content nearby (not from dark objects, lens fringes or another surface beside it) and white where there is none, and pale partly clipped content (a white sky) turns white on its way to clipping (#523); binned previews and thumbnails decide clipping per sample before averaging (`develop_binned_masked`, `highlight::reconstruct_masked`), so a block with one clipped specular sample keeps its mean instead of jumping to the clip level, which reconstruction turned into green speckles at 500 px (#548) From process V2 the Highlights/Shadows base is the edge-aware filter of the 0.15 %-of-long-edge median of log luminance: twigs and fine texture take their surroundings' shift, so bright areas keep their local contrast as with Exposure (V1's base kept ~0.6 of it at −100, #632); region edges stay sharp. Alt/Option-drag shows highlight clipping | | LR-EDIT-LIGHT-SHADOWS | Shadows | P0 | ✅ | `ctl:light.shadows` | From process V2, the same base as Highlights: dark areas keep their local contrast when lifted (#632). Alt/Option-drag shows shadow clipping (white, clipped channels in colour) From process V7 the global amount eases off as it grows: the operator's strength is `a / (1 + 1.33·abs(a))` for `a` = slider / 100 (0.43 at +100, against 1 up to V6), fitted to Lightroom exports (#523). | | LR-EDIT-LIGHT-WHITES | Whites | P0 | 🟡 | `ctl:light.whites`, `crates/pipeline/src/visualize.rs` | V4 preserves V2 Whites for both signs. Calibration is a planned follow-up; measured V2 check response error is 0.075 stops on the Sony test photos (`docs/light-v3.md`). Alt/Option-drag shows highlight clipping (black, clipped channels in colour) | | LR-EDIT-LIGHT-BLACKS | Blacks | P0 | 🟡 | `ctl:light.blacks`, `crates/pipeline/src/visualize.rs` | From process V4, global Blacks on the camera-look path uses a fitted per-channel/luminance mix. Check response error 0.424 to 0.077 stops on six held-out Sony photos; deepest tones still differ. Other sources and local adjustments retain V2 (`docs/light-v3.md`). Alt/Option-drag shows shadow clipping (white, clipped channels in colour) | @@ -467,7 +467,7 @@ differences and missing bindings are in [ui-parity.md](ui-parity.md#shortcuts). | LR-BEHAV-OFFLINE | Offline editing | P1 | ✅ | | local-first: everything works offline | | LR-BEHAV-WEB-SAFETY | Library safety in the browser build | P1 | 🟡 | `cmd:file.backupLibrary`, `cmd:file.restoreLibrary`, `apps/lightcraft-web/src/safety.rs`, `apps/lightcraft-web/src/backup.rs`, `apps/lightcraft-web/src/files.rs` | web only (experimental): Back Up Library (zip of the catalog and every stored original) and a non-destructive Restore; failed saves show as unsaved and are retried; a photo that can't be stored isn't added; one tab per library (Web Locks); notices for storage that isn't persistent and for a library that can't open; `?reset` asks first; a panic shows a message. Missing: `?safe` start, deleting originals of removed photos, zip64 (backups > 4 GB) | | LR-BEHAV-GPU | GPU acceleration | P0 | ✅ | `crates/gpu/src/render.rs`, `cmd:app.gpu`, `docs/gpu-pipeline.md`, `crates/ui-egui/src/panels/notices.rs` | CPU fallback per render on device limits, out of memory, device errors / loss, incomplete or black results (`perf.gpuReason`, `perf.gpuFallback`; each render reports its own reason — `lightcraft_gpu::try_render`, `gpuFallback` per exported file — issue #675); short submissions for slow iGPUs; backend choice (DX12 only on Windows, `LIGHTCRAFT_GPU_BACKEND` / `WGPU_BACKEND`), device created after the window opens, crash sentinel (issue #136); a GPU lost while LightCraft runs (driver reset) stops it with that message and turns GPU rendering off for the next start, which says why (issue #1337; the window's renderer can't survive the lost device); quitting waits (up to 2 s) for renders in flight and starts no new GPU work, so none is inside the driver when the process exits (`crates/gpu/src/exit.rs`, issue #620; seen crashing only on Linux + NVIDIA, other drivers unverified); with GPU rendering on and no adapter found at all (e.g. no Vulkan loader on NixOS outside `nix develop`), the desktop app says once per session that it renders on the CPU and points to Help ▸ System Info (`gpu_notice`; not when the GPU is turned off or only a software adapter exists); no tiling beyond the buffer limit (CPU) | -| LR-BEHAV-RENDER-FIDELITY | Rendering matches Lightroom | P1 | 🟡 | `crates/pipeline/src/lib.rs`, `crates/pipeline/src/tone.rs` | Process V4 calibrates global camera-look Contrast and Blacks against black-box Lightroom exports of Sony ILCE-7CR photos. Held-out response errors are 0.038 and 0.077 stops; V1/V2 keep their rendering. Whites retains V2 and awaits a follow-up. Exposure, Highlights/Shadows, other operators and broader camera coverage remain open (`docs/light-v3.md`). From process V5 a raw's tone curve rolls off into white in stops (past a camera curve's last fitted knot, or from half a stop below the generic curve's white point instead of clipping), so Exposure +1 and +2 keep the highlights the sensor recorded: on 12 CC0 corpus raws and 6 CC0 DNGs on the generic curve, unclipped pixels whose luminance renders at 254 or more fall from up to 22.5 % to 0 at +1 EV and from up to 35 % to at most 0.03 % at +2 EV, apart from one sky that is mostly at the clip (#1632). Not compared with Lightroom's output From process V7 global Highlights and Shadows ease off at large amounts (`finish::tone_slider`, ±100 at 0.52 and 0.43 of V6), fitted to 56 Lightroom exports of real Canon portrait edits at Highlights −48 to −100 and Shadows +40 to +100 (mean ΔE 9.5 → 8.7); smaller amounts and the local, coverage-dependent strength measured in #523 remain open. | +| LR-BEHAV-RENDER-FIDELITY | Rendering matches Lightroom | P1 | 🟡 | `crates/pipeline/src/lib.rs`, `crates/pipeline/src/tone.rs` | Process V4 calibrates global camera-look Contrast and Blacks against black-box Lightroom exports of Sony ILCE-7CR photos. Held-out response errors are 0.038 and 0.077 stops; V1/V2 keep their rendering. Whites retains V2 and awaits a follow-up. Exposure, Highlights/Shadows, other operators and broader camera coverage remain open (`docs/light-v3.md`). From process V5 a raw's tone curve rolls off into white in stops (past a camera curve's last fitted knot, or from half a stop below the generic curve's white point instead of clipping), so Exposure +1 and +2 keep the highlights the sensor recorded: on 12 CC0 corpus raws and 6 CC0 DNGs on the generic curve, unclipped pixels whose luminance renders at 254 or more fall from up to 22.5 % to 0 at +1 EV and from up to 35 % to at most 0.03 % at +2 EV, apart from one sky that is mostly at the clip (#1632). Not compared with Lightroom's output From process V7 global Shadows eases off at large amounts (`finish::tone_slider`, +100 at 0.43 of V6), fitted to 56 Lightroom exports of real Canon portrait edits at Shadows +40 to +100; with negative Texture and the Global wheel, mean ΔE on those exports 9.5 → 9.0. Global Highlights stays linear: on those edits V6 renders the brightest tones about 5 L* too dark, but single-slider exports show Lightroom's Highlights response close to linear and dependent on the frame's content (#3923), so that coverage-dependent strength, and smaller Shadows amounts, remain open. | | LR-BEHAV-DRAGDROP | Drag and drop | P1 | ✅ | `crates/ui-egui/src/lib.rs`, `crates/ui-egui/src/panels/grid.rs` (`drag_feedback`), `crates/ui-egui/src/panels/left.rs` (`drop_target`, `album_drag_over`, `top_level_drop_target`, `drag_auto_scroll`), `crates/ui-egui/src/destination.rs`, `crates/ui-egui/src/widgets.rs` (`context_menu`), `crates/ui-egui/src/widgets/text_field.rs`, `crates/ui-egui/src/tests/carried_right_click.rs`, `crates/ui-egui/src/tests/carried_text_field_menu.rs` | a right-click while photos are carried opens no context menu (every menu opened through `widgets::context_menu`: sidebar rows, grid cells, lists; a text field's own Cut / Copy / Paste menu too); files → app (a drop-target card while they hover, then the import review); grid photos → an album row (adds the selection, with a count badge while dragging); sidebar album / folder rows → a folder (moves it; its name follows the pointer); a drag of albums or grid photos near the top or bottom edge of the sidebar scrolls it (faster nearer the edge, only while the pointer is over the sidebar); when another folder has the same name, the dragged label, the Move question and the toast name the folder it is in (`home (/a)`); an album drop's toast does the same for an album of that name in another album folder (two in the same place have nothing to tell them apart and keep the plain name); only the primary button drags photos and drops them: a right-button drag over a grid cell neither picks photos up nor changes the selection, and a right-button release while photos are dragged neither drops them nor ends the drag | | LR-BEHAV-TOAST | Toast notifications | P1 | ✅ | `crates/ui-egui/src/panels.rs` | | | LR-BEHAV-DIALOGS | Dialogs fit the window | P1 | ✅ | `crates/ui-egui/src/dialogs.rs` (`dialog_body`, `list_height`), `crates/ui-egui/src/tests/dialog_fit.rs`, `crates/ui-egui/src/tests/dialog_copy.rs`, `crates/ui-egui/src/tests/dialogs.rs` (`a_click_outside_closes_the_dialog_when_settings_allow_it`) | a dialog taller than the window (Export on a 1366×768 screen, issue #781) never runs off it: its options scroll while the title bar and the Cancel / confirm row stay on screen (the confirm button names its action: Create, Rename, Create Stacks, Export 3 Photos…, with "OK" kept only for a one-field prompt opened with a command that has no verb, `crates/ui-egui/src/tests/dialog_copy.rs`); lists that scroll on their own (What's New, All Metadata, shortcuts, smart-album rules, credits) get shorter first; dialogs that fit look as before; Import keeps its own resizable, scrolling window; Settings → Dialogs → Close a dialog by clicking outside it (off by default, so a stray click never throws away a dialog's choices): a click pressed and released on the dimmed backdrop closes the dialog like Esc and doesn't reach the panels below, while a drag that ends outside (a slider pulled past the edge) or a click that closes a dropdown keeps it; the import review never closes this way (`clicked_backdrop`); a one-line prompt (Rename Folder, New Folder on Disk, the preset and version names, New Library when its name can't be used, Auto-Tag from Tracklog) the engine refuses stays open with its text and shows the reason in a toast, so the name can be corrected, where it used to close without a word; a New Folder on Disk that works says so (“Created folder “Selects” in “2026/Shoot””, naming the parent by its last two folders as dialogs do) | @@ -732,7 +732,7 @@ From `08-lightroom-classic-extras.md` (Classic-only features) and part 2 of `06- | LRC-DEV-CALIB | Calibration panel | P1 | ✅ | `ctl:calibration.*` | | | LRC-DEV-TAT | Targeted adjustment tools | P1 | ✅ | `cmd:develop.targeted` (`target`: curve / hue / sat / lum) | | | LRC-DEV-DEFAULTS | Per-camera raw defaults | P1 | ✅ | `cmd:library.preferences` (`camera`, `import.perCamera`), `crates/ui-egui/src/dialogs/settings.rs` | Settings → Import: raw default and per-camera presets | -| LRC-DEV-PROCESS | Process versions, Update to Current Process | P1 | ✅ | `cmd:develop.updateProcess`, `cmd:develop.reset`, `cmd:develop.get`, `crates/develop/src/settings.rs`, `crates/pipeline/src/finish.rs`, `docs/process-versions.md` | Each photo keeps its saved rendering process. V1 is legacy, V2 preserves Highlights/Shadows detail, V3 is pixel-scale sharpening, V4 calibrates camera-look Contrast and Blacks, V5 rolls raw tone curves off into white in stops (#1632), V6 takes colour noise reduction to the joint method (#815), V7 eases global Highlights and Shadows off at large amounts and has negative Texture and the Global grading wheel act less, as measured against Lightroom exports (#523). New photos and Reset use the latest; Update is one undoable step and never downgrades a future number. Copy/paste/sync preserve the receiving process. Persistent render keys include the resolved process from V3 on; V1/V2 keys remain unchanged. | +| LRC-DEV-PROCESS | Process versions, Update to Current Process | P1 | ✅ | `cmd:develop.updateProcess`, `cmd:develop.reset`, `cmd:develop.get`, `crates/develop/src/settings.rs`, `crates/pipeline/src/finish.rs`, `docs/process-versions.md` | Each photo keeps its saved rendering process. V1 is legacy, V2 preserves Highlights/Shadows detail, V3 is pixel-scale sharpening, V4 calibrates camera-look Contrast and Blacks, V5 rolls raw tone curves off into white in stops (#1632), V6 takes colour noise reduction to the joint method (#815), V7 eases global Shadows off at large amounts and has negative Texture and the Global grading wheel act less, as measured against Lightroom exports (#523). New photos and Reset use the latest; Update is one undoable step and never downgrades a future number. Copy/paste/sync preserve the receiving process. Persistent render keys include the resolved process from V3 on; V1/V2 keys remain unchanged. | | LRC-DEV-VIEWOPTIONS | Develop view options | P2 | 🟡 | `cmd:view.viewOptions`, `crates/ui-egui/src/dialogs/settings.rs` (`view_options`) | View ▸ View Options… (⌘J), the Loupe View part: Show Info Overlay with Info 1 / Info 2, and the three lines of each (none, file name, capture date, dimensions, exposure, camera, lens, camera + lens) with Use Defaults; Show Briefly When Photo Changes under each Info (one at most): with the overlay off, that Info shows for 3 s each time the loupe changes photo; General's Show message when loading or rendering photos (on by default; off, the loupe does not say "Rendering…"); applied as they change, saved with the app settings; `view.viewOptions {info1, info2, briefly, loupeMessages}` sets them for agents. Not yet: the Grid View tab, more fields (ratings, metadata, copy name), the video-frame option | | LRC-DEV-LOUPEOVERLAY | Loupe overlay: layout image | P2 | 🟡 | `cmd:view.chooseLayoutImage`, `cmd:view.layoutImage`, `cmd:view.layoutImageOpacity`, `cmd:view.layoutImageMatte`, `crates/ui-egui/src/panels/layout_overlay.rs` | View ▸ Loupe Overlay: a PNG with transparency (a cover layout, a banner's safe areas) fitted and centred over the loupe photo, following zoom and pan; opacity and matte (the photo darkened outside the graphic's box) in steps; ⌥⌘O shows / hides it; read off the UI thread; saved with the UI state. Not yet: the Grid and Guides overlays, moving and resizing the layout with ⌘ held, free opacity / matte sliders | | LRC-DEV-VIDEO | Video frame capture | P2 | ⬜ | | | @@ -803,7 +803,7 @@ Latin stays upright. Advanced Japanese composition remains open. Regression cove | Date | Change | Summary | |---|---|---| | 2026-11-07 | correction | Compressed ORF sensor support withdrawn pending provenance review; embedded preview fallback remains. Coverage regenerated without the removed decoder: 557 verified, 665 unverified, 187 preview-only, 37 unsupported; 94% use-weighted coverage. | -| 2026-11-06 | minor | LR-BEHAV-RENDER-FIDELITY, LR-EDIT-LIGHT-HIGHLIGHTS, LR-EDIT-LIGHT-SHADOWS, LR-EDIT-EFFECTS-TEXTURE, LR-EDIT-COLOR-GRADING, LRC-DEV-PROCESS: process V7 eases global Highlights and Shadows off at large amounts, negative Texture and the Global grading wheel act less, fitted to Lightroom exports of real edits (#523); statuses and counts unchanged | +| 2026-11-06 | minor | LR-BEHAV-RENDER-FIDELITY, LR-EDIT-LIGHT-SHADOWS, LR-EDIT-EFFECTS-TEXTURE, LR-EDIT-COLOR-GRADING, LRC-DEV-PROCESS: process V7 eases global Shadows off at large amounts, negative Texture and the Global grading wheel act less, fitted to Lightroom exports of real edits (#523); statuses and counts unchanged | | 2026-11-04 | minor | Compressed ORF support was introduced in #3775; subsequently withdrawn pending provenance review. Earlier clean-room and verification claims are withdrawn; compressed files use embedded previews when available. See [ORF status](orf-compression.md). | | 2026-10-28 | minor | KEY-HIDEPINS ✅ → 🟡: in the Masking panel an unmodified H toggles the mask pins (`view.maskPins`, the View ▸ Show Mask Pins switch) instead of opening Remove; the toggle yields only to an explicit assignment of H itself, a Remove key reassigned to anything else still opens Remove there, and outside Masking — and the full-screen preview, where no panel shows — H keeps its own binding (Remove, by default). Remove's spot pins keep ⇧H as their only hide toggle (`tests/keymap` `h_toggles_the_mask_pins_while_masking`, `a_remapped_remove_key_still_opens_remove_while_masking`, `h_still_toggles_the_pins_when_remove_moves_to_another_key`) | | 2026-11-06 | minor | LR-EDIT-DETAIL-CNR, LRC-DEV-PROCESS: process V6 takes colour noise reduction to the joint method on linear R−Y / B−Y (issue #815); status unchanged | diff --git a/docs/process-versions.md b/docs/process-versions.md index 9e66a0a92a..17a4c5a313 100644 --- a/docs/process-versions.md +++ b/docs/process-versions.md @@ -15,7 +15,7 @@ stronger Light sliders, issue #196) without changing a single photo someone has | **V4** | V3 plus calibrated global Contrast (per channel) and Blacks (per-channel/luminance mix) on raws with a camera tone curve. Whites behaves exactly as V2, both signs; its calibration is a planned follow-up. Other sources and local adjustments retain V2 operators. See [calibrated Light operators](light-v3.md). | | **V5** | V4 plus: a raw's tone curve rolls off into white in stops instead of reaching it within about a stop of the sensor's white, so raising Exposure keeps the highlights the sensor recorded (issue #1632). **Camera curve** (the look fitted to the embedded JPEG, or a DNG's `ProfileToneCurve`; `CameraTone`): past its last knot `CameraTone::apply_rolloff` closes the gap to white by `gap / (1 + c·(2^t − 1))` at `t` stops past the knot, with `c` matching the curve's slope there and the gap halving every stop in the end (`tone::ROLLOFF_STOPS`); `ToneMap::camera_rolloff_hdr` builds the table from it. Under V1 to V4 the curve past its last knot (fitted only to camera JPEG tones below 0.85, so 1 to 3 stops below the sensor's white on most photos) closes on white exponentially in linear light: the sensor's white renders at 8-bit 246 to 254 at Exposure 0 and 254 to 255 from Exposure +1. On the 11 CC0 corpus files with a fitted look (8 Sony, 2 Nikon, 1 Fujifilm) it now renders at 239 to 250 at Exposure 0 and 247 to 253 at +1. A DNG curve that reaches white at the sensor's white renders as before. **Generic curve** (raws without a camera curve, `ToneMap::rolloff_hdr`): from half a stop below its white point (`tone::GENERIC_KNEE_STOPS`) the same shoulder takes over, with the extended Reinhard curve's value and slope at the join, where V1 to V4 clip at the white point (scene 1.18 at default settings, ¼ stop above the sensor's white). The sensor's white renders at about 235, 248 and 252 at Exposure 0, +1 and +2 (V1 to V4: 239, 255, 255; the CC0 Canon R8 file and 6 CC0 DNGs without a camera curve). Content past the old clip point, such as a clipped sky, now renders up to 15 codes below white at Exposure 0 and reaches 255 about 5 stops past the sensor's white. Below the last knot or the join, JPEGs and other display-referred sources, and the camera fit itself are unchanged; CPU and GPU share the tone LUT. | | **V6** | V5 plus: colour noise reduction filters the linear colour differences R−Y and B−Y with the joint method (issue #815, `docs/nr-color-joint.md`): edge-aware weights from a denoised guide shared by both differences, anisotropic diffusion over scales, a brake for isolated colour specks; Y is kept exactly. V1 to V5 keep the blurred chromaticity (`local::denoise`). CPU (`local::denoise`) and GPU (`render::denoise`) branch on `local::joint_colour_nr`. Renders with Color 0 are the same as V2's. | -| **V7** (the latest) | V6 plus: global Highlights and Shadows ease off at large amounts (`finish::tone_slider`): the strength the local tone operator takes is `a / (1 + ease·abs(a))` for `a` = slider / 100, so the easing grows with the amount (slope 1 at 0; Shadows +10 acts at 0.88 of V6's, Highlights −10 at 0.92) and ±100 acts at 0.52 (Highlights, ease 0.92) and 0.43 (Shadows, ease 1.33) of V6's. Fitted to 56 Lightroom exports of real portrait edits of Canon raws (Highlights −48 to −100, Shadows +40 to +100), against which V6 rendered the darkest tones about 6 L* too light and the brightest about 5 L* too dark. Masks keep their linear amounts; amounts between 0 and ±40 had no exports to check. CPU and GPU take the strength from `FinishParams`. Renders with both sliders at 0 are the same as V6's. Also from V7: a negative global Texture smooths at 0.67 of V6's strength (`finish::texture_slider`; at −27, V6 left the 1–8 px detail of four full-size Lightroom exports of Canon EOS R6 edits at 0.87–0.94 of theirs, and 0.67 brings it to 0.94–1.02); and the global colour-grading wheel tints at 0.45 of the other wheels at the same saturation (`colorops::global_wheel`; V6 left photos graded Global 10 and 16 about +2 b* warmer than the exports). Positive Texture, the shadows, midtones and highlights wheels and masks are unchanged. | +| **V7** (the latest) | V6 plus: global Shadows eases off at large amounts (`finish::tone_slider`): the strength the local tone operator takes is `a / (1 + 1.33·abs(a))` for `a` = slider / 100, so the easing grows with the amount (slope 1 at 0; +10 acts at 0.88 of V6's) and ±100 acts at 0.43 of V6's. Fitted to 56 Lightroom exports of real portrait edits of Canon raws (Shadows +40 to +100), against which V6 rendered the darkest tones about 6 L* too light. Global Highlights stays linear: on the same edits V6 renders the brightest tones about 5 L* too dark, but single-slider exports show Lightroom's response to Highlights alone close to linear and dependent on the frame's content (#3923), which a fixed easing would not follow. Masks keep their linear amounts; Shadows amounts between 0 and +40 had no exports to check. CPU and GPU take the strength from `FinishParams`. Renders with Shadows at 0 are the same as V6's unless Texture is negative or the Global wheel is set. Also from V7: a negative global Texture smooths at 0.67 of V6's strength (`finish::texture_slider`; at −27, V6 left the 1–8 px detail of four full-size Lightroom exports of Canon EOS R6 edits at 0.87–0.94 of theirs, and 0.67 brings it to 0.94–1.02); and the global colour-grading wheel tints at 0.45 of the other wheels at the same saturation (`colorops::global_wheel`; V6 left photos graded Global 10 and 16 about +2 b* warmer than the exports). Positive Texture, the shadows, midtones and highlights wheels and masks are unchanged. | ## The rule @@ -111,6 +111,6 @@ extra field and retain their existing cached renders. No cache-version bump is n | Date | Change | Summary | |---|---|---| -| 2026-11-06 | minor | V7: global Highlights and Shadows ease off at large amounts, negative Texture and the global grading wheel act less, fitted to Lightroom exports | +| 2026-11-06 | minor | V7: global Shadows eases off at large amounts, negative Texture and the global grading wheel act less, fitted to Lightroom exports; Highlights stays linear | | 2026-11-05 | minor | V5: a raw's tone curve rolls off into white in stops, so raising Exposure keeps recorded highlights (#1632) | | 2026-10-12 | minor | Calibrated Contrast and Blacks, V2 Whites, resolved-process cache keys and number coordination | diff --git a/docs/whats-new.md b/docs/whats-new.md index 8c83602a62..377f35a94e 100644 --- a/docs/whats-new.md +++ b/docs/whats-new.md @@ -2,11 +2,10 @@ ## Unreleased -### Highlights and Shadows closer to Lightroom (process V7) -- Global Highlights and Shadows ease off at large amounts as Lightroom's do (issue #523): ±100 acts at about half of - what it did (0.52 of it for Highlights, 0.43 for Shadows), +52 Shadows at 0.6, and small amounts less so (about 12 % less at +10 Shadows, 8 % at −10 Highlights). - Strong Shadows no longer lift the darkest tones about 6 L* above Lightroom's render of the same edit, nor strong - Highlights pull the brightest about 5 L* below it. Masks keep their amounts. New photos get it; photos edited before +### Shadows, Texture and the Global wheel closer to Lightroom (process V7) +- Global Shadows eases off at large amounts as Lightroom's does (issue #523): +100 acts at 0.43 of what it did, +52 at + 0.6, and small amounts less so (about 12 % less at +10). Strong Shadows no longer lift the darkest tones about 6 L* + above Lightroom's render of the same edit. Highlights keeps its amounts, and masks keep theirs. New photos get it; photos edited before keep their look until Update to Current Process. - A negative Texture smooths at two thirds of what it did: at −27 it took about 8 % more fine detail than Lightroom does. The global colour-grading wheel tints at 0.45 of what it did: a Global tint of 16 made a photo visibly pinker