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:
+4
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user