Summary: | Non-square pixels (e.g. for FAX) are not handled properly. | ||
---|---|---|---|
Product: | [Applications] okular | Reporter: | Steve Underwood <steveu> |
Component: | TIFF backend | Assignee: | Okular developers <okular-devel> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | 0.6.3 | ||
Target Milestone: | --- | ||
Platform: | Fedora RPMs | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Attachments: | Simple FAX Tiff file |
Description
Steve Underwood
2008-05-31 06:38:53 UTC
Do you have a sample document which shows the issue? Created attachment 25026 [details]
Simple FAX Tiff file
Attached is the simplest possible test TIFF file - a plain white standard
resolution A4 FAX page. When displayed in okular it looks much wider than it is
high. However, using tiffdump on the file you will see that it is as follows:
ImageWidth (256) SHORT (3) 1<1728>
ImageLength (257) SHORT (3) 1<1100>
ResolutionUnit (296) SHORT (3) 1<2>
XResolution (282) RATIONAL (5) 1<204>
YResolution (283) RATIONAL (5) 1<98>
Now, 1728 pixels wide at 204 per inch is 8.47 inches wide, and 1100 lines at 98
per inch is 11.22 inches long. The image should actually be the shape of a
normal A4 page.
Thanks for the test case, useful indeed; would you mind adding some graphics to it, so I can test the rendering as well? Oh, found one in an old email :) SVN commit 814835 by pino: If a directory in a TIFF carries information about the resolution, use them to calculate its real size. And, when generating a pixmap, request the RGBA image of the original size. BUG: 162934 M +30 -2 generator_tiff.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=814835 SVN commit 814836 by pino: Backport: If a directory in a TIFF carries information about the resolution, use them to calculate its real size. And, when generating a pixmap, request the RGBA image of the original size. CCBUG: 162934 M +30 -2 generator_tiff.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=814836 |