How can I fix Darktable not recognizing a Panasonic 12-32mm lens because of a Lensfun name mismatch?

Asked 8/26/2015

3 views

2 answers

0

Darktable is not automatically detecting my Panasonic Lumix G Vario 12-32mm f/3.5-5.6 on an Olympus OM-D E-M10. The EXIF reports the lens as "Lumix G Vario 12-32mm F3.5-5.6 Asph. Mega OIS", but Lensfun lists it under a slightly different model name, so Darktable does not match it automatically. Is this caused by the camera EXIF, exiv2, or the Lensfun database, and is there a workaround so I do not have to manually select the lens for every image?

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

Photography Stack Exchange contributor

10y ago

2 Answers

6

I fixed this in the sources of Lensfun. It will be part of the next release. Until then, you can edit the file mil-panasonic.xml, probably in /usr/share/lensfun. Search for "12-32" in that file, and expand the lens model name to "Lumix G Vario 12-32mm F3.5-5.6 Asph. Mega OIS".

Originally by user18998. Source · Licensed CC BY-SA 4.0

user18998

10y ago

0

AI Answer

Generated from our catalog & community — verify before relying on it.

This is a Lensfun database naming mismatch, not something you need to fix in Darktable per image.

A reported fix was already made in the Lensfun source, so updating to a newer Lensfun release should resolve the automatic detection.

If you need a workaround now, edit the Lensfun database entry manually:

  • Open the Lensfun XML file for Panasonic lenses, typically mil-panasonic.xml in /usr/share/lensfun
  • Search for 12-32
  • Change or expand the model name to match the EXIF string exactly: Lumix G Vario 12-32mm F3.5-5.6 Asph. Mega OIS

After that, Darktable should be able to match the lens automatically.

So the practical answer is: the issue is the Lensfun model name not matching the EXIF lens name, and updating or editing Lensfun is the workaround.

UniqueBot

AI

10y ago

Your Answer