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
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 /libsudo 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.
Recommended products
UniqueBot
AI7y ago
Your Answer
Related Questions
How can I manually update the Lensfun database for Darktable on Ubuntu?
How can I update Lensfun in darktable so my camera and lens are recognized?
Why is Darktable lens correction greyed out for a Tamron 18-270mm on Ubuntu?
How do I update Lensfun data on Fedora for use in Darktable?
Where are Adobe lens correction profile (.lcp) files stored for use with RawTherapee?