Bug 339273 - Write file versioning information from database into XMP metadata
Summary: Write file versioning information from database into XMP metadata
Status: REPORTED
Alias: None
Product: digikam
Classification: Applications
Component: Metadata-Versioning (show other bugs)
Version: 4.3.0
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-21 18:08 UTC by Stéphane Bidoul
Modified: 2022-02-02 05:16 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 Stéphane Bidoul 2014-09-21 18:08:28 UTC
In Digikam, it is possible to hide previous versions of an image, so only the latest version is shown.

As far as I can tell this information is only stored in the database. Or at least, it is not possible to know, by looking at the metadata of the original only, that it should be hidden because there is a more recent version.

It would be useful to write the flag (informing the image is a hidden version) in the XMP metadata (and the XMP sidecar file).
Comment 1 caulier.gilles 2014-09-22 07:59:11 UTC
The image history which contain already versioning information into XMP digiKam namespace. This is not enough ?

Exemple:

>>> digiKam schema <<<

CaptionsAuthorNames : 
CaptionsDateTimeStamps : 
ColorLabel : 0
ImageHistory : <?xml version="1.0"?> <history version="1"> <file uuid="6251a840d7847a86ab79fdf351fb6f38eee940ca139c4164fadfa0b829f48166" type="original"> <fileParams fileName="640_IMG_6906_Kapliczka_v1.JPG" filePath="/mnt/data2/photos/TESTS/" fileHash="eee940ca139c4164fadfa0b829f48166" fileSize="119049" creationDate="2013-11-28T16:07:25"/> </file> </history>
ImageUniqueID : ad340046be0d63810f21bd2c03302ec7eee940ca139c4164fadfa0b829f48166
PickLabel : 1

Gilles Caulier
Comment 2 Stéphane Bidoul 2014-09-22 09:13:56 UTC
Hello,

I have seen the ImageHistory field, but I could not find in it the information that a specific version is hidden.

For instance, when you create a version from the original, v1 has the ImageHistory field, but the original does not, and there is no way to know that the original should be hidden.
Comment 3 Peter 2016-10-04 23:54:12 UTC
version 1:
   ImageUniqueID : ad340046be0d63810f21bd2c03302ec7eee940ca139c4164fadfa0b829f48166
version 2:
   ImageHistory : <?xml version="1.0"?> <history version="1"> <file uuid="6251a840d7847a86ab79fdf351fb6f38eee940ca139c4164fadfa0b829f48166" type="original"> ...

This is how digikam determines versions.  Version 2 points back to the ID of version 1.  There's an option in settings to show or hide originals.