Bug 199981

Summary: XMP synchronization of digiKam namespace occurs for second tag
Product: [Applications] digikam Reporter: Tim Jenness <tim.jenness>
Component: Metadata-XmpAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal    
Priority: NOR    
Version: 1.0.0   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In: 1.0.0

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...