Bug 14017

Summary: [CAIRO] Unwanted gradient effect for small stretched images
Product: WebKit Reporter: Alp Toker <alp>
Component: New BugsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: gwright
Priority: P2    
Version: 523.x (Safari 3)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Screenshot of the bad rendering
none
Use CAIRO_FILTER_NEAREST to work around the issue
none
Use CAIRO_FILTER_NEAREST to work around the issue, take two eric: review+

Alp Toker
Reported 2007-06-06 10:50:35 PDT
The unwanted effect is seen at http://news.bbc.co.uk/ A screenshot is attached.
Attachments
Screenshot of the bad rendering (82.50 KB, image/png)
2007-06-06 10:58 PDT, Alp Toker
no flags
Use CAIRO_FILTER_NEAREST to work around the issue (2.18 KB, patch)
2007-06-06 11:12 PDT, Alp Toker
no flags
Use CAIRO_FILTER_NEAREST to work around the issue, take two (2.18 KB, patch)
2007-06-06 11:14 PDT, Alp Toker
eric: review+
Alp Toker
Comment 1 2007-06-06 10:58:16 PDT
Created attachment 14882 [details] Screenshot of the bad rendering
Alp Toker
Comment 2 2007-06-06 11:12:32 PDT
Created attachment 14883 [details] Use CAIRO_FILTER_NEAREST to work around the issue
Alp Toker
Comment 3 2007-06-06 11:14:33 PDT
Created attachment 14884 [details] Use CAIRO_FILTER_NEAREST to work around the issue, take two Updated with tiny a formatting fix in the ChangeLog entry
Eric Seidel (no email)
Comment 4 2007-06-06 11:19:17 PDT
Comment on attachment 14884 [details] Use CAIRO_FILTER_NEAREST to work around the issue, take two Looks sane enough. r=me.
Sam Weinig
Comment 5 2007-06-06 11:25:49 PDT
Landed in r22030.
Alp Toker
Comment 6 2007-06-07 05:08:26 PDT
*** Bug 14016 has been marked as a duplicate of this bug. ***
George Wright
Comment 7 2007-08-29 12:27:59 PDT
Speaking to the cairo people this may not be the optimal solution to this problem. The gradient is a result of the extend method being set to CAIRO_EXTEND_NONE. If you set it to CAIRO_EXTEND_REPEAT or CAIRO_EXTEND_REFLECT the gradient problem goes away, and it allows for better scaling quality using CAIRO_FILTER_GOOD etc.
Note You need to log in before you can comment on or make changes to this bug.