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

Issue 744698 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Last visit > 30 days ago
Closed: Jul 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug

Blocking:
issue 634542



Sign in to add a comment

sRGB colors look different in <img> and in Canvas

Reported by ivan.kuc...@gmail.com, Jul 17 2017

Issue description

UserAgent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36

Steps to reproduce the problem:
1. Go to http://www.ivank.net/veci/png_test.html

What is the expected behavior?

What went wrong?
Both images should look the same. They do look the same on my phone, but they look different on my Windows laptop.

Did this work before? N/A 

Does this work in other browsers? N/A

Chrome version: 59.0.3071.115  Channel: stable
OS Version: 6.1 (Windows 7, Windows Server 2008 R2)
Flash Version: Shockwave Flash 26.0 r0

The PNG image has the sRGB color mode (sRGB chunk has the value of 1).

First example: it is inserted using the IMG element. 

Second example: the binary PNG file is loaded and parsed with JS (ignoring any color mode). Original color values (0-255) are copied to the 2D context of the canvas.

Since the PNG has sRGB mode specified, and the color space of the canvas also should be sRGB, both images should look the same.
 
Cc: brajkumar@chromium.org
Components: Blink>Canvas
Labels: Needs-Feedback
ivan.kuckir@ Could you please provide a sample test case file or test URL to check this issue from Chrome-TE end. 
Hi, what do you mean? The URL http://www.ivank.net/veci/png_test.html contains HTML and PNG image. You can copy it, if you want.
Project Member

Comment 3 by sheriffbot@chromium.org, Jul 19 2017

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding requester "brajkumar@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

Comment 4 by junov@chromium.org, Jul 19 2017

Owner: zakerinasab@chromium.org
Status: Assigned (was: Unconfirmed)

Comment 5 by junov@chromium.org, Jul 19 2017

Cc: ccameron@chromium.org
Labels: Needs-Feedback
ivan.kuckir@ I cannot reproduce the bug on Chrome stable 60.0.3112.78 and canary 62.0.3168.0 on Windows 10. Both images are visually the same and colors are equal with color picker. Please attach a screenshot of the images on your notebook.
I am sorry, I bought a new laptop and they look the same now. But they did look different on my previous laptop. I guess, that <img> is processing colours through OS somehow.
Status: WontFix (was: Assigned)
I'll keep an eye on this. I'll set this bug to WontFix for now. Please feel free to re-open the bug if you see the problem again.
Blocking: 634542

Sign in to add a comment