Bad image quality when resized comparing to will-change
Reported by
diiiima...@gmail.com,
Oct 15 2016
|
||||
Issue descriptionUserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36 Example URL: Steps to reproduce the problem: The quality of resized image with will-change:transform is much better than without. I attached screenshot of an issue (left side - image with will-change, right - without). JSFiddle that reproduces the problem – https://jsfiddle.net/DmitrySemenov/uw15g90r/ Firefox & Safari display both images with the same (good) quality. What is the expected behavior? What went wrong? Image quality is off. Does it occur on multiple sites: N/A Is it a problem with a plugin? No Did this work before? N/A Does this work in other browsers? N/A Chrome version: 53.0.2785.143 Channel: n/a OS Version: OS X 10.12.0 Flash Version: Shockwave Flash 23.0 r0
,
Oct 21 2016
This is an old regression, it is probably best to have someone triage this. FYI will-change was enabled in WebKit 171874, d28d53cdef4f40ee4f6f07440f7a01c39dfd2e38.
,
Oct 21 2016
Duplicate? I believe this is expected behavior due to changes in how we decide on the resolution for painting the image when the image destination size is varying.
,
Nov 8 2016
<img> elements which are composited usually have low filter quality for resize. This is because we have assumptions that compositing is optimizing for speed over quality. In addition, will-change: transform is an explicit hint to the browser that the page author wants speed over quality. If you really need a composited layer for your image, but want higher quality, your only recourse right now is to use the following hack: put a background color on the <img>. If it's opaque the background shouldn't show, and our fast path for composited images will be disabled. However, be aware that that hack might not work in the future. This is good feedback however. I'll put an item on our future work list to consider how to guarantee compositing with high-quality image resizing. |
||||
►
Sign in to add a comment |
||||
Comment 1 by jmukthavaram@chromium.org
, Oct 17 2016Components: Blink>Image
Labels: -Pri-2 -Type-Compat M-56 hasbisect OS-Linux OS-Windows Pri-1 Type-Bug-Regression
Owner: dominicc@chromium.org
Status: Assigned (was: Unconfirmed)