<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [Regression] Cairo 1.14 downscaling very slow in poppler 0.60.1"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=103136#c15">Comment # 15</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [Regression] Cairo 1.14 downscaling very slow in poppler 0.60.1"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=103136">bug 103136</a>
              from <span class="vcard"><a class="email" href="mailto:jschwab@gmail.com" title="Josiah Schwab <jschwab@gmail.com>"> <span class="fn">Josiah Schwab</span></a>
</span></b>
        <pre>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,</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>