1
\$\begingroup\$

Is it possible to select a specific lens in darktable (2.6)? When my camera is detected by darktable the lens correction module offers only e-mount (sony native) lenses.

I'm using a few old Minolta MD lenses which seem to be supported by lensfun (software library).

I also tried to set the camera to a generic full-frame but I'm still not able to find the old Minoltas.

enter image description here

\$\endgroup\$
2
  • \$\begingroup\$ If you are using a tilt adapter, as indicated by your other question, the point is pretty much moot. When the lens is tilted the correction profile will not be the same for either geometric distortion or vignetting as when the lens is aligned with its optical axis perpendicular to the imaging plane (sensor/film). \$\endgroup\$
    – Michael C
    Commented Feb 3, 2019 at 15:08
  • \$\begingroup\$ @MichaelC For these lenses I'm using a plain MD/Nex Adapter with no tilt or other extras. I just like experimenting \$\endgroup\$
    – stacker
    Commented Feb 4, 2019 at 15:40

1 Answer 1

2
\$\begingroup\$

Use the command line tool lensfun-add-adapter for this, see http://manpages.ubuntu.com/manpages/bionic/man1/lensfun-add-adapter.1.html.

You can also do it by hand. Add a file _mounts.xml to a directory where Lensfun searches for your personal XMLs (it’s ~/.local/share/lensfun on Linux, I don’t know the path on Windows) with the following content:

<lensdatabase>
    <mount>
        <name>Sony E</name>
        <compat>DKL</compat>
        <compat>Generic</compat>
        <compat>M42</compat>
        <compat>Sony Alpha</compat>
        <compat>T2</compat>
        <compat>Minolta MD</compat>
    </mount>
</lensdatabase>
\$\endgroup\$
4
  • \$\begingroup\$ Thanks the cmdline tool is not shipped in my windows distribution, I tried to edit the definition files found in C:\Program Files\darktable26\share\lensfun\version_1 but this seems not be read or updated by darktable. And this feature isn't implemented yet: redmine.darktable.org/issues/11726 \$\endgroup\$
    – stacker
    Commented Feb 3, 2019 at 11:23
  • \$\begingroup\$ This feature won’t help you anyway because you need a Lensfun code update rather than a Lensfun DB update. \$\endgroup\$ Commented Feb 6, 2019 at 7:38
  • \$\begingroup\$ Thank you, now at least 2 of the Minolta MD show up for the A6000 (crop) but none for A7RII both have the same <compat>Minolta MD</compat> xml element though. \$\endgroup\$
    – stacker
    Commented Feb 6, 2019 at 8:20
  • \$\begingroup\$ Maybe missing lenses have only been calibrated for the other crop factor? \$\endgroup\$ Commented Feb 6, 2019 at 12:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.