Skip navigation

“Save For Web” Problems After Calibrating Display

Mar 7, 2012 7:32 AM

  Latest reply: Noel Carboni, Mar 8, 2012 6:11 PM
Replies 1 2 Previous Next
  • Noel Carboni
    21,318 posts
    Dec 23, 2006
    Currently Being Moderated
    Mar 7, 2012 11:56 AM   in reply to gator soup

    Gator soup, I'm not sure what you're asking for...

     

    All the images are published with the profiles listed (and the one is untagged, meaning it has no profile).

     

    If the leaves in the tagged images look like one another then that means the browser is interpreting image color profiles.

     

    The red box at the top of each image uses the hex code exactly as listed to define the color in that space, which of course is interpreted differently because each different image is in a different color space.

     

    Assuming your browser IS in fact interpreting the image color profiles, then these things are interesting:

     

    1.  Whether the leaves in the untagged image match any / all of the other images.  If they do match, say, the sRGB tagged image this implies the browser is interpreting the color values as though an untagged image is in the sRGB color space.

     

    2.  What red blocks at the tops of which images exactly match the surrounding HTML background of the same code (which is what interests the Macchiato here in this thread).  If, for example, the red block at the top of the sRGB image matches the background, then the browser is color-managing each to the same goal.

     

     

    On my system...

     

    Firefox 10.0, when set to color management mode "1", shows the following:

     

    A.  All the leaves match in color in all 4 images, and the colors are accurate, because Firefox (set this way) outputs everything in the monitor's color space.  Firefox assumes untagged images are in the sRGB color space.

     

    B.  The red blocks atop both the untagged image and the sRGB-tagged image match the background red color, because it assumes untagged images and HTML hex codes are in the sRGB color space.   The red blocks atop the Adobe RGB and ProPhoto RGB tagged images do NOT match the background, as expected, because they're expressed in something other than the sRGB color space.

     

     

    Internet Explorer 9, which always assumes the monitor is sRGB, displays the following:

     

    A,.  All the leaves match in color in all 4 images, but the colors may not be accurate (depending on how different actual monitor performance is from sRGB) because IE outputs everything in the sRGB color space. 

     

    B.  The red blocks atop both the untagged image and the sRGB-tagged image match the background red color, because untagged images and HTML hex codes are all assumed to be in the sRGB color space.  The red blocks atop the Adobe RGB and ProPhoto RGB tagged images do NOT match the background, as expected, because they're expressed in something other than the sRGB color space.

     

     

    Safari shows the following:

     

    A.  All the leaves match in color in the 3 tagged images, but do not match the untagged image, since Safari passes the untagged image through to the monitor with no color management.

     

    B.  The red block atop the untagged image matches the background, but none of the other three do, because Safari passes the HTML colors through to the display without any color management.  Whether it's better to put untagged imagery out to the monitor without transformation is a judgment call.  It may be literally the right thing to do, but Firefox's strategy may be better.

     

     

    At first blush Firefox seems to have it closest to right in the general case, but it has its problems as well.  For example, it ONLY uses the color profile of the primary monitor, no matter what monitor it's opened on if you have a multiple monitor system.   In my mind this makes it lose its edge over Internet Explorer because it's sometimes right and sometimes wrong, where IE's consistent transform to sRGB on any monitor is expected.

     

     

    Conclusion:

     

    ONLY IF one configures ALL of one's monitors to produce their output in the actual sRGB color space and associates the sRGB profile with each of them, do all browsers do a proper job of color-management.

     

     

    -Noel

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 7, 2012 11:56 AM   in reply to gator soup

    Well, yes, IE would, since it converts everything to sRGB. So you'd be back to square one.

     

    I really have no direct experience with hex numbers, so I've just played around a bit with the color picker. It seems to me that hex numbers are not profile specific - they're just numbers, like RGB numbers. They don't have any specific meaning until they refer to a given space, whether the monitor space or a standard space.

     
    |
    Mark as:
  • Noel Carboni
    21,318 posts
    Dec 23, 2006
    Currently Being Moderated
    Mar 7, 2012 12:03 PM   in reply to twenty_one

    D Fosse wrote:

     

    RikRamsay14 wrote:

     

    The web, and everything about the web defaults to sRGB. If there is no profile, it displays as sRGB

    This is simply not correct and misunderstood. It defaults to your monitor color space.

     

     

    Though I've said it above, I just want to re-clarify this:

     

    One of the reasons this is misunderstood is that it differs depending on which browser you're talking about.

     

    • IE assumes untagged images and HTML elements are sRGB.
    • Firefox set to mode 2 (default) passes untagged images through without color-management.
    • Firefox set to mode 1 assumes untagged images (as well as HTML elements) are sRGB.
    • Safari passes untagged images through to the monitor without color-management.

     

    -Noel

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 7, 2012 12:06 PM   in reply to Noel Carboni

    Yes, in practical browser terms I should have modified this.

     

    But it was obvious from context that RikRamsay14 was talking about "the web" in the abstract.

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 7, 2012 12:05 PM   in reply to twenty_one

    >> (Noel) The red box at the top of each image uses the hex code exactly as listed to define the color in that space, which of course is interpreted differently because each different image is in a different color space.

     

    >> (D Fosse) It seems to me that hex numbers are not profile specific - they're just numbers, like RGB numbers. They don't have any specific meaning until they refer to a given space

     

    okay, that's especially clear, thanks...

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 7, 2012 12:08 PM   in reply to macchiato.

    >> the best way is to set the monitor profile to srgb and push some buttons on the monitor itself (in terms of calibration)

     

    speechless.

     
    |
    Mark as:
  • Noel Carboni
    21,318 posts
    Dec 23, 2006
    Currently Being Moderated
    Mar 7, 2012 12:22 PM   in reply to gator soup

    gator soup wrote:

     

    >> the best way
    speechless.

     

    Perhaps you're speechless because you haven't yet agreed upon a definition for the term "best".    In all seriousness, try to keep the criticism out of this conversation.  It will degrade quickly if you judge others' choices.

     

    In my mind the "best" thing is to strive to fully understand color-management, which gives you the ability to know and anticipate what you and everyone else are going to see under all conditions.

     

    -Noel

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 7, 2012 1:44 PM   in reply to Noel Carboni

    "speechless" was my gut reaction, no criticism intended, so I apologize if I came across that way to anyone

     

    the OP's problems surfaced in Save for Web (SFW) after he calibrated his monitor - a common problem and fairly easy to explain why

     

    setting the default monitor profile to sRGB (to work around the SFW behavior) breaks Photoshop's ability to display color 'accurately' — it sets Photoshop up to behave like Microsoft Internet Explorer on an 'uncalibrated' system — and it only makes it harder (if not impossible) to guess what other people will see even in fully color-managed 'calibrated' conditions

     

    while my exposure to Windows users here is broadening my awareness as to how some web designers work, I still think setting one's Default monitor profile to sRGB is the worst advice for Photoshop users who need a professional 'calibrated' reference monitor (and that is my point)

     

    macchiato. perfectly explained his reasons for going back to what he is comfortable with in post #36 and I wish him luck

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 7, 2012 2:17 PM   in reply to gator soup

    I think I need to clarify, and expand on what I have already said in relation to the OP.

     

    @D Fosse Re: Web defaulting to sRGB: I believe it may be you who has misunderstood how this works. As I have mentioned before, the monitor plays very little part in this whole thing. The browser, by default, will show any image without a profile in sRGB. This is explained in W3.org's documentation on web color.

    "All colors are presumed to be defined in the sRGB color space unless a more precise embedded profile is specified within content data. For images that do have a profile built into their data, that profile is used. For images that do not have a profile, the sRGB profile is used so that the colors in these images can be kept "in synch" with the colors specified in CSS and HTML." http://www.w3.org/TR/css3-iccprof

     

    And in response to that, the web itself uses sRGB color mode, so all HTML/CSS etc, whether Hex or RGB values are represented in sRGB. As mentioned, the ONLY way to ensure everything is displayed accurately in all browsers on any OS, is to have everything in sRGB.

    "All RGB colors are specified in the sRGB color space (see [SRGB]). User agents may vary in the fidelity with which they represent these colors, but using sRGB provides an unambiguous and objectively measurable definition of what the color should be, which can be related to international standards." http://www.w3.org/TR/css3-color/#numerical

     

    When using different profiles in Photoshop, the same Hex value will appear different. It is rendering the values differently. BUT, the absolute color of each Hex (LAB) changes with each profile.

    Eg, sRGB: #666666 = r102 g102 b102 =L43 A0 B0.

    ProPhoto RGB: #666666 = r102 g102 b102 = L51 A0 B0

     

    In other words, they look different on screen.

     

    ----------------------------------

     

    I don't believe the OPs problem had anything to do with the monitor calibration as it doesn't affect the Hex values at all. The document profiles could only affect the final output and the fact the OP pulled the hex value from the file before saving for web, is what has probably caused the discrepancy.

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 7, 2012 2:30 PM   in reply to Rik Ramsay

    All colors are presumed to be defined in the sRGB color space

    Exactly. "Presumed" is the operative word. That's the smoking gun. Not sRGB, but "presumed" to conform to sRGB.

     

    Try out a wide gamut monitor once and see what presume means when there is no profile.

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 7, 2012 3:16 PM   in reply to Rik Ramsay

    >> I don't believe the OPs problem had anything to do with the monitor calibration

     

    i think it does

     

    once Photoshop strips the sRGB profile in a default-configuration Save for Web (SFW) environment — the color shifts — ie, the sRGB numbers are being sent straight through to the monitor just like Web browsers do — this is easy to prove in Photoshop by View> Proof Setup: Monitor RGB

     

    the reason the shift (or problem) doesn't occur in the OP's work around is because he set his monitor profile to sRGB (sRGB an exact match to his source and monitor spaces)

     

    as i understand the theory, all web browsers (except Firefox V1) do not alter untagged Photoshop .jpg files or hex colors specified in CSS and HTML — web browsers simply send the RGB 'numbers' straight through to the monitor unaltered — the "presumption" is that they are in the sRGB color space for display on an sRGB-compliant device

     

    the problem or changes occur when monitor space is different from sRGB

     

    is this not correct?

     
    |
    Mark as:
  • Noel Carboni
    21,318 posts
    Dec 23, 2006
    Currently Being Moderated
    Mar 7, 2012 3:44 PM   in reply to gator soup
    gator soup wrote:


    as i understand the theory, all web browsers (except Firefox V1) do not alter untagged Photoshop .jpg files or hex colors specified in CSS and HTML — web browsers simply send the RGB 'numbers' straight through to the monitor unaltered — the "presumption" is that they are in the sRGB color space for display on an sRGB-compliant device

     

    This is not theory, but observed fact:

     

    • Internet Explorer assumes untagged images and HTML elements are sRGB and that the display is sRGB.  Thus untagged image and HTML colors are passed through without color management when being sent to the display.
    • Firefox with gfx.color_management.mode set to 2 (the default) passes untagged images and HTML colors through without color-management.
    • Firefox set to mode 1 assumes untagged images (as well as HTML elements) are sRGB, and transforms the colors to the PRIMARY monitor's color space.
    • Safari passes untagged images and HTML colors through to the monitor without color-management.

     

    I don't know about Chrome and the others.  I should probably check them out to complete my knowledge.

     

    -Noel

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 7, 2012 4:05 PM   in reply to macchiato.

    I have no problems matching image color to css color. A huge number of web designs depend on this. I do it all the time, with a calibrated monitor. So the answer is no, you do not need to choose between a calibrated monitor and css/image color matching. Your "success" using the sRGB canned profile for both display and image tells you nothing.  Sure, the colors match, but you don't have control of the color.

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 7, 2012 5:09 PM   in reply to Noel Carboni

    thanks for the feedback, Noel, i was pretty sure i had that part of the theory correct -- seeing is believing

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 8, 2012 6:54 AM   in reply to macchiato.

    Hi guys,

    I don't have time to read the whole thread and it may have already been explained, but because it is still going on, I'll make a guess. If the problem of the OP is to match in a browser a color of an image to a color created by code, for example, a color in an image that matches the background of a web page created by html color, then find out the hex values of the html color, use it, and save it in your image without any eventual color management conversions that can modify the color values. This will match the color of the image to the color of the coded html color. For this task (matching colors) no proper color management is needed. Proper color management is needed only if you want to share or see properly intended colors. In this case the priority is to match colors with non color managed display which will be displayed differently on every monitor. Only images are color managed, interface elements created by coded color are not color managed - even in the Photoshop's interface.

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 8, 2012 9:36 AM   in reply to emil emil

    What use is a color match when you don't have control of the color? Maybe you don't care about this, but designers do.

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 8, 2012 12:03 PM   in reply to Gary Politzer

    This is mostly used when you have an image on a web page and you want the image to match html elements like the background for which unfortunately you don't have any color control.

    As a designer you may decide that matching the color of the image to the color of the background  is more important than matching the color of the image on the destination monitors to the way you see it on your monitor.

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 8, 2012 12:17 PM   in reply to emil emil

    Designers are of course aware that they have no control over destination monitors, but that is no reason not to use a calibrated display. You don't need to abandon display calibration in order to match css color to image color. My point is, using a calibrated display is a designer's best shot at having control over color, while being fully aware that he or she only has control over their own output, not the destination display.

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 8, 2012 12:22 PM   in reply to Gary Politzer

    I agree with you, I didn't intend to suggest that calibration and proper color management is not important, I simply stated that for that particular task - to match a color of an image to an html element, the proper color management including accurate monitor color profile is not needed which explains as to why the OP had no problems before proper color calibration.  And as I also said, color management is important if yo want to share colors as intended.

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 8, 2012 12:36 PM   in reply to emil emil

    Yes, it does explain why the OP had no problems before calibrating the monitor. But once the monitor is calibrated,simply converting the image to the sRGB profile before Saving for Web also gives the desired result. And in fact, Photoshop CS5 on my Mac defaults to that profile conversion via a checkbox in the Save for Web dialog, so the process would work even if the user was unaware of it.

     
    |
    Mark as:
  • Noel Carboni
    21,318 posts
    Dec 23, 2006
    Currently Being Moderated
    Mar 8, 2012 1:16 PM   in reply to Gary Politzer

    Heh, one man's simply is another's more complicated than I'd like to deal with

     

    I think one (of several) roots of conflict in color-management discussions comes from the apparent fact that many folks truly believe that they have made the right choices with regard to the many tradeoffs...  For them, given their needs at that moment, they may well have made the right choices.  It's not always easy to put oneself in others' shoes.

     

    The problem arises precisely from the difference between their right choices (well defined if fleeting) and the right choices (a myth).

     

    What was that old saying by National Geographic that seems to apply?  There are no easy answers, only intelligent choices.

     

    -Noel

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 8, 2012 4:55 PM   in reply to Noel Carboni

    And my point is that a person who presents a problem like the OP presented will not be able to make an intelligent choice without learning a little more about Color Management. If we are going to recommend or tolerate the use of a generic profile for the display profile, then why discuss Color Management at all? We had this discussion over and over on the old Mac forum. People would show up saying stuff like, "Color Management is a hoax, just disable it and everything works!" Then they would get raked over the coals by some real curmudgeons. Those were the days;)

     
    |
    Mark as:
  • Noel Carboni
    21,318 posts
    Dec 23, 2006
    Currently Being Moderated
    Mar 8, 2012 5:43 PM   in reply to Gary Politzer

    Gary Politzer wrote:

     

    If we are going to ... tolerate

     

    "We" (of which there is no reasonable definition) don't have any authority to "not tolerate" anything.  It's precisely that kind of thinking that breeds said curmudgeons, and I'll wager few folks leave a "raking" by same with much of an education.

     

    Perhaps we should just try to share our knowlege instead of trying to tell people what to do?

     

    -Noel

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 8, 2012 5:54 PM   in reply to Noel Carboni

    Noel Carboni wrote:

     

    Perhaps we should just try to share our knowlege instead of trying to tell people what to do?

    Yes, since that is hopefully the purpose of this forum. It is especially difficult when the topic is Color Management, because the topic is so confusing, and people get very opinionated about it. My own understanding of the subject is pretty rudimentary, yet took me years to wrap my mind around. The only thing that really bothers me is seeing bad advice passed off as good. I've seen a lot of this over the years in other forums, not so much in Adobe's forums.

     
    |
    Mark as:
  • Noel Carboni
    21,318 posts
    Dec 23, 2006
    Currently Being Moderated
    Mar 8, 2012 6:11 PM   in reply to Gary Politzer

    I don't know whether you're trying to say that I or someone here has given "bad" advice, but if so the best way to deal with that is not to call it "bad", but to debate it in terms of what will and won't happen technically (which has been done quite admirably in this thread).

     

    This is really no different than saying the choice of "Mac" vs. "PC" is "bad" or "good".  While it's easy to become polarized, my choice is every bit as valid as your choice, even though we may have chosen differently.  That's just the way it is in a complicated world.

     

    A month or two ago in a fit of half light-hearted creativity I tried to categorize color-management knowledge into levels.  Once one climbs a few steps into new levels of understanding one realizes that every setting has a reason for being, and there really are no "bad" choices, any more than there is a "best" choice.  For every rule of thumb at one level that says something is "bad", there are perfectly good reasons at another level for doing precisely that.

     

    The "curmudgeons" that you speak of might say "just buy a measurement device and use its software to calibrate and profile your system, then only trust what you see in Photoshop", and that is the "best" or "right" way to do things.  For many folks with mainstream needs, that's pretty good advice.  But we all need to understand that there isn't just one way to get there from here.  As a GPS system might say...  "Recalculating" 

     

    -Noel

     
    |
    Mark as:
1 2 Previous Next
Actions

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points