[gs-bugs] [Bug 691856] page rendering blurry when rotated (=?UTF-8?Q?90=C2=B0=20or=20270=C2=B0?=)

bugzilla-daemon at ghostscript.com bugzilla-daemon at ghostscript.com
Wed Jan 5 14:23:13 UTC 2011


http://bugs.ghostscript.com/show_bug.cgi?id=691856

--- Comment #5 from Sebastian Rasmussen <sebras at hotmail.com> 2011-01-05 14:23:11 UTC ---
If I apply the patch below I get a blurry rendering at all rotations.
So it is the linear interpolation that causes the blurriness and the
interpolation is not present if the image is rectilinear and not upscaled.

sebras at hostname:~/src/mupdf2.tor$ darcs diff
diff -rN -udp old-mupdf2.tor/draw/imagedraw.c new-mupdf2.tor/draw/imagedraw.c
--- old-mupdf2.tor/draw/imagedraw.c     2011-01-05 15:11:52.000000000 +0100
+++ new-mupdf2.tor/draw/imagedraw.c     2011-01-05 15:11:52.000000000 +0100
@@ -288,7 +288,7 @@ fz_paintimageimp(fz_pixmap *dst, fz_bbox
        }

        /* turn on interpolation for upscaled and non-rectilinear transforms */
-       dolerp = 0;
+       dolerp = 1;
        if (!fz_isrectilinear(ctm))
                dolerp = 1;
        if (sqrtf(ctm.a * ctm.a + ctm.c * ctm.c) > img->w)

-- 
Configure bugmail: http://bugs.ghostscript.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the gs-bugs mailing list