For compact cameras, you also need to add the entry for the camera itself along
with the lens:
<camera>
<maker>Panasonic</maker>
<model>DMC-TZ100</model>
<mount>panasonicTZ100</mount>
<cropfactor>2.75</cropfactor>
</camera>
Also, you might have to remove that 'version="2"' parameter to get darktable to
load the file.
On Sat, May 20, 2017, at 05:59, Remco Viëtor wrote:
> On samedi 20 mai 2017 13:22:22 CEST Romano Giannetti wrote:
> > Hi all,
> >
> > I have a problem with DT 2.2.4 --- I have bought a new camera, and
> > trying to see if I like it --- a Panasonic TZ100. The lens is not in the
> > stock lensfun database yet, but I found the entry in the lensfun
> > database --- reported below hoping it's correct. Now, I tried to put it
> > in a file in ~/.local/share/lensfun/, the adding it directly to the main
> > file in /usr/share/lensfun/compact-panasonic.xml, but no matter what I
> > do, the lens is not shown in the list of available lenses.
> >
> > What am I doing wrong?
> >
> >
> > Romano
> >
> >
> > <lensdatabase version="2">
> >
> > <lens>
> > <maker>Leica</maker>
> > <model>DMC-TZ100 & compatibles</model>
> > <model lang="en">fixed lens</model>
> > <model lang="de">festes Objektiv</model>
> > <mount>panasonicTZ100</mount>
> > <cropfactor>2.75</cropfactor>
> > <aspect-ratio>3:2</aspect-ratio>
> > <calibration>
> > <distortion model="ptlens" focal="9.1" a="0.00708902"
> > b="-0.040959" c="-0.0636536"/>
> > <distortion model="ptlens" focal="11" a="0.0095907"
> > b="-0.0535213" c="0.00920877"/>
> > <distortion model="ptlens" focal="14.6" a="0"
> > b="-0.0124246" c="0"/>
> > <distortion model="ptlens" focal="18.2" a="0"
> > b="-0.00155103" c="0"/>
> > <distortion model="ptlens" focal="23.7" a="0"
> > b="0.00368039" c="0"/>
> > <distortion model="ptlens" focal="36.6" a="0"
> > b="0.00140267" c="0"/>
> > <distortion model="ptlens" focal="54.8" a="0"
> > b="0.00153697" c="0"/>
> > <distortion model="ptlens" focal="91" a="0"
> > b="-0.000878659" c="0"/>
> > <tca model="poly3" focal="9.1" vr="1.0003000" vb="1.0002000"/>
> > <tca model="poly3" focal="11" vr="1.0005000" vb="1.0002000"/>
> > <tca model="poly3" focal="14.6" vr="1.0005000" vb="1.0000000"/>
> > <tca model="poly3" focal="18.2" vr="1.0005000" vb="0.9999000"/> <tca
> > model="poly3" focal="23.7" vr="1.0004000" vb="0.9999000"/> <tca
> > model="poly3" focal="36.6" vr="1.0000000" vb="1.0000000"/> <tca
> > model="poly3" focal="54.8" vr="0.9997000" vb="1.0000000"/> <tca
> > model="poly3" focal="91" vr="0.9996000" vb="0.9995000"/> </calibration>
> > </lens>
> >
> > </lensdatabase>
> You did close and restart Darktable after the addition? It's possible the
> database is only read from file at start-up.
>
> Remco
>
> ____________________________________________________________________________
> darktable user mailing list
> to unsubscribe send a mail to [email protected]
>
____________________________________________________________________________
darktable user mailing list
to unsubscribe send a mail to [email protected]