Colors in JPEG

PJ
Posted By
Per Jonsson
Jul 27, 2004
Views
291
Replies
1
Status
Closed
Folks,

I am using Adobe Photoshop v5.0.2, and in a PSD file I have filled the background with the color RGB 204,153,102 (hex cc,99,66), but when I save this file as a JPEG for use on the web, then the background color becomes RGB 203,153,101, i.e. the R and B values are lowered by one. Why is that? And when I use this JPEG image on a web page, where I use cc9966 as the bgcolor, then the bgcolor and the JPEG’s color look the same in 24-bit or 32-bit color depth, which is good, but when I look at the page in 16-bit color depth, I see an annoying difference between the two. That is not good. I thought that if I use one of the 216 web-friendly colors, which cc9966 is, then these kind of problems would go away, but no…

Per Jonsson
Sweden

How to Improve Photoshop Performance

Learn how to optimize Photoshop for maximum speed, troubleshoot common issues, and keep your projects organized so that you can work faster than ever before!

EG
Eric Gill
Jul 27, 2004
"Per Jonsson" wrote in
news:iunNc.99440$:

Folks,

I am using Adobe Photoshop v5.0.2, and in a PSD file I have filled the background with the color RGB 204,153,102 (hex cc,99,66), but when I save this file as a JPEG for use on the web, then the background color becomes RGB 203,153,101, i.e. the R and B values are lowered by one. Why is that?

JPEG reduces the chroma components of your colors as part of it’s compression. The human eye tends to not notice the shift, but the values do change. If you need exact colors, you’ll need to use another format.

And when I use this JPEG image on a web page, where I use cc9966 as the bgcolor, then the bgcolor and the JPEG’s color look the same in 24-bit or 32-bit color depth, which is good, but when I look at the page in 16-bit color depth, I see an annoying difference between the two. That is not good. I thought that if I use one of the 216 web-friendly colors, which cc9966 is, then these kind of problems would go away, but no…

Works with Gif, which won’t shift colors until it’s out of pallette space, or PNG (which isn’t fully supported by IE).

How to Improve Photoshop Performance

Learn how to optimize Photoshop for maximum speed, troubleshoot common issues, and keep your projects organized so that you can work faster than ever before!

Related Discussion Topics

Nice and short text about related topics in discussion sections