Bug 199981 - XMP synchronization of digiKam namespace occurs for second tag
Summary: XMP synchronization of digiKam namespace occurs for second tag
Status: RESOLVED NOT A BUG
Alias: None
Product: digikam
Classification: Applications
Component: Metadata-Xmp (show other bugs)
Version: 1.0.0
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-13 10:10 UTC by Tim Jenness
Modified: 2017-08-13 07:30 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 1.0.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Jenness 2009-07-13 10:10:21 UTC
Version:           1.0.0-beta2 (using KDE 4.2.4)
OS:                Linux
Installed from:    Gentoo Packages

I have enabled the synchronization of metadata to files. In version 1.0.0-beta2 if I add a tag to a file the XMP metadata tab is updated in digikam to reflect that an XMP section has been written but the digiKam section is not present. The file includes the following XMP information:

Xmp.tiff.Software                            XmpText    19  digiKam-1.0.0-beta2                        
Xmp.tiff.DateTime                            XmpText    19  2007-05-13T14:52:58                        
Xmp.xmp.CreatorTool                          XmpText    19  digiKam-1.0.0-beta2                        
Xmp.xmp.CreateDate                           XmpText    19  2007-05-13T14:52:58                        
Xmp.xmp.MetadataDate                         XmpText    19  2007-05-13T14:52:58                        
Xmp.xmp.ModifyDate                           XmpText    19  2007-05-13T14:52:58                        
Xmp.exif.DateTimeOriginal                    XmpText    19  2007:05:13 14:52:58                        
Xmp.photoshop.DateCreated                    XmpText    19  2007-05-13T14:52:58    

Adding a second tag leads to the digiKam section appearing in the XMP metadata tab and in the file (and the lr. namespace appears in the file). In my testing the other day I got the impression that adding an additional tag would not appear until the tag after was added but I can not reproduce this now. It just seems that digiKam tags are not synched until there are at least two so it looks like an off by one error in the code somewhere.
Comment 2 Tim Jenness 2009-07-14 00:08:57 UTC
Thanks. I'll try to rebuild digikam with some debugging to see whether it enters that routine the first time. Do you see the behaviour that I see or does it all seem to work for you?
Comment 3 caulier.gilles 2009-07-14 00:11:30 UTC
For me add/remove tag work fine here. but perhaps i miss something...

Gilles
Comment 4 Tim Jenness 2009-07-14 00:17:23 UTC
Works for me as well. It's only when I start with an untagged photo without any XMP or IPTC information and then tag it that I get the partial write of XMP information. When the second tag is added the first tag is also written to the file and then I can add and delete whatever I want. Will try the test again tonight.
Comment 5 Tim Jenness 2009-07-14 08:31:08 UTC
Rebuilt the whole thing and now it does work and writes the tag instantly. Sorry for the noise. I wonder if it was caused by the program originally being built against an exiv2 0.18 that did not have XMP enabled...