Template identification after camera download don't work...

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Template identification after camera download don't work...

Gilles Caulier-4
Marcel,

Since your commit yesterday evening, something is broken.

Open camera GUI, and set a template to apply. Download an item.
Template info are applied to XMP.

Now go to target album and select item. In Caption and Tags, Template
applied to image must be selected in combobox, but it's not the case.

With my last debug statement, i can see :

digikam(25834)/digikam (core) Digikam::Template::operator==: ("Linus")
("Linus") true
digikam(25834)/digikam (core) Digikam::Template::operator==: "Linux
kernel coordinator" "Linux kernel coordinator" true
digikam(25834)/digikam (core) Digikam::Template::operator==: "Linux
team" "Linux team" true
digikam(25834)/digikam (core) Digikam::Template::operator==: "(C)
Linus Torvalds - 2009" "(C) Linus Torvalds - 2009" true
digikam(25834)/digikam (core) Digikam::Template::operator==: "" "GPL"
false
digikam(25834)/digikam (core) Digikam::Template::operator==:
"www.kernel.org" "www.kernel.org" true
digikam(25834)/digikam (core) Digikam::Template::operator==:
"www.kernel.org" "To be distributed over the world" false

Template title applied to my image is "Linus" of course. Not all
properties are not egal here, but in XMP, all is fine.

Note : From icon view, select an item, remove XMP, go to caption and
tags and apply a template. leave icon view item focus and go back :
template is found properly...

Gilles
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

Re: Template identification after camera download don't work...

Marcel Wiesweg
> Since your commit yesterday evening, something is broken.
>
> Open camera GUI, and set a template to apply. Download an item.
> Template info are applied to XMP.
>
> Now go to target album and select item. In Caption and Tags, Template
> applied to image must be selected in combobox, but it's not the case.
>
> With my last debug statement, i can see :
>
> digikam(25834)/digikam (core) Digikam::Template::operator==: ("Linus")
> ("Linus") true
> digikam(25834)/digikam (core) Digikam::Template::operator==: "Linux
> kernel coordinator" "Linux kernel coordinator" true
> digikam(25834)/digikam (core) Digikam::Template::operator==: "Linux
> team" "Linux team" true
> digikam(25834)/digikam (core) Digikam::Template::operator==: "(C)
> Linus Torvalds - 2009" "(C) Linus Torvalds - 2009" true
> digikam(25834)/digikam (core) Digikam::Template::operator==: "" "GPL"
> false
> digikam(25834)/digikam (core) Digikam::Template::operator==:
> "www.kernel.org" "www.kernel.org" true
> digikam(25834)/digikam (core) Digikam::Template::operator==:
> "www.kernel.org" "To be distributed over the world" false

There were two subtle copy&paste bugs in ImageScanner when reading the
metadata into the database, first reading a null rightsUsageTerms, secondly
reading the source a second time for instructions. That explains the two
failures above.

Marcel

_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel