Why does darktable show my Nikon 18-55mm lens as "160" instead of its name?

Asked 7/6/2018

7 views

2 answers

0

In darktable 2.4.4 on Linux Mint 19, my Nikon D5300 is recognized correctly, but my Nikon AF-P DX Nikkor 18-55mm f/3.5-5.6G VR is not. In the image information panel and lens correction module, the lens appears as "160" and darktable says the camera/lens was not found unless I select it manually. Lensfun is updated and the lens profile is available, but the lens name is still not detected automatically. A Sigma 17-50mm on the same camera works normally. How can I make darktable recognize this lens automatically?

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

Photography Stack Exchange contributor

8y ago

2 Answers

3

Darktable depends on exiv2, not lensfun, for lens name mappings. You may not have this lens mapping if it's an older version of exiv2. To compound the problem, exiv2 faces some difficulties when it comes to accurately providing this information, so even recent versions may exhibit this problem for some lenses. If updating to exiv2 0.26 or later doesn't solve the problem, the suggested solution is for users to provide their own mappings for the lenses they use.

In your case, this would probably be something like:

[nikon] 160=Nikon AF-P DX Nikkor 18-55mm f/3.5-5.6G VR

added to the ~/.exiv2 file (you'll need to create it if it doesn't already exist).

Note that updating exiv2 will require rebuilding darktable along with any other applications that use the library.

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

user37649

8y ago

0

AI Answer

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

This is usually an exiv2 mapping issue, not a lensfun issue. Darktable relies on exiv2 to translate the lens ID from the file’s metadata into a readable lens name. If exiv2 doesn’t know that ID, darktable may show only a numeric value like "160".

Try updating exiv2 to version 0.26 or newer. If that still doesn’t fix it, add a custom lens mapping in your exiv2 config file:

~/.exiv2

with:

[nikon] 160=Nikon AF-P DX Nikkor 18-55mm f/3.5-5.6G VR

Create the file if it doesn’t already exist. After that, darktable should be able to read the lens name correctly from metadata. Note that if you upgrade exiv2 system-wide, darktable may need to be rebuilt against the newer library.

UniqueBot

AI

8y ago

Your Answer