Commit 26fead33 authored by Marcel Wiesweg's avatar Marcel Wiesweg
Browse files

Do not handle rotation by exif flag with libtiff, which will do weird stuff

like only rotating rows.

BUG: 274865
parent e0123e4b
......@@ -176,4 +176,5 @@ BUGFIXES FROM KDE BUGZILLA (alias B.K.O | http://bugs.kde.org):
148 ==> 274713 : digiKam crashed unexpectedly.
149 ==> 274302 : Search for _two_ keywords with logical "and" fails.
150 ==> 272180 : Camera Device Summary seems to use wrong encoding.
151 ==>
151 ==> 274865 : TIFF files with Exif.Image.Orientation = 1 aren't decoded properly.
152 ==>
......@@ -567,7 +567,9 @@ bool TIFFLoader::load(const QString& filePath, DImgLoaderObserver* observer)
return false;
}
img.req_orientation = ORIENTATION_TOPLEFT;
// libtiff cannot handle all possible orientations, it give weird results.
// We rotate ourselves. (Bug 274865)
img.req_orientation = img.orientation;
// read strips from image: read rows_per_strip, so always start at beginning of a strip
for (uint row = 0; row < h; row += rows_per_strip)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment