为什么图像颜色改变 [英] why the image color changed

查看:65
本文介绍了为什么图像颜色改变的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Photoshop中用背景颜色#005caa 制作了一张图片。

当我在asp.net网站上使用此图片时,图像颜色更改为#034FFD

此处您可以看到,我上传了这张图片,并与#005caa 颜色进行了比较。

您可以下载并查看我的原始颜色。但是在浏览器中,它始终显示#034FFD 颜色。我想知道为什么吗?这是我的浏览器问题吗?我使用Firefox 21.0。

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 .

推荐答案

通常,当在浏览器中查看图像的颜色改变时,是因为它们已保存在浏览器不支持的颜色配置文件中。

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.

简短答案:将图像的颜色配置文件更改为RGB,请勿在网络上使用CMYK。

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


这是一张图片,向您显示您正在使用CMYK,

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

编辑:
与网络安全色无关。 HTML支持完整的24位色彩空间。您已经通过在小提琴中放置具有正确颜色的div来证明这一点。

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.

这篇关于为什么图像颜色改变的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆