Bug 388476 - Missing image metadata in gallery.xml
Summary: Missing image metadata in gallery.xml
Status: RESOLVED DUPLICATE of bug 147768
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-Generic-HTMLGallery (show other bugs)
Version: 5.6.0
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-03 04:09 UTC by dotCOMmie
Modified: 2019-11-25 15:02 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dotCOMmie 2018-01-03 04:09:51 UTC
Exporting to html gallery some important information about the image is incorrect / missing:


collections/collection/image/title
Field maps to file name [1] instead of image title; I think this used to be the case with the KIPI based html export as well.


collections/collection/image/date
Field is missing for some reason; without this field its not possible to sort the generated album using XSL:sort. Work around is to use collections/collection/image/exif/exifimagedatetime but it has its own challenges as described below.

collections/collection/image/exif/exifimagedatetime
The date gets converted to local date/time format of system on which the gallery was created [2], this makes it hard for a theme writer to do anything with the date. There is value in keeping this field as is, but it would be very handy is ISO8601 variant of this field was also supplied so it could be treated in standards compatible way.


[1] https://github.com/KDE/digikam/blob/9330f9c1e25ce754f374abac840bef2521a032ca/utilities/assistants/htmlgallery/generator/galleryelement.cpp#L37
[2] https://github.com/KDE/digikam/blob/c18ce5dad78e1985626a01ef3251b0f09153b724/utilities/assistants/htmlgallery/generator/galleryelementfunctor.cpp#L278
Comment 1 Bob 2019-11-23 22:10:49 UTC
I agree that it would be good to see the gallery.xml file generated with the descriptive image title (if one has been set) rather than repeating the original filename within the `collections/collection/image/title` XML element. (Would still be good to keep a dedicated element for the original filename too, though.)

I hadn't spotted that the datetime was adjusted, but I agree that a new element containing the original value should be available.

And, while we're on the subject of data which would be desirable when creating HTML gallery themes, I'd like to see an XML element which contains child elements holding the tags applied to each image, so that this could optionally be used in an HTML gallery. So gallery.xml would, within each image element, contain something like this:

<tags>
  <tag>located/United-Kingdom/London/City-Of-London</tag>
  <tag>organised/Wiki-Loves-Monuments-2018</tag>
  <tag>released/Creative-Commons_Attribution-ShareAlike-4.0-International</tag>
  <tag>warning/Time-Is-GMT</tag>
</tags>
Comment 2 Bob 2019-11-25 15:02:37 UTC
This request actually duplicates an earlier request for additional image/collection metadata. See bug 147768.

*** This bug has been marked as a duplicate of bug 147768 ***