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:
@@ -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 && (
|
||||
|
||||
Reference in New Issue
Block a user