Open MStraeten opened 8 months ago
Lensfun is very picky about the naming, so it's the whitespace difference between the ExIF field it checks and the entry in its database causing problems, as you've already noticed.
The names a identical including whitespaces- in all three cases … Verified this by setting those names via .exiv2 explicitly
seems to be an issue with the fuzzy matcher, that occasionally doesn’t find exact matches (see https://github.com/lensfun/lensfun/issues/2052) there’s a pr for RT adding a further step to find exact matches if the fuzzy match doesn’t give results: https://github.com/Beep6581/RawTherapee/pull/6837
that behaviour seems to occur also with camera detection and was reported here https://github.com/darktable-org/darktable/issues/8087
This issue has been marked as stale due to inactivity for the last 60 days. It will be automatically closed in 300 days if no update occurs. Please check if the master branch has fixed it and report again or close the issue.
Describe the bug
situation: i created lens correction data for Canon EF 100-400mm f/4.5-5.6L IS II USM + 1.4x and added them to local lensfun database: slr-canon.xml:
exiv2 -pa --grep lens/i identifies it quite ok:
when activating lens correction, the lens is not properly detected:
11,1025 Trouble: [Objektivkorrektur] camera/lens not found (20230722-IMG_0416.CR3 56279)
now the strange part:
if i rename the LensType via .exiv2 file:
and do the same with lensfun
it's properly detected and the correction is applied but also ditching the blank between EF and 100-400 gives a proper result ;)
any ideas?
Steps to reproduce
get raw file to reproduce: https://mega.nz/file/2OoTyARa#653sIrHgfcKxcFVcqmbFxXDFVgk2_T1_Q30q5YoQj9c add lens data to local lensfun db - slr-canon.xml open in darktable apply lens correction
darktable version
darktable 4.7.0+59~ge8de8a0211-dirty
What OS are you using?
Mac
What is the version of your OS?
macOS14