Bug 14578 - Poppler should paint images with CAIRO_EXTEND_PAD
Summary: Poppler should paint images with CAIRO_EXTEND_PAD
Status: RESOLVED FIXED
Alias: None
Product: poppler
Classification: Unclassified
Component: cairo backend (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: poppler-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 12143
  Show dependency treegraph
 
Reported: 2008-02-20 03:30 UTC by Carl Worth
Modified: 2009-07-19 08:50 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
PDF file to demonstrate the bug (2.69 KB, application/pdf)
2008-02-20 03:31 UTC, Carl Worth
Details
Current, undesired output from poppler (yes, cairo's fault!) (473 bytes, image/png)
2008-02-20 03:32 UTC, Carl Worth
Details
Desired rendering (256 bytes, image/png)
2008-02-20 03:32 UTC, Carl Worth
Details

Description Carl Worth 2008-02-20 03:30:37 UTC
Now, I feel somewhat bad posting this bug, because I know poppler would
have liked to have done better in this regard a long time ago, and it's
only been cairo that's holding it back. But, now, finally, with the
upcoming cairo 1.6 release, there will finally be a CAIRO_EXTEND_PAD
so that scaled images can be drawn without blurred edges.

There's not any way for the PDF file to hint what kind of filtering is
desired is there? If so, then cairo would love to hint exactly what's
desired.

-Carl
Comment 1 Carl Worth 2008-02-20 03:31:37 UTC
Created attachment 14439 [details]
PDF file to demonstrate the bug
Comment 2 Carl Worth 2008-02-20 03:32:15 UTC
Created attachment 14440 [details]
Current, undesired output from poppler (yes, cairo's fault!)
Comment 3 Carl Worth 2008-02-20 03:32:42 UTC
Created attachment 14441 [details]
Desired rendering
Comment 4 Carlos Garcia Campos 2009-06-03 05:28:44 UTC
This bug seems to be fixed after applying patch attached to bug #9860
Comment 5 Carlos Garcia Campos 2009-07-19 08:50:24 UTC
(In reply to comment #0)
> There's not any way for the PDF file to hint what kind of filtering is
> desired is there? If so, then cairo would love to hint exactly what's
> desired.

Yes, the 'Interpolate' field in the Image dictionary, now CAIRO_FILTER_FAST is used when Interpolate flag is not present, and CAIRO_FILTER_BEST otherwise. In addition, CAIRO_EXTEND_PAD is used in drawImage() method now, we still have to fix the other image methods, though. 







Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.