Apply the lens vignetting gain in linear light.

Lensfun's vignetting coefficients describe linear transmission, so
multiplying them into the sRGB-encoded proxy brightened the corners far
more than the lens had lost and over-exposed the edges. The gain now runs
after the decode, in both the grade and the eyedropper.

Existing records that stored the old auto-enabled flag are cleared once,
on the server catalogue at boot and in the browser cache on its next
IndexedDB upgrade, and the Optics panel says when the correction is off.
This commit is contained in:
2026-11-28 16:34:31 +00:00
parent be8cf3c88a
commit 5c2903eeef
7 changed files with 159 additions and 11 deletions
+6
View File
@@ -2226,6 +2226,12 @@ export function OpticsPanel({
</label>
);
})}
{!profile.corrections.vignetting && (
<p className="muted small lens-msg">
Vignetting correction is off, so the corners keep the lens's own falloff.
Tick Vignetting to lift them back to the centre.
</p>
)}
{lensState?.loading && <p className="muted small lens-msg">Building correction maps…</p>}
{lensState?.error && <p className="small lens-error">{lensState.error}</p>}
{onLensSplit && (