mirror of
https://github.com/storytold/lightcraft.git
synced 2026-11-02 22:49:48 -06:00
For a DNG with its own colour matrix, an identity or absent ProfileToneCurve, no LookTable and no ProfileGainTableMap, fit only the tone and chroma curves to the camera JPEG, with the file's colour model untouched (profile tables and embedded vignetting applied to the sensor proxy as the loader renders it). The fit is used only when the preview is at least 90% of the raw's long edge, shows the same picture (structure gate), passes the existing held-out acceptance, and does not put more of the photo near white than the plain render (highlight gate, at 2x proxy luminance). Otherwise the render is unchanged. Other formats and catalogued photos are untouched. Render cache version 62.