Summary: | Rotation of tiff images is bugged | ||
---|---|---|---|
Product: | [Applications] okular | Reporter: | Romain <rlerallut> |
Component: | TIFF backend | Assignee: | Okular developers <okular-devel> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Debian testing | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: |
PNG image, rotation works fine
TIFF image, rotation is broken Screenshot showing distortion and corrupted data |
Description
Romain
2009-05-29 18:05:03 UTC
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 |