why the image color changed

℡╲_俬逩灬. 提交于 2020-01-15 10:27:14

问题


I made a picture with background-color #005caa in Photoshop .
When I use this image in my asp.net web site , the image color changed to #034FFD .
Here you can see , I upload this image and compare with color #005caa .
You can download and see my original color . But in browser , It's always show color #034FFD. I want to know why ? It's my browser issues ? I use Firefox 21.0 .


回答1:


Normally, when the color in images "change" when viewed in a browser it's because they are saved in an color profile which the browser doesn't support.

Short answer: change the color profile of your image to RGB, don't use CMYK for the web.

Here's an image to show you that you're using CMYK, while you should use RGB.

EDIT: it has nothing to do with "web safe colors". HTML supports a full 24bit color space. You have already proven this by putting a div with the right color in your fiddle.




回答2:


You have to tell Photoshop to work with "original" web colors, this is a known issue. Take a look at this post, you can change the settings: http://buildinternet.com/2009/01/quick-tip-accurate-web-colors-in-photoshop/



来源:https://stackoverflow.com/questions/17229560/why-the-image-color-changed

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!