2

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.

  • 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? – junkyardsparkle Dec 13 '17 at 22:33
  • It may also be failing to identify the camera, in dark table it needs to know the camera and lense. – Calyth Dec 14 '17 at 20:04
  • @Calyth Maybe, but I assume not in this case, due to being able to manually select a lens. – junkyardsparkle Dec 14 '17 at 20:47
  • @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. – Stelios Joseph Karras Dec 16 '17 at 6:28
  • This one should work. – junkyardsparkle Dec 16 '17 at 6:36
2

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 ;)

  • 1
    You can also run the script as a user, and it will install the updates to ~/.local/share/lensfun instead of the system location. – junkyardsparkle Dec 13 '17 at 22:04
  • Neither of these commands are available in my system. (debian jessie) – Stelios Joseph Karras Dec 15 '17 at 6:55
  • 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. – Stelios Joseph Karras Dec 16 '17 at 6:22
1

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

  • The version of exiv2 is also relevant, although IIRC the latest release is not very recent. – junkyardsparkle Dec 15 '17 at 21:36
  • 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. – junkyardsparkle Dec 16 '17 at 3:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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