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

Issue 660838 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: Nov 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

PNGs render with yellowish tint

Reported by das.x...@gmail.com, Oct 31 2016

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2902.0 Safari/537.36

Example URL:
https://commons.wikimedia.org/wiki/File:Screenshot_of_MassMessage_MediaWiki_extension.png

Steps to reproduce the problem:
1. Open any PNG image file

What is the expected behavior?
Untinted image, in true colors expected.

What went wrong?
The colors of the image are being rendered in a warmer colorspace and/or with an added yellow tint.

Does it occur on multiple sites: Yes

Is it a problem with a plugin? No 

Did this work before? Yes 

Does this work in other browsers? N/A

Chrome version: 56.0.2902.0  Channel: dev
OS Version: 10.0
Flash Version: Shockwave Flash 23.0 r0
 

Comment 1 by bokan@chromium.org, Oct 31 2016

Cc: bokan@chromium.org
Components: -Blink Blink>Image
Labels: Needs-Feedback
NextAction: 2016-11-14
Unable to reproduce on Windows 8 with Chrome 56.0.2898.1, though perhaps I'm not understanding the problem. Do other browsers produce a different result? Could you post some side-by-side screenshots of expected and actual results? Thanks.

Comment 2 by das.x...@gmail.com, Oct 31 2016

Of course, here is a screenshot with the expected result in Firefox (Left) and the problem in Chrome (Right). I even changed to incognito mode and reset all flags to make sure it isn't anything experimental or plugin related.
firefox_2016-10-31_14-16-55.png
266 KB View Download

Comment 3 by bokan@chromium.org, Oct 31 2016

Components: Internals>Images
Labels: -Needs-Feedback
NextAction: ----
Ouch. I'm definitely not seeing that. Does this still occur in the latest Chrome Canary? I would also try disabling all extensions as well to make sure that's not causing any issues. Interestingly, the other images on the page are also PNGs and they look fine (the logo in the top left and the icons). Does this occur on other pages?

In any case, I'll leave this for triage with the image team.
Components: -Blink>Image -Internals>Images Internals>Images>Codecs
Cc: msarett@chromium.org
Due to recent changes to color correction?
Cc: das.x...@gmail.com
Owner: msarett@chromium.org
Status: (was: Unconfirmed)
That seems very likely.  I'll take this.

das.xwcg@gmail.com, can you please provide color space configuration of your monitor as an ICC profile (this is how it is communicated from Windows to Chrome)?  For this image, Chrome will be performing a color correction step to the monitor color space - this is likely where the problem is.

Comment 7 by das.x...@gmail.com, Oct 31 2016

msarett@chromium.org, I have attached the ICC profile used by my monitor at work. I'll try to send you the one I have at home too when I get home, I experience the same problem there!
SM2333SW.icm
2.3 KB Download
Thanks a lot!  That would be very helpful.
Project Member

Comment 9 by bugdroid1@chromium.org, Oct 31 2016

The following revision refers to this bug:
  https://skia.googlesource.com/skia.git/+/0186661e85737ac2f4805f876c8d2d4157126f68

commit 0186661e85737ac2f4805f876c8d2d4157126f68
Author: Matt Sarett <msarett@google.com>
Date: Mon Oct 31 17:41:57 2016

Reject non-D50 matrices from ICC profiles

BUG:660838

GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=4200

Change-Id: Ib57eb3705d6fe638e3a9cb56788937fc7e282847
Reviewed-on: https://skia-review.googlesource.com/4200
Commit-Queue: Matt Sarett <msarett@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Reviewed-by: Leon Scroggins <scroggo@google.com>

[add] https://crrev.com/0186661e85737ac2f4805f876c8d2d4157126f68/resources/icc_profiles/SM2333SW.icc
[modify] https://crrev.com/0186661e85737ac2f4805f876c8d2d4157126f68/src/core/SkColorSpace_ICC.cpp
[modify] https://crrev.com/0186661e85737ac2f4805f876c8d2d4157126f68/tests/ColorSpaceTest.cpp

When the above change rolls into Chrome, it should fix the "yellow" issues.  I will leave this bug opened though.

It appears that the monitor ICC profile that you've shared is invalid because the matrix is not specified in D50.

However, I think the intent of the profile is perfectly clear - it specifies the matrix in terms of D65.  I want to make sure I'm not missing something here.  Maybe it's ok to use D65 matrices as long as they are clearly marked as D65?  Or maybe it's technically invalid, but we can still respect the intent of the profile and do a useful transformation anyway?
Status: Started
Status: Fixed (was: Started)
Marking this as fixed.  It is the correct behavior to reject the invalid profile.

Sign in to add a comment