Last Comment Bug 152192 - Colors in images and in HTML don't mean the same thing
: Colors in images and in HTML don't mean the same thing
Status: RESOLVED FIXED
:
Product: Core
Classification: Components
Component: ImageLib (show other bugs)
: Trunk
: x86 All
: -- normal (vote)
: ---
Assigned To: Nobody; OK to take it and work on it
:
:
Mentors:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2002-06-16 13:51 PDT by Bruce Brackbill
Modified: 2012-01-13 11:45 PST (History)
2 users (show)
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Attachments
websafe 1pixel gif (CCCC99_websafe-color-image.gif ) for use in the following attachment (799 bytes, image/gif)
2002-06-16 13:55 PDT, Bruce Brackbill
no flags Details
To present the 'color problem" I use the #CCCC99 gif as a td background in this attachment (828 bytes, text/html)
2002-06-16 14:04 PDT, Bruce Brackbill
no flags Details

Description Bruce Brackbill 2002-06-16 13:51:56 PDT
I set a image to a websafe color.  Mozilla ( and
NS 4.7 for that matter ) displays the color differently
than it is set to in the images palette.
IE displays the image correctly.

See attachment for example.

I am using win 95 16bit color.
Comment 1 Bruce Brackbill 2002-06-16 13:55:16 PDT
Created attachment 87864 [details]
websafe 1pixel gif (CCCC99_websafe-color-image.gif ) for use in the following attachment
Comment 2 Bruce Brackbill 2002-06-16 14:04:02 PDT
Created attachment 87865 [details]
To present the 'color problem" I use the  #CCCC99 gif as a td background in this attachment
Comment 3 Anthony DeRobertis 2002-07-28 05:54:42 PDT
I see this on Linux with 2002072204. 16-bit truecolor.

On the left, I get c5ce94. On the right, cdce9c.

In GIMP, if I create a splotch of CCCC99, then past in a screen shot, I'm not
really sure which is closer. [Gimp is dithering, btw.] Gimp does show the GIF
has CCCC99.

<rant>How can converting from 24-bit to 16-bit truecolor be so hard? It's only
taking the five high bits of each byte. perl -e 'printf "%X\n", 0xCCCC99 &
0xF8F8F8' says C8C898. I think X11 is using my display for stenagraphy ;-)</rant>
Comment 4 Anthony DeRobertis 2002-07-28 05:55:26 PDT
One thing I forgot to add: In neither case is Mozilla dithering.
Comment 5 Jo Hermans 2005-09-30 11:04:21 PDT
see discussion in bug 114701
Comment 6 Jeff Muizelaar [:jrmuizel] 2012-01-13 11:45:36 PST
We don't dither images by hand anymore, so this should no longer be a problem.

Note You need to log in before you can comment on or make changes to this bug.