[Poppler-bugs] [Bug 103136] [Regression] Cairo 1.14 downscaling very slow in poppler 0.60.1
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Mon Feb 26 21:49:44 UTC 2018
https://bugs.freedesktop.org/show_bug.cgi?id=103136
--- Comment #15 from Josiah Schwab <jschwab at gmail.com> ---
After 791e024, I was finally able to build poppler.
I made the following change (which I think what was being suggested) and while
things are still a bit slow compared to what I remember as the old behavior, it
is now usable for me.
poppler/CairoOutputDev.cc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/poppler/CairoOutputDev.cc b/poppler/CairoOutputDev.cc
index bc83b807..ffb4a8ee 100644
--- a/poppler/CairoOutputDev.cc
+++ b/poppler/CairoOutputDev.cc
@@ -1970,7 +1970,7 @@ CairoOutputDev::getFilterForSurface(cairo_surface_t
*image,
GBool interpolate)
{
if (interpolate)
- return CAIRO_FILTER_BEST;
+ return CAIRO_FILTER_GOOD;
int orig_width = cairo_image_surface_get_width (image);
int orig_height = cairo_image_surface_get_height (image);
@@ -1990,7 +1990,7 @@ CairoOutputDev::getFilterForSurface(cairo_surface_t
*image,
if (scaled_width / orig_width >= 4 || scaled_height / orig_height >= 4)
return CAIRO_FILTER_NEAREST;
- return CAIRO_FILTER_BEST;
+ return CAIRO_FILTER_GOOD;
}
void CairoOutputDev::drawImageMask(GfxState *state, Object *ref, Stream *str,
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/poppler-bugs/attachments/20180226/58a0a6e6/attachment-0001.html>
More information about the Poppler-bugs
mailing list