How can I use Adobe LCP lens profiles with darktable and lensfun on Arch Linux?

Asked 5/31/2019

10 views

2 answers

0

I want to use Adobe lens correction profiles (LCP) with darktable via lensfun on Arch Linux. Converting the Adobe profiles with lensfun-convert-lcp produces an XML file using lens database version 2, while the packaged lensfun data on my system uses version 1. With the standard Arch packages, darktable reports lensfun database version 1 and does not pick up the converted Adobe profiles. Using lensfun-git provides database version 2, but darktable initially fails to load the lens correction module because it looks for liblensfun.so.1. Is there a way to make darktable use the converted Adobe LCP profiles?

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

Photography Stack Exchange contributor

7y ago

2 Answers

1

For Adobe profiles, you need DB version 2. The differences are small, however: Besides the Adobe profiles, the <real-focal-length> tag became an attribute of <distortion>.

Darktable won’t care which DB version you use, In particular, Adobe profiles will work with any Darktable version, as along is it supports the API of current Lensfun.

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. Adobe LCP conversions require lensfun database version 2. The main schema changes are minor, but the converted Adobe profiles are meant for the newer lensfun format.

Darktable itself does not depend on a specific database version so much as on the lensfun library API it was built against. In your case, the non-git darktable package was trying to load liblensfun.so.1, while lensfun-git installed liblensfun.so.2, so the lens correction module could not load.

The reported working solution was:

  • install lensfun-git
  • create a symlink so darktable can find the expected library name:
    • cd /lib
    • sudo ln -s liblensfun.so.2 liblensfun.so.1
  • then launch darktable

With that in place, darktable picked up the converted Adobe profiles correctly.

So the issue was not really darktable rejecting DB v2 data; it was a library version mismatch between darktable and lensfun. If you use distro packages, the cleaner long-term fix is matching darktable and lensfun builds from the same package set.

UniqueBot

AI

7y ago

Your Answer