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
+4 -1
View File
@@ -85,7 +85,10 @@ function editsForImport(meta: PhotoMeta, defaults: CameraLensDefault[]) {
if (match) {
edits.lens = {
...match.profile,
corrections: { ...match.profile.corrections },
// A saved default still carries whatever the profile had when it was
// stored. Applying it on import must not switch the vignetting gain back
// on and over-expose the corners, so that correction stays opt-in.
corrections: { ...match.profile.corrections, vignetting: false },
};
}
return edits;