2) Image color managementImages that contain an ICC profile seem to be properly handled on desktop Chrome, but not so on Android.
Otherwise, images that do not contain an ICC profile are considered to be in the display color profile space rather than in the sRGB space. This is again similar to Firefox, but contrary to Safari.
--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
This only makes sense if you have a color profile of the display device, right? Else you don't know what space to convert to. Is having the right monitor color profile common on Windows / Android?
On Monday, January 4, 2016 at 10:53:28 PM UTC, Yoav Weiss wrote:Otherwise, images that do not contain an ICC profile are considered to be in the display color profile space rather than in the sRGB space. This is again similar to Firefox, but contrary to Safari.+1 for assuming sRGB if the color space was not specified, the meaning of the pixels in the image cannot possibly depend on the user’s configuration.More food for thought: is it Chrome’s responsibility to output anything different than sRGB?
Just had a long off-list discussion with Noel. I'll do my best to summarize it here:* In order to maintain color consistency between the page elements, we would need to correct CSS (including gradients), images, videos, canvas (and perhaps plugins) at the same time.* Since drawing is not necessarily centralized, making sure that no piece of code is drawing before correcting is not trivial.* The Skia team will also have to implement color correction.
* Gradients may pose an issue since in sRGB=>wide gamut conversions they can create banding artifacts. Can be overcome for CSS gradients but not necessarily for image gradients.* The use-case of not having to send sRGB profiles for sRGB images can be resolved by adding a low overhead sRGB profile to the standard, regardless of automatically converting no-profile images from sRGB to the display color space.* We need to gather data on which color profiles we see in the wild. UMA is being added. I'll try to gather some data as well.* In general color correction in not a panacea, as it has performance costs, but most importantly, can result in its own color distortions.* Some of the impact of sending sRGB to wider gamut screens can be minimized by users adjusting their screen settings, or sites picking "toned down" colors.* On mobile, no browser seems to be doing color correction, even for profiled images. Also, the screen gamuts there do not exceed that of sRGB. Therefore, it makes sense to send only no-profile sRGB images to mobile.* Perf concerns can be somewhat alleviated by applying color correction only when needed, offloading to GPU, etc. Distortion can also be reduced in some scenarios.* A "display profile" client hint could make sense here, and help developers send sRGB images to sRGB screens while sending wider gamut images to wider gamut displays.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
On Tue, 05 Jan 2016 11:11:50 +0100, 'Ruud van Asseldonk' via blink-dev <blin...@chromium.org> wrote:On Monday, January 4, 2016 at 10:53:28 PM UTC, Yoav Weiss wrote:Otherwise, images that do not contain an ICC profile are considered to be in the display color profile space rather than in the sRGB space. This is again similar to Firefox, but contrary to Safari.+1 for assuming sRGB if the color space was not specified, the meaning of the pixels in the image cannot possibly depend on the user’s configuration.More food for thought: is it Chrome’s responsibility to output anything different than sRGB?I think this was a very good question. Is it really every program's responsibility to adapt to the screen currently connected? What if there are more than one with different color profiles? What if half of the browser is on one screen and half on another?
On Tue, 5 Jan 2016 at 15:17 Daniel Bratell <bra...@opera.com> wrote:On Tue, 05 Jan 2016 11:11:50 +0100, 'Ruud van Asseldonk' via blink-dev <blin...@chromium.org> wrote:On Monday, January 4, 2016 at 10:53:28 PM UTC, Yoav Weiss wrote:Otherwise, images that do not contain an ICC profile are considered to be in the display color profile space rather than in the sRGB space. This is again similar to Firefox, but contrary to Safari.+1 for assuming sRGB if the color space was not specified, the meaning of the pixels in the image cannot possibly depend on the user’s configuration.More food for thought: is it Chrome’s responsibility to output anything different than sRGB?I think this was a very good question. Is it really every program's responsibility to adapt to the screen currently connected? What if there are more than one with different color profiles? What if half of the browser is on one screen and half on another?It seems like one issue is that if Chrome just outputs sRGB all the time and relies on the OS to correct it again, then any images that aren't in sRGB will get converted twice, which may lose information.
CSS colors are sRGB
color managing CSS will break content
One can also argue that it is also important for color consistency to make sure that images and CSS colors are in the same color space, even if means that the colors are not accurate.
OTOH, for images, there probably would be some perf costs when color space conversions are required.
This only makes sense if you have a color profile of the display device, right? Else you don't know what space to convert to.
The use-case of not having to send sRGB profiles for sRGB images can be resolved by adding a low overhead sRGB profile to the standard, regardless of automatically converting no-profile images from sRGB to the display color space.
In general color correction in not a panacea, as it has performance costs, but most importantly, can result in its own color distortions.
Some of the impact of sending sRGB to wider gamut screens can be minimized by users adjusting their screen settings, or sites picking "toned down" colors.
Also, the screen gamuts there [on mobile] do not exceed that of sRGB. Therefore, it makes sense to send only no-profile sRGB images to mobile.
A "display profile" client hint could make sense here, and help developers send sRGB images to sRGB screens while sending wider gamut images to wider gamut displays.
color managing CSS will break contentIt’s all broken to one extent or another already, so that making it better (let alone perfect in one go) couldn’t hurt.
One can also argue that it is also important for color consistency to make sure that images and CSS colors are in the same color space, even if means that the colors are not accurate.
Only for these instances when the colours from images must match with CSS elements (more important in SVG and PNG, I would say). If that’s what’s needed, then these (and only these) images should be send/defined as having the same colour space as CSS (sRGB most likely, but with option 3 implemented - any, really). But when the colour management works correctly, even if different elements do NOT share the same colour space - they can match visually! They just have to be prepared with correct conversions up front and have different RGB numbers that will translate to the same colour on output.OTOH, for images, there probably would be some perf costs when color space conversions are required.I wouldn’t know, but most probably: maybe. Ideally, though, this would work like with recent switch to better font rendering path in Chrome - more robust, more correct and faster ;-)
Every display has some colour profile (either explicit - is profiled - or assumed). This has nothing to do with the actual calibration of the display. I wouldn’t know but I would think applications should look to OS to provide that info.
In general color correction in not a panacea, as it has performance costs, but most importantly, can result in its own color distortions.I know of only one said “distortion”. That’s when a user has a broken display profile. Although very rare, it was more common some time ago (I have no data, though - that data would be nice to see!). That is why, I believe, IE is or used to, incorrectly!, convert to sRGB on output instead of to display profile. My personal opinion is that this rare situation and is better handled by the OS (I think my Win10 does not allow some whacky profiles I used to have to test that situation in the past...). Better colour for the majority should win here. And IE should change policy, too.
I'm comparing my website (photography) in both edge and chrome, Chrome colours are sickly and for the life of me I have not been able to find a solution or rational explanation. Gobsmacked at how bad this is. Has a solution been arrived at? I'm using a wide gaumut 99% Adobe rgb profiled monitor
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/076086a1-583d-494d-b1b3-3ab0245eb492%40chromium.org.