mirror of
https://github.com/storytold/lightcraft.git
synced 2026-10-24 10:09:01 -06:00
A Custom white balance from a Lightroom catalog or XMP sidecar was taken as absolute Kelvin for every raw. Raws LightCraft develops relative to their as-shot look (ARW, NEF, RW2, RAF, CR3, CR2, PEF; 6500 K means as shot) then read a small tweak as a large blue shift: ΔE 22 against Lightroom's export on the photos of issue #510. The crs mapper now takes a `Target` (preset, rendered, raw with a measured illuminant, relative-WB raw) instead of a bool. For relative-WB raws, and rendered files with only `Temperature`, a Kelvin value is converted to the same mired shift from the packet's `AsShotTemperature` / `AsShotTint`. Without that reference (Lightroom catalogs keep none for Custom photos) the photo stays As Shot and the import report lists `Temperature, Tint` as not carried over. Import, sidecar read and catalog import decide the target the same way through `lightcraft_catalog::relative_wb_format`. Tests: shift from the issue's numbers (3650 → 3578 K lands at ~6275 K), the As Shot fallback with its report entry, target selection per file, and the catalog mapper's Custom-WB case.