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

Gilles Caulier caulier.gilles at free.fr
Mon Mar 6 08:15:16 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:15 -------
SVN commit 516186 by cgilles:

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

TODO : fix this implementation to use Exiv2 instead libkexif in the future.

CCMAIL: digikam-devel kde org

CCBUGS: 119946


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


--- trunk/extragear/graphics/digikam/kioslave/digikamthumbnail.cpp #516185:516186
 @ -51,11 +51,14  @
 #include <kprocess.h>
 #include <kio/thumbcreator.h>
 
+// Lib KExif includes.
+
+#include <libkexif/kexifdata.h>
+
 // Local includes
 
 #include "dcraw_parse.h"
 #include "dimg.h"
-#include "exiforientation_p.h"
 #include "digikamthumbnail.h"
 #include "digikam_export.h"
 
 @ -83,8 +86,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