Bug 175321 - synchronize tags to iptc keywords adds instead of copying
Summary: synchronize tags to iptc keywords adds instead of copying
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Metadata-Iptc (show other bugs)
Version: 0.9.5
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-16 19:53 UTC by Philippe ROUBACH
Modified: 2017-08-13 07:31 UTC (History)
0 users

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 Philippe ROUBACH 2008-11-16 19:53:02 UTC
Version:           0.9.5-beta2 (using 3.5.9, compiled sources)
Compiler:          Target: i586-manbo-linux-gnu
OS:                Linux (i686) release 2.6.24.7-desktop-1mnb

i open the tags tool in the left panel

i click on a tag

several pictures appear in the central window

this tags is "/.../Repères"
i changed it to "/.../Repère"
then
i go to "Album" menu
then
i select "synchronize pictures with db"

result :

each picture has tags list /.../Repères,/.../Repère
instead of just /.../Repère
Comment 1 caulier.gilles 2008-11-16 20:01:03 UTC
Yes, we know this problem. 

In fact by default, digiKam do not removes all previous tags already set in IPTC.

A thread is already started in bugzilla about to add a new option to be able to not preserves old iptc keywords

Gilles Caulier
Comment 2 caulier.gilles 2009-06-11 14:53:57 UTC
Marcel,

I have take a look in this file.

Assign a tag to an image, tag is recorded to IPTC and XMP :

IPTC : as keywords
XMP : as keywords and tags path list into digiKam namespace.

Now, remove tags from your digiKam session. Nothing chnage in metadata. This is normal, because you need to synchronize metadata with DB.

If you do it, the synchronization will only update XMP::digiKam::tags path list, not XMP::keywords and IPTC::keywords. there is a wrong logic somewhere.

i suspect metadatahub.cpp, or perhaps method from KExiv2 to write keywords in IPTC or XMP. Any way, keywords just need to be cleared before to be written.

Your viewpoint ?
Comment 3 caulier.gilles 2009-06-16 10:44:05 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