[Digikam-devel] [Bug 119946] thumbnails not correctly rotated according to exif information

Gilles Caulier caulier.gilles at free.fr
Mon Mar 6 08:18:33 GMT 2006


------- 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=119946         




------- Additional Comments From caulier.gilles free fr  2006-03-06 09:18 -------
SVN commit 516187 by cgilles:

digikam from stable : Fix Exif auto-rotate thumbnails method in kioslave to use libKexif instead embedded implementation.

CCMAIL: digikam-devel kde org

CCBUGS: 119946


 M  +8 -3      digikamthumbnail.cpp  
 D             exiforientation_p.h  


--- branches/stable/extragear/graphics/digikam/kioslave/digikamthumbnail.cpp #516186:516187
 @ -55,6 +55,10  @
 #include <kprocess.h>
 #include <kio/thumbcreator.h>
 
+// Lib KExif includes.
+
+#include <libkexif/kexifdata.h>
+
 // C Ansi includes.
 
 extern "C"
 @ -75,7 +79,6  @
 // Local includes
 
 #include "dcraw_parse.h"
-#include "exiforientation_p.h"
 #include "digikamthumbnail.h"
 
 #define X_DISPLAY_MISSING 1
 @ -88,8 +91,10  @
     // Rotate thumbnail based on EXIF rotate tag
     QWMatrix matrix;
 
-    KExifData::ImageOrientation orientation
-        = getExifOrientation(filePath);
+    KExifData ke;
+    ke.readFromFile(filePath);
+    KExifData::ImageOrientation orientation = ke.getImageOrientation();
+    kdDebug() << "Image Orientation: " << (KExifData::ImageOrientation)orientation << endl;
 
     bool doXform = (orientation != KExifData::NORMAL &&
                     orientation != KExifData::UNSPECIFIED);



More information about the Digikam-devel mailing list