White Image Backgrounds = 254 in chrome when should be 255 not pure white

219 views
Skip to first unread message

Steven Gourlay

unread,
Jun 14, 2012, 4:04:09 AM6/14/12
to Chromium-discuss
I was advised to post this here.

I have only noticed recently with chrome displaying white as being 254
and not 255. When i edit the image and put on a pure white background
of 255 in photoshop and then upload and view only chrome displays the
background as being off white 254 when firefox and ie etc all display
as being pure white 255. At first i thought this was my images but
when viewed using IE and FF on and speaking to a few photography
friends and asked them to try on macs etc they got the same results.

This causes me some problems, one when a potential customer is using
chrome its going to make the backgrounds look off white when in a most
of my work people want pure white photos for their websites.
When you copy an image from chrome and save it to your PC it actually
saves the image with a 254 off white background again causes problems
if people save my images using chrome.

I cant post a photoo here but when you take an image using chrome and
drop it into photoshop and select the colour sampler tool and click
its 254.

Here is an example image.
http://www.ultimate-mobiles.co.uk/library/universal/mounts/motorcycle-mounts/ua-strap/gps-case/medium/universal/web/1.jpg


Chrome version 19.0.1084.52m


PhistucK

unread,
Jun 14, 2012, 4:27:30 AM6/14/12
to s.go...@ultimate-mobiles.com, Chromium-discuss
Oh, wait, does you image include embedded color profiles?
If so, Chrome does not support embedded color profiles yet (well, it does, only on Macintosh), though work is apparently underway to support them soon, using almost the same library FireFox uses (QCMS).

See this thread (very technical) for more information about the work -

And star this issue for updates -

Once this issue is mark as fixed (and the fix will go stable), your problem will probably go away (if the answer to my first question is "yes").
Note that if you use ICCv4 and LUT based profiles, this will not help you once it gets done, because further work is required for those.

PhistucK





--
Chromium Discussion mailing list: chromium...@chromium.org
View archives, change email options, or unsubscribe:
   http://groups.google.com/a/chromium.org/group/chromium-discuss

Tibor

unread,
Jun 14, 2012, 4:39:25 AM6/14/12
to chromium...@chromium.org
I opened the linked image in Chrome 21.0.1171.0 (Official Build 141382)  Win7 64bit, saved it and white pixels were 255, 255, 255 in Windows Paint (i.e. top left). 

Steven Gourlay

unread,
Jun 14, 2012, 5:01:18 AM6/14/12
to Chromium-discuss
Hi that is strange Tibor as im running win7 64 / PSCS4 64 and get RGB
254.
The photos are saved as SRGB

On Jun 14, 9:04 am, Steven Gourlay <s.gour...@ultimate-mobiles.com>
wrote:
> I was advised to post this here.
>
> I have only noticed recently with chrome displaying white as being254
> and not 255.  When i edit the image and put on a pure white background
> of 255 in photoshop and then upload and view only chrome displays the
> background as being off white254when firefox and ie etc all display
> as being pure white 255.  At first i thought this was my images but
> when viewed using IE and FF on and speaking to a few photography
> friends and asked them to try on macs etc they got the same results.
>
> This causes me some problems, one when a potential customer is using
> chrome its going to make the backgrounds look off white when in a most
> of my work people want pure white photos for their websites.
> When you copy an image from chrome and save it to your PC it actually
> saves the image with a254off white background again causes problems
> if people save my images using chrome.
>
> I cant post a photoo here but when you take an image using chrome and
> drop it into photoshop and select the colour sampler tool and click
> its254.
>
> Here is an example image.http://www.ultimate-mobiles.co.uk/library/universal/mounts/motorcycle...
>
> Chrome version 19.0.1084.52m

Steven Gourlay

unread,
Jun 14, 2012, 5:06:41 AM6/14/12
to Chromium-discuss
I can physically see the colour different when looking at the image on
the browser, its if chrome is overlaying ontop of the image to keep
only the background pure white.
A few photographers that i have spoke to see the same issue just in
chrome.
Ive copied the image from the browser into ms paint and get the same
problem i can see it not being white, in ms paint i cant see the
numbers but can physically see the difference, my monitor is
calibrated.

On Jun 14, 10:01 am, Steven Gourlay <s.gour...@ultimate-mobiles.com>

Stephen Chenney

unread,
Jun 14, 2012, 9:03:58 AM6/14/12
to s.go...@ultimate-mobiles.com, Chromium-discuss
It is possible that you are hitting a very recently fixed WebKit bug where image buffer color space conversions were dropping 255 to 254. This would not show up in Safari as it uses native code for color conversions.

Or maybe not - it's not obviously related and the bug in question primarily affected image filtering operations.

Stephen.

Erik Bean

unread,
Jun 14, 2012, 9:35:03 AM6/14/12
to chromium...@chromium.org
Here, test this picture, It's a snapshot of chrome beta. If its 255 then the 254 in the Stable version you are using is a known bug and will be fixed when there is another Stable Release. If it is not, recheck your settings on your monitor or your color profile settings. It may be off by just a hair.
white sample google dev 21.0.1171.0.JPG

Tibor

unread,
Jun 16, 2012, 1:51:28 PM6/16/12
to chromium...@chromium.org
Are you running same version of Chrome like me?
Tried on my other Win7 computer and I get 255,255,255 there too.

Milan Lipowski

unread,
Jan 1, 2017, 1:25:16 AM1/1/17
to Chromium-discuss
it is weird... last post is from 2012 and I have the same problem. 255 is 254 and I see it. Latest chrome, Win 10.

Stephen Chenney

unread,
Jan 3, 2017, 11:03:20 AM1/3/17
to in...@lipowski.pro, Chromium-discuss
Would you be so kind as to file a bug at crbug.com about this, and include an example image?

Stephen.

--
Reply all
Reply to author
Forward
0 new messages