I just acquired a Leica D-Lux 7 compact camera. Now I am wondering how I can tell darktable to do the proper lens correction.
The camera is unknown to darktable resp. lensfun. But it has the same lens and sensor as the Panasonic DMC-LX100 which is known by both apps. If I manually pick the Panasonic lens correction it looks good to me.
But how do I automate this? Here is what I tried but what is not working.
1.) I copied the Panasonic DMC-LX100 settings from the lensfun xml database to a separate file:
2.) I changed the name of maker, model and mount option:
<camera> <maker>Leica</maker> <model>D-Lux 7</model> <mount>Leica7</mount> <cropfactor>2.21</cropfactor> </camera> <lens> <!-- This calibration works for 3:2 as well as for 4:3 because the crop factor is almost the same --> <maker>Leica</maker> <model>D-Lux 7 & compatibles</model> <model lang="en">fixed lens</model> <model lang="de">festes Objektiv</model> <mount>Leica7</mount> <cropfactor>2.21</cropfactor> <aspect-ratio>4:3</aspect-ratio> <calibration> ....
3.) I placed that file in
Now darktable recognizes the model, but not the lens:
I always have to pick the lens manually and then it works with correct focal length and aperture.
What do I need to do so that the lens correction is automatically applied to every picture?