Hic Sunt Dracones

Using a Samyang 14mm in darktable

Posted on Friday, October 7, 2016
in Category Howto
A rose shot with the 14mm lens on a full frame camera

I just got myself a Samyang 14mm lens, more precisely the Samyang 14mm f/2.8 AE ED AS IF UMC, branded as Walimex Pro, but that is basically just a sticker, the lens is the same. In its latest incarnation with AE, so there is no more manual aperture setting and the resulting images contain Exif data. Nice. However, Samyang decided to label the lens Canon EF 14mm f/2.8L II USM in the Exif data, so automatic lens correction doesn’t work. With this small Lua script that can be fixed by just replacing the lens name on import. I just have to make sure to never buy the real Canon lens as that would be “fixed”, too.

local dt = require "darktable"

  function (event, image)
    if image.exif_lens == "Canon EF 14mm f/2.8L II USM" then
      image.exif_lens = "Samyang 14mm f/2.8 AE ED AS IF UMC"