Bug 103618

Summary: save as: EXIF information not saved
Product: [Applications] digikam Reporter: Dik Takken <kde>
Component: DImg-FileIOAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles
Priority: NOR    
Version: 0.7.2   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In: 7.5.0

Description Dik Takken 2005-04-10 19:54:01 UTC
Version:           0.7.2 (using KDE KDE 3.3.2)
Installed from:    Gentoo Packages
OS:                Linux

When you save your edited photo to a new file, the EXIF information is not saved.
Comment 1 Renchi Raju 2005-04-11 13:43:05 UTC
are both original and new files jpeg images? does the original file have exif info? also, start digikam from a terminal and check for any messages on the terminal, when you save the file
Comment 2 Dik Takken 2005-04-11 20:02:13 UTC
> are both original and new files jpeg images?

Yes.

> does the original file have exif info?

Yes.

> start digikam from a terminal and check for any messages on the terminal, when you save the file

Digikam is completely silent when executed from a terminal. Also no messages when opening images / saving images.
Comment 3 Renchi Raju 2005-04-12 18:20:12 UTC
CVS commit by pahlibar: 



if format is empty, assume same format as source file. this fixes the exifrestorer
to write out exif of original file to new file
BUGS: 103618


  M +7 -0      imagewindow.cpp   1.99


--- kdeextragear-3/digikam/utilities/imageeditor/imagewindow.cpp  #1.98:1.99
@@ -986,4 +986,11 @@ void ImageWindow::slotSaveAs()
     m_newFile = imageFileSaveDialog->selectedURL();
     QString format = KImageIO::typeForMime(imageFileSaveDialog->currentMimeFilter());
+    if (format.isEmpty())
+    {
+        // if the format is empty then file format is same as that of the
+        // original file
+        format = QImageIO::imageFormat(m_urlCurrent.path());
+    }
+    
     delete imageFileSaveDialog;