Bug 136258 - User comments in the EXIF/IPTC-data aren't carried over to the "Comments"
Summary: User comments in the EXIF/IPTC-data aren't carried over to the "Comments"
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-Generic-MetadataEdit (show other bugs)
Version: 0.9.0
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-24 21:33 UTC by Caspar Maessen
Modified: 2017-07-08 05:59 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 0.9.0


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:33:49 UTC
Version:           svn 597473 (using KDE KDE 3.5.5)
Installed from:    SuSE RPMs
OS:                Linux

Selected multiple files to edit the EXIF-field "User comments" trying to fill batch-like the digikam-comments (see bugreport 136257 as well). The info didn't carry over.
Comment 1 caulier.gilles 2006-10-25 09:01:05 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 2 caulier.gilles 2006-12-12 13:38:52 UTC
Caspar,

This file is obsolete now. The MetadataEdit plugin has changed. There is no batch process mode with this plugin to edit EXIF/IPTC informations. Of course, you can edit a pictures serie but one by one.

In other way, i have add a special tool in this plugin to edit Pictures Comments (and only comments) in batch mode. IPTC and EXIF tags can be sync.

http://digikam3rdparty.free.fr/Screenshots/KipipluginBatchCommentsEditor.png

I close this file now.

Gilles Caulier
Comment 3 Caspar Maessen 2006-12-12 19:35:45 UTC
I appreciate the fact that for the moment you stick with the 
MetadataEdit plugin. But most people will agree that editing more or 
less generic data like name, copyright and contactinformation file by 
file, is a nusance. For the moment I solved this with exiv2 in a 
script, but I sincerely hope that a more userfriendly form will be 
implemented in the future.

Caspar.