[Digikam-devel] [Bug 127583] keywords, copyright, photographer info not saved to IPTC tags.
Marcel Wiesweg
marcel.wiesweg at gmx.de
Sat Feb 10 16:45:42 GMT 2007
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=127583
------- Additional Comments From marcel.wiesweg gmx de 2007-02-10 17:45 -------
SVN commit 632313 by mwiesweg:
Write metadata to file when saving from ImageEditor
CCBUG: 127583
M +12 -0 imagewindow.cpp
--- trunk/extragear/graphics/digikam/utilities/imageeditor/editor/imagewindow.cpp #632312:632313
@ -766,6 +766,11 @
// put image in cache, the LoadingCacheInterface cares for the details
LoadingCacheInterface::putImage(m_savingContext->destinationURL.path(), m_canvas->currentImage());
+ // Write metadata from database to file
+ MetadataHub hub;
+ hub.load(d->imageInfoCurrent);
+ hub.write(d->imageInfoCurrent->filePath(), MetadataHub::FullWrite);
+
// notify main app that file changed
emit signalFileModified(m_savingContext->destinationURL);
@ -824,7 +829,14 @
d->urlCurrent = m_savingContext->destinationURL;
m_canvas->switchToLastSaved(m_savingContext->destinationURL.path());
+
slotUpdateItemInfo();
+
+ // Write metadata from database to file
+ MetadataHub hub;
+ hub.load(d->imageInfoCurrent);
+ hub.write(d->imageInfoCurrent->filePath(), MetadataHub::FullWrite);
+
// If the DImg is put in the cache under the new name, this means the new file will not be reloaded.
// This may irritate users who want to check for quality loss in lossy formats.
// In any case, only do that if the format did not change - too many assumptions otherwise (see bug #138949).
More information about the Digikam-devel
mailing list