[Digikam-devel] extragear/graphics/digikam/kioslave
Gilles Caulier
caulier.gilles at free.fr
Mon Mar 6 08:15:04 GMT 2006
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 at 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