Bug 136256

Summary: Tags are not filled from the IPTC-keywords.
Product: [Applications] digikam Reporter: Caspar Maessen <cmaessen>
Component: Tags-KeywordsAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In: 0.9.0
Sentry Crash Report:

Description Caspar Maessen 2006-10-24 21:16:52 UTC
Version:           svn 597473 (using KDE KDE 3.5.5)
Installed from:    SuSE RPMs
OS:                Linux

The tags of an imagefile with the IPTC-keywordfield filled stay empty.
Comment 1 caulier.gilles 2006-10-25 07:31:41 UTC
Caspar,

Give us more informations. Are you used the MetadataEdit kipi plugin (is still under development) ?
Comment 2 caulier.gilles 2006-10-25 09:01:06 UTC
SVN commit 598955 by cgilles:

digikam from trunk : KipiInterface : if a kipi-plugin change pictures metadata, use libkipi::Interface::refreshImages() to update sidebar Metadata contents.

Important: Marcel, this way do not yet update database contents accordinly with metadata contents (Tags/Rating/date/comments <==> EXIF/IPTC) from an existing item in picture collections. This requires more indeep changes in Digikam::Scanlib and digikam::AlbumDB class. We need to discut about these changes together.

CCMAIL: marcel.wiesweg@gmx.de
CCBUGS: 136260, 136258, 136256

 M  +8 -2      kipiinterface.cpp  


--- trunk/extragear/graphics/digikam/digikam/kipiinterface.cpp #598954:598955
@@ -62,6 +62,7 @@
 #include "dmetadata.h"
 #include "imageattributeswatch.h"
 #include "kipiinterface.h"
+#include "kipiinterface.moc"
 
 namespace Digikam
 {
@@ -597,6 +598,13 @@
 
 void DigikamKipiInterface::refreshImages( const KURL::List& urls )
 {
+    KURL::List ulist = urls;
+
+    // Re-scan metadata from pictures. This way will update Metadata sidebar and database.
+    for ( KURL::List::Iterator it = ulist.begin() ; it != ulist.end() ; ++it )
+        ImageAttributesWatch::instance()->fileMetadataChanged(*it);
+    
+    // Refresh preview.
     albumManager_->refreshItemHandler(urls);
 }
 
@@ -685,5 +693,3 @@
 
 }  // namespace Digikam
 
-#include "kipiinterface.moc"
-
Comment 3 caulier.gilles 2006-12-12 14:24:28 UTC
Caspar,

Please give me a fresh feedback using current implementation from svn of digiKam and kipi-plugins. Thanks in advance

Gilles
Comment 4 Caspar Maessen 2006-12-12 20:54:04 UTC
Placed an imagefile with filled iptc keywords via konqueror in an 
album . Opened digiKam to view the file and its tags. This works OK.

Caspar.
Comment 5 caulier.gilles 2006-12-12 21:24:10 UTC
ok, closed...

Gilles