Version: (using KDE 4.2.2) OS: Linux Installed from: Debian testing/unstable Packages If I open a tiff image in Okular and rotate it (menu: View->Orientation->Rotate Right), the rotated image appears distorted. The problem does not appear with the same image as a PNG file. I'm attaching both images (PNG and TIFF) as well as a screenshot showing ugly corruption on the side. Best guess: someone forgets to switch x and y dimensions. HTH, Romain
Created attachment 34110 [details] PNG image, rotation works fine
Created attachment 34112 [details] TIFF image, rotation is broken The TIFF image was obtained from the PNG one by using ImageMagick's convert tool.
Created attachment 34113 [details] Screenshot showing distortion and corrupted data
SVN commit 979245 by pino: swapping was needed... 3 years ago, but it is not anymore BUG: 194572 M +0 -2 generator_tiff.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=979245
Hi, looking at the code in 4.2.4 (I don't have a KDE svn checkout), I see there's another similar qSwap a few lines below: qSwap(reqwidth, reqheight) If I comment the first one only (your commit), then the image is still stretched => bug not fixed :(. If I comment the second one only, then the image is correctly rotated but black areas appear on the side. Almost there. If I comment *both*, then it all works fine. Again, this is on the 4.2.4 branch, so maybe things are different in svn. Anyway thanks for the fix. Regards, Romain