This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > April 2004 > Help: color inconsistent





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Help: color inconsistent
Semtexuk

2004-04-12, 4:39 am

Ive created an image in illustrator so the colour is the same as the background
colour in dreamweaver. It matches up in dreamweaver but when I preview it in
the browser my imported image is darker. I tried importing the file in to Flash
and when I test it the colour is fine. So why wont it match up when previewd in
dreamweaver.

Please can anyone help me, this is driving me crazy.

Thanks

Dan Vendel *GOF*

2004-04-12, 4:39 am

Semtexuk wrote:

> Ive created an image in illustrator so the colour is the same as the background
> colour in dreamweaver. It matches up in dreamweaver but when I preview it in
> the browser my imported image is darker. I tried importing the file in to Flash
> and when I test it the colour is fine. So why wont it match up when previewd in
> dreamweaver.
>
> Please can anyone help me, this is driving me crazy.
>
> Thanks
>


Is the image a jpg?
Then is sometimes like hit or miss even if you select proper hex color.
Use a gif, if possible.
Can you show us the image and the page (or the image and just the hex
number of the color you're after).

--
Dan Vendel - *GOF*
Contact me directly at http://contact.vendel.info
Formmail tutorial at http://www.vendel.info/tut/formmail.html
Nested table demonstration at http://www.vendel.info/tabletut/
Search Engine Optimization & Rank Control Utility at http://awr.vendel.info
Search Dreamweaver newsgroup at http://www.vendel.info/google.html
Alan

2004-04-12, 4:39 am

1st question- What color depth is your monitor set to? 16 bit color depth
can have strange shades for the same color value in different application.

2cd- a url to this please?



Semtexuk

2004-04-12, 4:39 am

The file is a png

monitor depth is 24 bit.

What I cant understand is if it shows up o.k in dreamweaver why doesnt it in
the browser, frustrating

Anyway here is the url

http://homepage.ntlworld.com/sam.templeman/

Semtexuk

2004-04-12, 4:39 am

The file is a png

monitor depth is 24 bit.

What I cant understand is if it shows up o.k in dreamweaver why doesnt it in
the browser, frustrating

Anyway here is the url

http://homepage.ntlworld.com/sam.templeman/

Thanks

Dan Vendel *GOF*

2004-04-12, 4:39 am

Semtexuk wrote:

> The file is a png
>
> monitor depth is 24 bit.
>
> What I cant understand is if it shows up o.k in dreamweaver why doesnt it in
> the browser, frustrating
>
> Anyway here is the url
>
> http://homepage.ntlworld.com/sam.templeman/
>
> Thanks
>


The png doesn't hold exact colors. It's a very slight difference.
Save as jpg. The file size will be less (16Kb compared to 28Kb) and the
colors will be OK.

--
Dan Vendel - *GOF*
Contact me directly at http://contact.vendel.info
Formmail tutorial at http://www.vendel.info/tut/formmail.html
Nested table demonstration at http://www.vendel.info/tabletut/
Search Engine Optimization & Rank Control Utility at http://awr.vendel.info
Search Dreamweaver newsgroup at http://www.vendel.info/google.html
Semtexuk

2004-04-12, 4:40 am

Thanyou it now works fine.

For future reference is there no way round this because the "save for web"
option in illustrator
doesnt allow you to keep the background of an image transparent when saving as
jpeg.

Dan Vendel *GOF*

2004-04-12, 4:40 am

Semtexuk wrote:
> Thanyou it now works fine.
>
> For future reference is there no way round this because the "save for web"
> option in illustrator
> doesnt allow you to keep the background of an image transparent when saving as
> jpeg.
>


No, jpg can't be transparent.
But IE doesn't support png transparency anyway. The best you can do is
to try this extension:
http://dreamlettes.net/extensions/#IEPNG
However, it might not work for backgrounds.

--
Dan Vendel - *GOF*
Contact me directly at http://contact.vendel.info
Formmail tutorial at http://www.vendel.info/tut/formmail.html
Nested table demonstration at http://www.vendel.info/tabletut/
Search Engine Optimization & Rank Control Utility at http://awr.vendel.info
Search Dreamweaver newsgroup at http://www.vendel.info/google.html
Glenn Randers-Pehrson

2004-04-12, 4:41 am

"Semtexuk" <webforumsuser@macromedia.com> wrote in message news:<c59eso$dr9$1@forums.macromedia.com>...
> Ive created an image in illustrator so the colour is the same as the background
> colour in dreamweaver. It matches up in dreamweaver but when I preview it in
> the browser my imported image is darker. I tried importing the file in to Flash
> and when I test it the colour is fine. So why wont it match up when previewd in
> dreamweaver.


Your image is PNG
Your browser is MSIE (Mozilla, Firefox, etc., match colors properly)
The image contains a gAMA chunk with gamma compensation info
MSIE mishandles the gAMA chunk.

Solution

get rid of the gAMA chunk. Put in the sRGB chunk instead. You can
use pngcrush (freeware) from pmt.sf.net to do that.

Glenn
Dan Vendel *GOF*

2004-04-12, 4:41 am

Glenn Randers-Pehrson wrote:

> Your image is PNG
> Your browser is MSIE (Mozilla, Firefox, etc., match colors properly)
> The image contains a gAMA chunk with gamma compensation info
> MSIE mishandles the gAMA chunk.


No, very slight mismatch in Firefox (and I suppose other Moz-based
browsers).

--
Dan Vendel - *GOF*
Contact me directly at http://contact.vendel.info
Formmail tutorial at http://www.vendel.info/tut/formmail.html
Nested table demonstration at http://www.vendel.info/tabletut/
Search Engine Optimization & Rank Control Utility at http://awr.vendel.info
Search Dreamweaver newsgroup at http://www.vendel.info/google.html
Glenn Randers-Pehrson

2004-04-21, 2:34 pm

Dan Vendel *GOF* <see_my_signa|ure_@_the_bottom_of_the_post.org> wrote in message news:<c5d9hg$jqg$1@forums.macromedia.com>...
> Glenn Randers-Pehrson wrote:
>
>
> No, very slight mismatch in Firefox (and I suppose other Moz-based
> browsers).


The slight mismatch is because of a slightly incorrect gAMA value in
the PNG. It has .45000 instead of .45455 (1/2.2) which would match
the sRGB background.

If you fix that, it will work in FireFox etc but still misiatch in MSIE.
If you follow my earlier suggestion (replace the gAMA chunk with the
sRGB chunk) it will match properly in both.

Glenn
Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews