2
\$\begingroup\$

I have been using darktable for sometime now on Debian. But after I re-install the operating system, darktable does not find my lens automatically. Instead I have to choose the lens manually every time I want do lens correction on an image. My lens is a Nikon DX VR AF-S NIKKOR 18-55mm 1:3.5-5.6G II

Any ideas why darktable behaves the differently?

UPDATE:

I found that back then I had installed via the backports of debian so after removing the current version. I install the darktable via the backports and now I have the 2.2.1 but the problem still exist.

running
exiv2 -pt Pictures/101D5200/DSC_5641.NEF | grep -ai lens

gives

Exif.Nikon3.LensType Byte 1 D G VR Exif.Nikon3.Lens Rational 4 18-55mm F3.5-5.6 Exif.Nikon3.LensFStops Undefined 4 5.33333 Exif.NikonLd3.LensIDNumber Byte 1 162 Exif.NikonLd3.LensFStops Byte 1 F5.3

in Darktable I'm selecting Nikon, Nikkor 18-55mm f/3.5-5.6G AF-S DX VR isn't that correct?

UPDATE2:

I manually install the lensfun and run the update command. But darktable still does not select the lens automatically.

\$\endgroup\$
7
  • \$\begingroup\$ The answer from @Calyth below is generally correct, but it doesn't look like the name has been changed for this lens since it was added three years ago. Can you copy and paste here the exact name shown by darktable in the image information panel? Also, the exact name selected manually, if it differs? \$\endgroup\$ Dec 13, 2017 at 22:33
  • \$\begingroup\$ It may also be failing to identify the camera, in dark table it needs to know the camera and lense. \$\endgroup\$
    – Calyth
    Dec 14, 2017 at 20:04
  • \$\begingroup\$ @Calyth Maybe, but I assume not in this case, due to being able to manually select a lens. \$\endgroup\$ Dec 14, 2017 at 20:47
  • \$\begingroup\$ @junkyardsparkle or anyone can give a link to an image that you know that darktable will find the lens automatically? I'm thinking that maybe this is a bug. \$\endgroup\$ Dec 16, 2017 at 6:28
  • \$\begingroup\$ This one should work. \$\endgroup\$ Dec 16, 2017 at 6:36

2 Answers 2

2
\$\begingroup\$

I've only seen failure to choose because the database is out of date.

Try updating the lensfun database, e.g. sudo lensfun-update-data. Do look at the documentation and stuff before you run some random ol' sudo command though ;)

\$\endgroup\$
3
  • 1
    \$\begingroup\$ You can also run the script as a user, and it will install the updates to ~/.local/share/lensfun instead of the system location. \$\endgroup\$ Dec 13, 2017 at 22:04
  • \$\begingroup\$ Neither of these commands are available in my system. (debian jessie) \$\endgroup\$ Dec 15, 2017 at 6:55
  • \$\begingroup\$ I installed manually the lensfun and run the update command. After that I checked if the lens connection in darktable selects the lens automatically. But the answer is negative. \$\endgroup\$ Dec 16, 2017 at 6:22
1
\$\begingroup\$

I agree with Calyth -- Could it be that lensfun had been updated and re-installing Debian put you back a couple minor versions? You can get the lensfun-update-data command via: sudo apt-get install liblensfun-bin

\$\endgroup\$
2
  • \$\begingroup\$ The version of exiv2 is also relevant, although IIRC the latest release is not very recent. \$\endgroup\$ Dec 15, 2017 at 21:36
  • \$\begingroup\$ Whoops, looks like there was finally an exiv2 update (to 0.26) in May, after almost two years... so that might be another thing to check. \$\endgroup\$ Dec 16, 2017 at 3:03

Your Answer

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

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