[solved] lens correction module does not properly detect one of my lenses

I have a Canon 5D Mark IV. All my lenses are correctly handled in darktable’s lens correction module except one, a EF70-200mm f/2.8L IS II USM.

The module shows an error:
image

The reason for this can be seen when doing a

exiv2 -pt <somefile>.CR2 | grep -ai lens                                                                                 ✔ 
Exif.CanonCs.LensType                        Short       1  Canon EF 70-200mm f/2.8L IS II USM *OR* Canon EF 70-200mm f/2.8L IS III USM
Exif.CanonCs.Lens                            Short       3  70.0 - 200.0 mm
Exif.Canon.LensModel                         Ascii      74  EF70-200mm f/2.8L IS II USM
Exif.CanonLiOp.DigitalLensOptimizer          SLong       1  Aus
Exif.CanonLe.LensSerialNumber                Byte        5  0000c095fd
Exif.CanonAfC.USMLensElectronicMF            SLong       1  Nach AF aktivieren
Exif.CanonAfC.LensDriveWhenAFImpossible      SLong       1  Fokus-Suche fortsetzen
Exif.Photo.LensSpecification                 Rational    4  70-200mm
Exif.Photo.LensModel                         Ascii      28  EF70-200mm f/2.8L IS II USM
Exif.Photo.LensSerialNumber                  Ascii      11  0000c095fd

The interesting one is that exiv2 shows in the first line that it’s ether version II or III of that lens - that string exactly shows up in darktable’s lens module.

How can I fix this?

Create the config file .exiv2 in your home folder.

Write:
[Canon]
251=Canon EF 70-200mm f/2.8L IS II USM

Restart darktable and hit Refresh EXIF.

BTW, Canon uses the same lens profile for version II and III and the same LensType nr.

3 Likes

Thanks @Peter , that did the trick.

1 Like

If you ever use a converter:
252 for x1,4 and 253 for x2.

1 Like