Skip to content

Lensfun unnecessary scale when there's no geometry correction. #20796

@frivoal

Description

@frivoal

I like to auto-apply lensfun based autocorrections on all my pictures. Depending what's available, it'll correct more or less things (TCA, vignette, geometry), and that's great, that's what I expect.

However, I'm finding that for a number of lenses I have, lensfun doesn't have geometry information, but still applies a "safety" scale of 1.002, or sometimes a little more. I get it that this comes from the lensfun database, and that they do that to avoid dealing with missing out-of-frame data when doing geometry corrections, but when there is no geometry being corrected, that serves no purpose, and needlessly scales/crop the images (by a tiny amount).

As far as I can tell, it is not possible to set up darktable to auto-apply lens correction, with all corrections available, except that it should not apply scale if there's no actual geometry correction being performed.

Would it be possible to make that the behavior available (likely through some kind of opt-in check box), and even possibly be the default setting? I suppose we cannot make it an always-on thing, as that would be a rendering change for previously processed images, but as long as the old behavior is available, we can have better defaults for new pictures.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions