I searched the web and my notes, but I am not sure how to do everything right.
~# lensfun-update-data
Reading http://lensfun.sourceforge.net/db/versions.json …
Reading http://wilson.bronger.org/lensfun-db/versions.json …
Successfully updated the database in /var/lib/lensfun-updates/version_1.
With the latest Ubuntu:
~# dpkg -l | grep -i lensfun
ii liblensfun-bin 1:0.3.4-2 amd64 Lens Correction library - Utilities
ii liblensfun-data-v1 1:0.3.4-2 all Lens Correction library - Data
ii liblensfun1:amd64 1:0.3.4-2 amd64 Lens Correction library - Runtime files
ii python3-lensfun 1:0.3.4-2 amd64 Lens Correction library - Python3 module
Since years there is at sourceforge:
There is a directory with:
.../lensfun-0.3.95/data/db/
and a file slr-tamron.xml
<lens>
<maker>Tamron</maker>
<model>Tamron SP AF 28-75mm f/2.8 XR Di LD Aspherical (IF)</model>
<model lang="en">Tamron SP AF 28-75mm f/2.8 XR Di (IF) Macro</model>
<mount>Canon EF</mount>
<mount>Nikon F AF</mount>
<mount>Pentax KAF</mount>
<mount>Sony Alpha</mount>
<cropfactor>1</cropfactor>
<calibration>
<distortion model="ptlens" focal="28" a="0.01469" b="-0.034774" c="0"/>
<distortion model="ptlens" focal="30" a="0.012441" b="-0.026997" c="0"/>
<distortion model="ptlens" focal="35" a="0.009958" b="-0.018577" c="0"/>
<distortion model="ptlens" focal="50" a="0" b="0.005421" c="0"/>
<distortion model="ptlens" focal="60" a="0" b="0.00752" c="0"/>
<distortion model="ptlens" focal="75" a="0" b="0.007321" c="0"/>
</calibration>
</lens>
Unanswered is the “lensdatabase version”
So I think it could work to create the same configuration locally a 2nd time.
My lens:
Tamron SP AF 28-75mm F2.8 XR Di LD Aspherical [IF] Macro
lensfun name:
Tamron SP AF 28-75mm f/2.8 XR Di (IF) Macro
So the difference is the slash in f/2.8 and “LD Aspherical”
My idea is to copy the lens configuration in slr-tamron.xml a 2nd time with my values and then copy the file from the sourforge-download to ~/.local/share/lensfun
/usr/share/lensfun/version_1/slr-tamron.xml exists in my system. I hope the file in ~/.local/share/lensfun is prioritized.
<lens>
<maker>Tamron</maker>
<model>Tamron SP AF 28-75mm f/2.8 XR Di LD Aspherical (IF)</model>
<model lang="en">Tamron SP AF 28-75mm f/2.8 XR Di (IF) Macro</model>
<mount>Canon EF</mount>
<mount>Nikon F AF</mount>
<mount>Pentax KAF</mount>
<mount>Sony Alpha</mount>
<cropfactor>1</cropfactor>
<calibration>
<distortion model="ptlens" focal="28" a="0.01469" b="-0.034774" c="0"/>
<distortion model="ptlens" focal="30" a="0.012441" b="-0.026997" c="0"/>
<distortion model="ptlens" focal="35" a="0.009958" b="-0.018577" c="0"/>
<distortion model="ptlens" focal="50" a="0" b="0.005421" c="0"/>
<distortion model="ptlens" focal="60" a="0" b="0.00752" c="0"/>
<distortion model="ptlens" focal="75" a="0" b="0.007321" c="0"/>
</calibration>
</lens>
<lens>
<maker>Tamron</maker>
<model>Tamron SP AF 28-75mm F2.8 XR Di LD Aspherical [IF] Macro</model>
<model lang="en">Tamron SP AF 28-75mm F2.8 XR Di LD Aspherical [IF] Macro
<mount>Canon EF</mount>
<mount>Nikon F AF</mount>
<mount>Pentax KAF</mount>
<mount>Sony Alpha</mount>
<cropfactor>1</cropfactor>
<calibration>
<distortion model="ptlens" focal="28" a="0.01469" b="-0.034774" c="0"/>
<distortion model="ptlens" focal="30" a="0.012441" b="-0.026997" c="0"/>
<distortion model="ptlens" focal="35" a="0.009958" b="-0.018577" c="0"/>
<distortion model="ptlens" focal="50" a="0" b="0.005421" c="0"/>
<distortion model="ptlens" focal="60" a="0" b="0.00752" c="0"/>
<distortion model="ptlens" focal="75" a="0" b="0.007321" c="0"/>
</calibration>
</lens>
No idea, if this can be done with 1 block only?