[webkit-dev] Colour management

Colin Fleming colin.mailinglist at gmail.com
Wed Feb 7 06:30:58 PST 2007


Hi guys,

I'm interested in photography, and recently for one reason or another
I've been involved in various discussions about images with and
without profiles and the colour correction thereof. I have a couple of
questions:

1. I use a laptop as my main machine at work and at home, and I have
external screens at both places. Recently I've noticed that images
with profiles seem to be correctly rendered on my laptop's screen, but
not on the external screen. I have OSX configured to always use the
external screen as the primary screen (with the menu bar), and apps
like Photoshop and Preview are clever enough to use the colour profile
from the primary screen as long as I restart them after connecting it.
WebKit always seems to use the profile from my laptop screen, thus
making all images look terrible on my main screen. I've checked this
with Xyle Scope as well as Safari, so it seems to be a WebKit thing.
Can anyone confirm this? Should I file a bug? Would this be easy to
fix myself? I'm a developer, but I have no experience developing on
the Mac.

2. As detailed here on the Surfin' Safari blog
(http://webkit.org/blog/?p=73) in response to Jeffrey Friedl's
excellent post on colour spaces, hyatt explained the reasons for
removing universal sRGB correction. He also mentions that there were
trials converting the whole rendering pipeline to sRGB. Is this code
still in WebKit? I see in this bug:
http://trac.webkit.org/projects/webkit/changeset/8028 that there's a
macro NO_COLOR_CORRECTION which seems to affect the default rendering
of unprofiled images. Can I turn this on and recompile, and thus get a
Safari that treats images how I want? I don't care about performance,
and I don't care about CSS colours particularly (although this would
be nice), and I certainly don't care about Flash colours matching - I
just want unprofiled images in sRGB. Is this possible?

Thanks for any and all advice!

Cheers,
Colin



More information about the webkit-dev mailing list