Bug 141912 - Sync Metadata Batch Tool does not reflect changes in tags properly
Summary: Sync Metadata Batch Tool does not reflect changes in tags properly
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Maintenance-Engine (show other bugs)
Version: 0.9.1
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-19 09:01 UTC by Daniel Bauer
Modified: 2022-01-22 22:11 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 1.0.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Bauer 2007-02-19 09:01:05 UTC
Version:           0.9.1 svn (using KDE KDE 3.5.6)
Installed from:    SuSE RPMs

if you change the order of a tag tree and then update IPTC using the menu option "sync all Metadata", the "new" tag gets written additionally into IPTC but the "old" remains there.

Example to explain:

tag tree is:

- girlfriends
   - Susi
   - Heidi
   - ...

ex-girlfriends
   - Jane
   - Melanie
   - ...

Now I move tag Susi from girlfriends to ex-girlfriends using the right tags sidebar. Database gets updated, but in IPTC, of course, it's still "girlfriends/Susi". So I use "sync all Metadata". After this IPTC is "girlfriends/Susi, ex-girlfriends/Susi".

I understand that sync doesn't want to delete existing IPTC keywords, but on the other hand, in this case it is still not a real sync. At least it should mirror changes in tags/keywords that are done using digiKam.

As there is no "edit Metadata"-plugin option in the Menu anymore, the wrong IPTC cannot be corrected within digiKam and another app must be used for that. (I used imageMagick to remove all  IPTC headers and then rebuild them with the sync tool of digiKam, but digiKam should offer such possibilities itself, I think).
Comment 1 Marcel Wiesweg 2007-02-23 17:58:35 UTC
I wonder if this could be fixed by providing an option:
Save tags
- preserve existing tags
- overwrite existing tags

All other solutions would require to store a list of all old tag names, which I dont like too much.
Comment 2 Congyi Wu 2007-06-21 03:19:15 UTC
I can confirm this on 0.9.1 final on Kubuntu Feisty.  There's an option to remove ITPC data from all selected images, but I think this removes ALL ITPC data.  You could try this and then resync metadata... if you don't have any other important ITPC tags.
Comment 3 Congyi Wu 2007-06-21 03:38:42 UTC
A quick partial fix would be to delete all copies of the tag being renamed from the ITPC metadata (if auto writing to ITPC keywords is enabled, of course), and then adding them back as the new tags.  If the deleting fails, there will still be the extra copy, but if adding fails, the correct data will be in the database so a sync metadata would add the correct tag back into the ITPC keywords.
Comment 4 caulier.gilles 2009-06-16 10:44:01 UTC
SVN commit 982571 by cgilles:

This is a long standing bug about Tag synchronization to XMP and IPTC keywords.
To wrap around this problem, we remove all previous keywords before to apply new sets.
Marcel, i think MetadataHub is right : new and old tags lists are fine. Problem must be in libkexiv2.
Anyway this patch fix the problem for the moment.
BUGS: 175321
BUGS: 159158
BUGS: 141912
BUGS: 186308
CCMAIL: marcel.wiesweg@gmx.de


 M  +7 -4      metadatahub.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=982571