Bug 136256 - Tags are not filled from the IPTC-keywords.
Summary: Tags are not filled from the IPTC-keywords.
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Tags-Keywords (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-24 21:16 UTC by Caspar Maessen
Modified: 2022-01-22 22:04 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 0.9.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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