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.
Code is there : http://lxr.kde.org/source/extragear/graphics/digikam/libs/dmetadata/dmetadata.cpp#578 and this method is called from there : http://lxr.kde.org/source/extragear/graphics/digikam/digikam/metadatahub.cpp#643 Gilles Caulier
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?
For me add/remove tag work fine here. but perhaps i miss something... Gilles
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.
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...