Re: [darktable-user] Re: Is it possible to configure "alias lenses"

2017-07-26 Thread Аl Воgnеr
Am Wed, 26 Jul 2017 10:37:54 +0200
schrieb Torsten Bronger :

Hallo Torsten,

> > I agree and there are a lot of lenses, which could be added
> > immediately to lensfun, because the difference is e.g. the motor
> > of the lens or the lens coating or image stabilization. I sent a
> > mail to Bronger of lensfun, but got no reply until today, if he is
> > willing to add such lenses.
> >
> > e.g. all the Pentax lenses with smc vs. HD, Sigma HSM and without
> > HSM, Sigma OS and without, Tamron SP AF and without SP.
> >
> > My Tamron SP AF 28-75mm F2.8 XR Di (A09) has A09 at the end and
> > has to be entered manually.  
> 
> Sadly, this is a lot of lenses.  While I think that an "alias"
> feature is needed in Lensfun (even more so for cameras), it is
> difficult to map to Darktable (show all names, show only the first
> name, take region into account).

Well, I am not alone, and there must be a way to get an acceptable
solution.

Is there already an official bug / wishlist entry for darktable?

So why not let the user do the solution?

I would like to see the following in dt:

dt-preferences: define used cameras and lenses in a _flat_
alphabetic list.

If you need to define a camera manually, like i have to do with a KP,
it is a lot of klicking. I think the most people have less than 10
cameras and less than 10 lenses, so a hierarchical menu for the owned
equipment is time consuming. The list will grow, because some day
everyone buys a new camera and keeps the old photos. But nevertheless a
flat menu will be the best for manually choosing.

alias lenses of existing lensfun-lenses in dt.

notice / warning in dt if an alias lens was added to lensfun.

The selected alias lens has to be written in the xmp-file and not in
the dt-database. Personally I do not fill the database with data and
after a fresh install of dt the database is empty, because everything I
need is in the xmp-file.

> Currently, we simply copy the lens entries and mark them as copies
> in XML comments.  In the furture, they are replaced with alias tags.

As long as the lens is recognized, there should be no difference for
the user.

> That said, often one gets away with expanding the lens model name.
> Note that excess words in a lens model name are ignored by Lensfun
> while matching (at least in the mode by which Darktable uses
> Lensfun).  This does not help with the smc/HD thingy, but e.g. an
> A09 can be appended without making the database inaccurate.


The next problem is a solution to get new lenses available in
darktable, easy and fast for the user.

At the moment I am using .local/share/lensfun and use the files from
git. But I think this can be done easier while doing a "normal" system
update.

Again, if there is no official bug report for this topic, I will open
one.

Al

darktable user mailing list
to unsubscribe send a mail to darktable-user+unsubscr...@lists.darktable.org



Re: [darktable-user] Re: Is it possible to configure "alias lenses"

2017-07-26 Thread Maurizio Paglia
Hi Roman, I confirm this is db only!
I will give a look @ redmine as you suggest.
Thank you,
Maurizio

2017-07-26 12:20 GMT+02:00 Roman Lebedev :

> Hi.
>
> On Wed, Jul 26, 2017 at 1:13 PM, Maurizio Paglia 
> wrote:
> > Dear Al,
> > I have the same problem with your Tamron lens.
> > Since I am not a technician it is difficult and time consuming for me
> try to
> > understand how lensfun works and so on.
> >
> > The easiest solution I found has been suggested by Houz from dt team.
> > I have a Tamron SP AF 17-50mm F/2.8 XR Di II VC LD Aspherical [IF] but
> the
> > version of darktable shipped with my Linux distribution recognizes only
> the
> > non VC one.
> > Since the lens correction of the non VC lens works perfectly, you can
> tell
> > darktable to change the lens type during the import of the images.
> > Create the following lua script
> >
> > local dt = require "darktable"
> >
> > dt.register_event("post-import-image",
> >   function (event, image)
> > if image.exif_lens == "Tamron SP AF 17-50mm F/2.8 XR Di II VC LD
> > Aspherical [IF]" then
> >
> >   image.exif_lens = "Tamron SP AF 17-50mm F/2.8 XR Di II LD
> Aspherical
> > [IF]"
> >
> > end
> >   end
> > )
> I'm not sure that field is stored in XMP sidecars, i think it is db-only.
> Thus,
> *i think* it will be lost once you remove db/import the image somewhere
> else.
>
> I'd suggest https://redmine.darktable.org/issues/10525
> It is definitely not going to be lost.
>
> > During the import process dt will write in database the non VC lens
> > information and you can apply lens correction module in a completely
> > automatic way!
> >
> > Maurizio
> Roman.
>
> > 2017-07-26 10:37 GMT+02:00 Torsten Bronger <
> bron...@physik.rwth-aachen.de>:
> >>
> >> Hallöchen!
> >>
> >> Аl Воgnеr writes:
> >>
> >> > [...]
> >> >
> >> > I agree and there are a lot of lenses, which could be added
> >> > immediately to lensfun, because the difference is e.g. the motor
> >> > of the lens or the lens coating or image stabilization. I sent a
> >> > mail to Bronger of lensfun, but got no reply until today, if he is
> >> > willing to add such lenses.
> >> >
> >> > e.g. all the Pentax lenses with smc vs. HD, Sigma HSM and without
> >> > HSM, Sigma OS and without, Tamron SP AF and without SP.
> >> >
> >> > My Tamron SP AF 28-75mm F2.8 XR Di (A09) has A09 at the end and
> >> > has to be entered manually.
> >>
> >> Sadly, this is a lot of lenses.  While I think that an "alias"
> >> feature is needed in Lensfun (even more so for cameras), it is
> >> difficult to map to Darktable (show all names, show only the first
> >> name, take region into account).
> >>
> >> Currently, we simply copy the lens entries and mark them as copies
> >> in XML comments.  In the furture, they are replaced with alias tags.
> >>
> >> That said, often one gets away with expanding the lens model name.
> >> Note that excess words in a lens model name are ignored by Lensfun
> >> while matching (at least in the mode by which Darktable uses
> >> Lensfun).  This does not help with the smc/HD thingy, but e.g. an
> >> A09 can be appended without making the database inaccurate.
> >>
> >> Tschö,
> >> Torsten.
> >>
> >> --
> >> Torsten Bronger
> >>
> >>
> >> 
> 
> >> darktable user mailing list
> >> to unsubscribe send a mail to
> >> darktable-user+unsubscr...@lists.darktable.org
> >>
> >
> >
> > 
> 
> > darktable user mailing list to unsubscribe send a mail to
> > darktable-user+unsubscr...@lists.darktable.org
>


darktable user mailing list
to unsubscribe send a mail to darktable-user+unsubscr...@lists.darktable.org



Re: [darktable-user] Re: Is it possible to configure "alias lenses"

2017-07-26 Thread Maurizio Paglia
Dear Al,
I have the same problem with your Tamron lens.
Since I am not a technician it is difficult and time consuming for me try
to understand how lensfun works and so on.

The easiest solution I found has been suggested by Houz from dt team.
I have a Tamron SP AF 17-50mm F/2.8 XR Di II VC LD Aspherical [IF] but the
version of darktable shipped with my Linux distribution recognizes only the
non VC one.
Since the lens correction of the non VC lens works perfectly, you can tell
darktable to change the lens type during the import of the images.
Create the following lua script

local dt = require "darktable"
dt.register_event("post-import-image",
  function (event, image)
if image.exif_lens == "Tamron SP AF 17-50mm F/2.8 XR Di II VC LD
Aspherical [IF]" then

  image.exif_lens = "Tamron SP AF 17-50mm F/2.8 XR Di II LD Aspherical [IF]"

end
  end)

During the import process dt will write in database the non VC lens
information and you can apply lens correction module in a completely
automatic way!

Maurizio

2017-07-26 10:37 GMT+02:00 Torsten Bronger :

> Hallöchen!
>
> Аl Воgnеr writes:
>
> > [...]
> >
> > I agree and there are a lot of lenses, which could be added
> > immediately to lensfun, because the difference is e.g. the motor
> > of the lens or the lens coating or image stabilization. I sent a
> > mail to Bronger of lensfun, but got no reply until today, if he is
> > willing to add such lenses.
> >
> > e.g. all the Pentax lenses with smc vs. HD, Sigma HSM and without
> > HSM, Sigma OS and without, Tamron SP AF and without SP.
> >
> > My Tamron SP AF 28-75mm F2.8 XR Di (A09) has A09 at the end and
> > has to be entered manually.
>
> Sadly, this is a lot of lenses.  While I think that an "alias"
> feature is needed in Lensfun (even more so for cameras), it is
> difficult to map to Darktable (show all names, show only the first
> name, take region into account).
>
> Currently, we simply copy the lens entries and mark them as copies
> in XML comments.  In the furture, they are replaced with alias tags.
>
> That said, often one gets away with expanding the lens model name.
> Note that excess words in a lens model name are ignored by Lensfun
> while matching (at least in the mode by which Darktable uses
> Lensfun).  This does not help with the smc/HD thingy, but e.g. an
> A09 can be appended without making the database inaccurate.
>
> Tschö,
> Torsten.
>
> --
> Torsten Bronger
>
> 
> 
> darktable user mailing list
> to unsubscribe send a mail to darktable-user+unsubscribe@
> lists.darktable.org
>
>


darktable user mailing list
to unsubscribe send a mail to darktable-user+unsubscr...@lists.darktable.org



[darktable-user] Re: Is it possible to configure "alias lenses"

2017-07-26 Thread Torsten Bronger
Hallöchen!

Аl Воgnеr writes:

> [...]
>
> I agree and there are a lot of lenses, which could be added
> immediately to lensfun, because the difference is e.g. the motor
> of the lens or the lens coating or image stabilization. I sent a
> mail to Bronger of lensfun, but got no reply until today, if he is
> willing to add such lenses.
>
> e.g. all the Pentax lenses with smc vs. HD, Sigma HSM and without
> HSM, Sigma OS and without, Tamron SP AF and without SP.
>
> My Tamron SP AF 28-75mm F2.8 XR Di (A09) has A09 at the end and
> has to be entered manually.

Sadly, this is a lot of lenses.  While I think that an "alias"
feature is needed in Lensfun (even more so for cameras), it is
difficult to map to Darktable (show all names, show only the first
name, take region into account).

Currently, we simply copy the lens entries and mark them as copies
in XML comments.  In the furture, they are replaced with alias tags.

That said, often one gets away with expanding the lens model name.
Note that excess words in a lens model name are ignored by Lensfun
while matching (at least in the mode by which Darktable uses
Lensfun).  This does not help with the smc/HD thingy, but e.g. an
A09 can be appended without making the database inaccurate.

Tschö,
Torsten.

-- 
Torsten Bronger


darktable user mailing list
to unsubscribe send a mail to darktable-user+unsubscr...@lists.darktable.org