[Digikam-devel] [Bug 126326] digikam: camera download: auto-rotated images loose EXIF info when 'No EXIF information found.' is written to console
Achim Bohnet
ach at mpe.mpg.de
Thu Apr 27 01:05:58 BST 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=126326
------- Additional Comments From ach mpe mpg de 2006-04-27 02:05 -------
SVN commit 534392 by ach:
digikam stable: more debug output
CCBUGS: 126326
M +5 -1 libs/jpegutils/exifrotate.cpp
M +4 -1 utilities/cameragui/cameracontroller.cpp
--- branches/stable/extragear/graphics/digikam/libs/jpegutils/exifrotate.cpp #534391:534392
@ -61,9 +61,13 @
KExifData exifData;
if (!exifData.readFromFile(file))
{
- kdDebug() << "No exif data found into " << file << endl;
+ kdDebug() << "No exif data found into " << file << endl;
return true;
}
+ // start debug:
+ QFile foo(file);
+ kdDebug() << file << " = " << foo.size() << " bytes, orient =" << exifData.getImageOrientation() << endl;
+
JCOPY_OPTION copyoption = JCOPYOPT_ALL;
jpeg_transform_info transformoption;
--- branches/stable/extragear/graphics/digikam/utilities/cameragui/cameracontroller.cpp #534391:534392
@ -324,10 +324,13 @
{
if (autoRotate)
{
+ kdDebug() << "Autorotate : " << file << " \tusing " << tempURL.path() << endl;
sendInfo(i18n("EXIF rotating file %1...")
.arg(file));
Digikam::exifRotate(tempURL.path());
- }
+ } else {
+ kdDebug() << "No Autorotate: " << file << endl;
+ }
// move the file to the destination file
if (rename(QFile::encodeName(tempURL.path()),
More information about the Digikam-devel
mailing list