The default bug view has changed. See this FAQ.

Colors in images and in HTML don't mean the same thing

RESOLVED FIXED

Status

()

Core
ImageLib
RESOLVED FIXED
15 years ago
5 years ago

People

(Reporter: Bruce Brackbill, Unassigned)

Tracking

Trunk
x86
All
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(2 attachments)

(Reporter)

Description

15 years ago
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.
(Reporter)

Comment 1

15 years ago
Created attachment 87864 [details]
websafe 1pixel gif (CCCC99_websafe-color-image.gif ) for use in the following attachment
(Reporter)

Comment 2

15 years ago
Created attachment 87865 [details]
To present the 'color problem" I use the  #CCCC99 gif as a td background in this attachment

Comment 3

15 years ago
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>
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows 95 → All
Summary: websafe Image colors are not displayed as set in images palette → Colors in images and in HTML don't mean the same thing

Comment 4

15 years ago
One thing I forgot to add: In neither case is Mozilla dithering.

Comment 5

12 years ago
see discussion in bug 114701

Updated

10 years ago
Assignee: pavlov → nobody
QA Contact: tpreston → imagelib
We don't dither images by hand anymore, so this should no longer be a problem.
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.