Fixing EXIF lens names for LensFun lookup

I have read through a previous thread on lens names, but it’s almost 5 years old, so I’m posting this, which is a little specific to my camera / lenses combos.

I use a Lumix S5M2. With the standard Lumix 20-60mm zoom, the lens is recognised, and lens profile is automatically applied if chosen.

With Canon lenses adapted on L-mount, the more recent lenses are recognised. Others have blank lens name.

Eg. “EF100mm f2.8/L Macro IS USM”, “100-400mm F5-6.3 DG OS HSM | Contemporary 017”, “Lumix S 20-60/F3.5-5.6”

Of the 3 above, the Sigma (100-400) and Lumix zoom are matched automatically into LensFun, but the Canon EF is not.

I’ve tried changing the LensModel and LensType to “EF 100mm …”, but it doen’t help. I have to manually match.

  1. Is this matching issue a known problem with Canon EF lenses?
  2. Is there any suggestion on how to adjust the lens names (which tags? what naming convention?) so that I can use something like exiftool to batch adjust the names for raw files using these problem lenses?

FYI, I’m using ART 1.25.1 on Arch Linux.

Hi,
Another option would be to tell art what lens correction settings to use via a dynamic profile that matches the name of the lens(es). Did you try that?

I’m a newbie to RT / ART, and have not tried that. I’ll do so! Thanks.

I will still need to add lens info for (older) EF lenses that somehow do not transmit their info to the camera. The 85mm f1.8 and 24-105mm F4L (mk 1) are examples. In these cases can you suggest which tags I should try, and what descriptors I should use?

Hi,
I have no experience with the specific camera/lens combos, sorry.
If you have info about the focal length and aperture, maybe that is sufficient? E.g. match on “unknown” lens with 85mm focal length for the 85/1.8, and unknown + any other focal length for the zoom?

HTH

Update:

I’ve successfully configured automatic LensFun lookup for my Sigma and Canon lenses adpated (Viltrox EF-L Pro adapter, which is quite transparent) for use on the Lumix S5m2. This was by copying the Sigma and Canon entries in the share/lensfun directory into mil-panasonic.xml, editing the Make to “Panasonic-Canon” or “Panasonic-Sigma”, and Mount to “Leica L”.

It works very well, but I expect trouble at the next update, when the lensfun xmls may be overwritten. :frowning:

I doubt my use case is unique. Many L-mount users seem to use the existing Canon L lenses and other EF mount lenses on their cameras. Is there a way to keep these lens calibration entries on separate, local user folders. Eg. ~/.config/ART/lensfun/… which are first checked, before the default lensfun folder? This would be very useful, and convenient, as users can share their own adapted combos with others.

It’s ~/.local/share/lensfun/. You can put any custom Lensfun XML files there. They will not be overwritten by updates.

Also, perhaps lensfun-add-adapter help here instead of maintaining custom XML.

1 Like