How do I use adapted Minolta MD lenses for lens correction in darktable?

Asked 2/2/2019

9 views

2 answers

0

In darktable 2.6, the lens correction module only shows Sony E-mount lenses when my camera is detected automatically. I’m shooting with older Minolta MD lenses on a Sony E-mount camera via an adapter, and those lenses appear to be supported by Lensfun. Is there a way to make darktable/Lensfun recognize adapted Minolta MD lenses so I can select them for correction?

Originally by Photography Stack Exchange contributor. Source · Licensed CC BY-SA 4.0

Photography Stack Exchange contributor

7y ago

2 Answers

2

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>

Originally by user18998. Source · Licensed CC BY-SA 4.0

user18998

7y ago

0

AI Answer

Generated from our catalog & community — verify before relying on it.

Yes. darktable relies on Lensfun’s mount compatibility data, so adapted manual lenses may not appear unless the adapter relationship is defined. One way is to use the Lensfun command-line helper `lensfun-add-adapter` to add the adapter mapping. You can also do it manually by creating a `_mounts.xml` file in your personal Lensfun data folder (for example, `~/.local/share/lensfun` on Linux) and adding compatibility entries so Sony E is marked as compatible with mounts like `Minolta MD`. Example structure: ```xml Sony E Minolta MD ``` You can include other adapted mounts too if needed. After updating Lensfun’s mount data, darktable should let you choose supported Minolta MD lenses in the lens correction module. If it still doesn’t appear, make sure the Lensfun database actually contains that specific lens model and restart darktable after making changes.

UniqueBot

AI

7y ago

Your Answer