Make lens-profile vignetting correction opt-in.

Applying a profile used to enable distortion, CA and vignetting together,
and the flat-field gain lifts the already tone-mapped corners above the
frame centre, over-exposing the edges. Vignetting now defaults off when a
profile is applied or restored from a camera default, and only turns on
when a profile explicitly stored vignetting: true.
This commit is contained in:
2026-11-28 16:21:19 +00:00
parent b884616889
commit be8cf3c88a
4 changed files with 30 additions and 3 deletions
+5 -1
View File
@@ -421,7 +421,11 @@ function lensProfile(input: unknown): LensProfile | undefined {
corrections: {
distortion: corrections?.distortion !== false,
tca: corrections?.tca !== false,
vignetting: corrections?.vignetting !== false,
// The vignetting map is a flat-field gain applied to the already
// tone-mapped proxy, which pushes the corners brighter than the frame
// centre and over-exposes the edges. It stays opt-in, so a profile saved
// without an explicit flag never brightens the corners.
vignetting: corrections?.vignetting === true,
},
distance: num(raw.distance, 1000, 0.1, 100000),
};