Problems:
1. JPG is not necessarily sving the color exactly
2. 16bit colors may cause problems on 24bit images
Solutions:
1. Use png or other lossless format
2. Uee png or other image with transparency
That would work, assuming the problem is #1. In case of #2, it just looks
to solve problem, and might even cause another.
If it was #2, what might the problem be? Interesting that you raise this
issue of different bit colour. Perhaps this is getting a bit ot, but would
appreciate any link to a good discussion of the issue.
Websafe colors are not websafe. As user of any 16bit color can see.
Web safe colors are relic from age when 8 bit display drivers and thus
256 colors were usual. 256 colors are very unusual today. 2 colors are
much more used. As is 16bit (65 thousand color). So called websafe colors
aren't on either, so there is no sence to limit yourself to them.
OK... um... well...I'm a relic myself actually... but I want to be more
modern. I have been thinking lately to move from the use of websafe palettes
for general website construction as I do notice that many nice sites use the
full range of #RRBBGG; I find that it is easier to become familiar with the
vastly smaller subset colours and their notation and had been thinking that
doing a lot with a little is a good thing... but I digress.
To tell if the color really is what it is supposed to be. Jpg is lossy
format, and it might have changed while saving.
Yes, I see your point about colour changing from original to jpg compressed.
I was thinking the OP knew the resulting pic's colour. On the issue of
changing the jpg itself, my impression has been that there are no surprises
in colour if one does not redo the compression.
I have tried it many times, but it usually don't work...
If you only get area near edge, there still will be difference at some
point. And changing background of jpg might be almost impossible. But if
OP is maker of this jpg, he should have orginal somewhere.
Well, yes, it needs sensitive handling and depends on the pic and what is
desired for integration on the page, one would not simply select a band
around the edges... If the OP had original pic, there would still be the
problem of compression change...
Well, maybe you are just being nice here! If one is free to use millions of
colours in website construction, maybe one can design to suit the pics more!
dorayme