New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 773630 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner: ----
Closed: Oct 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

Incorrect WebP rendering in some versions of Chrome

Reported by j...@cloudinary.com, Oct 11 2017

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36

Example URL:

Steps to reproduce the problem:
Some WebP images with a weird color profile render differently depending on the Chrome version/platform.

What is the expected behavior?
The image is expected to render in the same way on all Chrome versions/platforms, but it doesn't.

What went wrong?
This issue is described in detail in the libwebp bug tracker:
https://bugs.chromium.org/p/webp/issues/detail?id=361

If the problem is related to the interpretation of the color profile, then it is probably not a libwebp issue but rather a chrome issue.

Does it occur on multiple sites: Yes

Is it a problem with a plugin? No 

Did this work before? N/A 

Does this work in other browsers? N/A

Chrome version: 61.0.3163.100  Channel: stable
OS Version: OS X 10.12.6
Flash Version:
 
Cc: brianosman@chromium.org mtklein@chromium.org
Attaching the original PNG from the other bug. (Can you attach the WEBP file?) To sum up the comments there (and ignoring older versions of Chrome):

- This image has a bad color profile, which libpng/Chromium "correctly" ignores
- Converting it to a WEBP (with cwebp -metadata all) keeps the profile
- The image draws incorrectly on Mac and 64-bit Chrome, but correctly on 32-bit Chrome (v61)

Does that sound right?
problem_image.png
3.7 KB View Download
Components: -Blink Blink>Image
Labels: Needs-Feedback
NextAction: 2017-10-23
Could you please be specific about which version/platform combinations fail and which ones work correctly?

Comment 4 by j...@cloudinary.com, Oct 12 2017


Chrome version 59
PC (64-bit) - For both retina and non-retina displays, the WebP image is not the same as the original PNG image.

Chrome version 60
MAC - On all screens (retina and non-retina) the WebP image is the same as the original PNG image.
PC (32-bit) - On all screens (retina and non-retina) the WebP image is the same as the original PNG image.

Chrome version 61
PC (32-bit) - On all screens (retina and non-retina) the WebP image is the same as the original PNG image.
PC (64-bit) - For both retina and non-retina displays, the WebP image is not the same as the original PNG image.
MAC - Bad on retina, but good on non-retina.
Project Member

Comment 5 by sheriffbot@chromium.org, Oct 12 2017

Cc: schenney@chromium.org
Labels: -Needs-Feedback
Thank you for providing more feedback. Adding requester "schenney@chromium.org" to the cc list and removing "Needs-Feedback" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Cc: ccameron@chromium.org
Components: Internals>Images>Codecs
So where could the problem be? It's not at all clear to me why 32 vs 64 bit builds would differ, or even why HighDPI would matter (although I suppose we scale the image on HighDPI?)

Also, jon@, could you attach the webp file? We don't want any ambiguity in our testing.
Labels: Needs-Triage-M61

Comment 8 by hdodda@chromium.org, Oct 16 2017

Labels: Needs-Feedback
@jon-- Could you please respond to comment #6 and update the thread.

Thanks!

Comment 9 by j...@cloudinary.com, Oct 16 2017

Here is the problematic WebP.
problem_image.webp
3.8 KB View Download
Project Member

Comment 10 by sheriffbot@chromium.org, Oct 16 2017

Cc: hdodda@chromium.org
Labels: -Needs-Feedback
Thank you for providing more feedback. Adding requester "hdodda@chromium.org" to the cc list and removing "Needs-Feedback" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Components: -Blink>Image
Starting the triage process with the codec end of things to verify that everything happening there is correct. We can move up the stack once we get decoding verified.
Very likely related to
https://bugs.chromium.org/p/chromium/issues/detail?id=747640#c19

There are lots of WebP images out there that do not set ALPHA_FLAG in WEBP_FF_FORMAT_FLAGS, but yet expect the image's alpha channel to be read.

Depending on the color conversion path, Chrome will sometimes read the alpha channel even if ALPHA_FLAG isn't set -- we shouldn't count on that.
The NextAction date has arrived: 2017-10-23
NextAction: ----
Status: Available (was: Unconfirmed)
Marking as available based on comment #c12.
Status: WontFix (was: Available)
Marking as WontFix on the Chrome side -- these are invalid WebP files as per
https://bugs.chromium.org/p/webp/issues/detail?id=361

Sign in to add a comment