Pages: [1] 2   Go Down

Author Topic: Why is it recommended to export as sRGB for jpeg?  (Read 8023 times)

yalag

  • Newbie
  • *
  • Offline Offline
  • Posts: 40
Why is it recommended to export as sRGB for jpeg?
« on: August 19, 2014, 10:11:34 pm »

The explanation is usually that most of internet works over sRGB. But does anyone know how export as sRGB work in applications like LR/PS? Do the colors actually get remapped to sRGB (clipped) or is it still in its original gamut but with sRGB profile tagged?

I ask because I did an experiment where I took an image from my desktop that is attached to wide gamut monitor (adobe rgb) and tried to soft proof it against sRGB. I basically tone down a yellow flower that is out of gamut then exported it as jpeg (with relative intent).

I then saved another jpeg from the original image without any adjustments to sRGB space.

I then took these 2 jpegs over to my macbook pro (with a monitor gamut closer to sRGB) and to my surprise that the non adjusted image has a lot more saturation. I was expecting them to be very close. Why is this?

I then did a third image, which is the original image exported as adobe rgb. To my surprise again, it's very close to the second image. But it's still a touch more saturated. I expected it to be the same. In this case, is it a good idea to export as sRGB?

The left is the adjusted one, the right is no adjustments (srgb), both shown on the macbook pro.
Logged

digitaldog

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 20646
  • Andrew Rodney
    • http://www.digitaldog.net/
Re: Why is it recommended to export as sRGB for jpeg?
« Reply #1 on: August 19, 2014, 10:17:11 pm »

Yes the data is converted to sRGB.
Logged
http://www.digitaldog.net/
Author "Color Management for Photographers".

yalag

  • Newbie
  • *
  • Offline Offline
  • Posts: 40
Re: Why is it recommended to export as sRGB for jpeg?
« Reply #2 on: August 19, 2014, 10:19:31 pm »

Yes the data is converted to sRGB.

So why would I ever want to export as sRGB. It's like clipping yourself unnecessarily, couldn't you just leave it to the viewer to clip to their each respective display?
Logged

digitaldog

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 20646
  • Andrew Rodney
    • http://www.digitaldog.net/
Re: Why is it recommended to export as sRGB for jpeg?
« Reply #3 on: August 19, 2014, 10:28:41 pm »

So why would I ever want to export as sRGB. It's like clipping yourself unnecessarily, couldn't you just leave it to the viewer to clip to their each respective display?
Because in this usage, sRGB is the correct output color space. Just as you would have to use a certain output color space for a printer.
Logged
http://www.digitaldog.net/
Author "Color Management for Photographers".

EricV

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 270
Re: Why is it recommended to export as sRGB for jpeg?
« Reply #4 on: August 20, 2014, 01:46:33 pm »

There are two reasons you might want to convert to sRGB when exporting:
1) You want to control how out-of-gamut colors are clipped on an sRGB display, rather than leaving it to the viewer.
2) You do not trust the viewer to be part of a color managed system that will understand your embedded profile.

If you export an image in AdobeRGB, but the viewer ignores your profile and assumes sRGB, your colors will all be displayed wrong, even the colors which are within the sRGB gamut and are not clipped.
Logged

yalag

  • Newbie
  • *
  • Offline Offline
  • Posts: 40
Re: Why is it recommended to export as sRGB for jpeg?
« Reply #5 on: August 20, 2014, 01:49:36 pm »

There are two reasons you might want to convert to sRGB when exporting:
1) You want to control how out-of-gamut colors are clipped on an sRGB display, rather than leaving it to the viewer.
2) You do not trust the viewer to be part of a color managed system that will understand your embedded profile.

If you export an image in AdobeRGB, but the viewer ignores your profile and assumes sRGB, your colors will all be displayed wrong, even the colors which are within the sRGB gamut and are not clipped.

I understand point (1). That's exactly what I'm trying to achieve. Control how the image will be viewed in sRGB space. But what I have found is that converting it to SRGB automatically with LR yields much better result than me manually going to into soft proof mode and tweaking the colors. Do you know why that is?
Logged

Hans Kruse

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 2106
    • Hans Kruse Photography
Re: Why is it recommended to export as sRGB for jpeg?
« Reply #6 on: August 20, 2014, 02:01:46 pm »

I understand point (1). That's exactly what I'm trying to achieve. Control how the image will be viewed in sRGB space. But what I have found is that converting it to SRGB automatically with LR yields much better result than me manually going to into soft proof mode and tweaking the colors. Do you know why that is?

In the latter case could you explain exactly what you do. Do you first soft proof using the sRGB profile and then export the resulting virtual copy to JPG in the sRGB color space?

yalag

  • Newbie
  • *
  • Offline Offline
  • Posts: 40
Re: Why is it recommended to export as sRGB for jpeg?
« Reply #7 on: August 20, 2014, 02:05:30 pm »

In the latter case could you explain exactly what you do. Do you first soft proof using the sRGB profile and then export the resulting virtual copy to JPG in the sRGB color space?

That's exactly what I did. I opened the image in LR, in soft proof mode with sRGB with the destination profile. And then turn down the saturation of the yellow color on a flower until the clipping indicator goes away.
Logged

Hans Kruse

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 2106
    • Hans Kruse Photography
Re: Why is it recommended to export as sRGB for jpeg?
« Reply #8 on: August 20, 2014, 02:11:55 pm »

That's exactly what I did. I opened the image in LR, in soft proof mode with sRGB with the destination profile. And then turn down the saturation of the yellow color on a flower until the clipping indicator goes away.

But did you during that process manage to get the proof copy to look the same (or closely the same) as the original without soft proofing in Lightroom?

D Fosse

  • Guest
Re: Why is it recommended to export as sRGB for jpeg?
« Reply #9 on: August 20, 2014, 02:14:03 pm »

Quote
until the clipping indicator goes away

The clipping indicators aren't accurate. You'll get a much better idea by studying the histogram; any one or two channels clipping at either end is gamut clipping. And you also get a pretty good impression of how much.
Logged

D Fosse

  • Guest
Re: Why is it recommended to export as sRGB for jpeg?
« Reply #10 on: August 20, 2014, 02:21:45 pm »

Also note that if you have out of gamut yellows, turning down yellow saturation wholesale will also desaturate yellows that are actually in gamut. You need to be selective.
Logged

yalag

  • Newbie
  • *
  • Offline Offline
  • Posts: 40
Re: Why is it recommended to export as sRGB for jpeg?
« Reply #11 on: August 20, 2014, 02:23:04 pm »

Also note that if you have out of gamut yellows, turning down yellow saturation wholesale will also desaturate yellows that are actually in gamut. You need to be selective.

Maybe that's the problem, how do I only work on the out of gamut colors?
Logged

digitaldog

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 20646
  • Andrew Rodney
    • http://www.digitaldog.net/
Re: Why is it recommended to export as sRGB for jpeg?
« Reply #12 on: August 20, 2014, 02:54:38 pm »

Maybe that's the problem, how do I only work on the out of gamut colors?
By and large, let the profile handle this. There is only a minor degree of tweaking you can do anyway. Out of gamut (OOG) colors are just a fact of life and considering the only rational reason to convert to sRGB is to upload to the internet or screen presentation outside color managed app's, how much work do you want to go through?

See:
http://digitaldog.net/files/LR4_softproof2.mov
Logged
http://www.digitaldog.net/
Author "Color Management for Photographers".

yalag

  • Newbie
  • *
  • Offline Offline
  • Posts: 40
Re: Why is it recommended to export as sRGB for jpeg?
« Reply #13 on: August 20, 2014, 05:41:51 pm »

By and large, let the profile handle this. There is only a minor degree of tweaking you can do anyway. Out of gamut (OOG) colors are just a fact of life and considering the only rational reason to convert to sRGB is to upload to the internet or screen presentation outside color managed app's, how much work do you want to go through?

See:
http://digitaldog.net/files/LR4_softproof2.mov

Hey off topic...but in your video you said the monitor gamut warning is comparing between the monitor's gamut with the working space gamut. Are you sure that is the case? Because if that was true, how come when I switch the destination profile from one to another, the monitor gamut warning areas change? Wouldn't it always be the same?
Logged

digitaldog

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 20646
  • Andrew Rodney
    • http://www.digitaldog.net/
Re: Why is it recommended to export as sRGB for jpeg?
« Reply #14 on: August 20, 2014, 06:17:23 pm »

Because if that was true, how come when I switch the destination profile from one to another, the monitor gamut warning areas change? Wouldn't it always be the same?
It should change, you updated the profile of which the display gamut overlay is calculated.
Logged
http://www.digitaldog.net/
Author "Color Management for Photographers".

Eyeball

  • Full Member
  • ***
  • Offline Offline
  • Posts: 150
Re: Why is it recommended to export as sRGB for jpeg?
« Reply #15 on: August 20, 2014, 06:41:55 pm »

Andrew, yalag is actually pointing out a discrepancy in your video that I myself noticed a few months back.

In the video, you state that the monitor clipping indicator is NOT changing with the target soft-proof space and you even comment how this then is of questionable use.  The current version of LR actually DOES change the monitor clipping depending on the target profile.

I think that one of two things happened when you did the video:
- there was a bug that didn't permit the monitor clipping to display correctly (you were using the beta, so somewhat understandable).
- the LR image display just failed to update when you were doing the video or it was incredibly slow in updating.  This is actually something that can occur, even with the latest version of LR.  I have noticed several times that the soft-proofing clipping indicators (both monitor and target profile) can update extremely slowly or sometimes not at all when making certain changes.  I have seen this happen on several occasions when changing the camera profile, for example.  Exiting and re-entering soft-proof mode will usually clear things up.
Logged

digitaldog

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 20646
  • Andrew Rodney
    • http://www.digitaldog.net/
Re: Why is it recommended to export as sRGB for jpeg?
« Reply #16 on: August 20, 2014, 06:46:34 pm »

- there was a bug that didn't permit the monitor clipping to display correctly (you were using the beta, so somewhat understandable).
- the LR image display just failed to update when you were doing the video or it was incredibly slow in updating.  This is actually something that can occur, even with the latest version of LR.
Yes, it was the beta version which was used for the video and then fixed. I haven't seen the failure to update on my end, but there's a comment on the YouTube video where someone else says that's something he's seen. The OOG overlay should update.
« Last Edit: August 20, 2014, 06:48:46 pm by digitaldog »
Logged
http://www.digitaldog.net/
Author "Color Management for Photographers".

Eyeball

  • Full Member
  • ***
  • Offline Offline
  • Posts: 150
Re: Why is it recommended to export as sRGB for jpeg?
« Reply #17 on: August 20, 2014, 07:21:22 pm »

I haven't seen the failure to update on my end, but there's a comment on the YouTube video where someone else says that's something he's seen. The OOG overlay should update.

Yes, that was me.  ;D

And as I said in that comment, I think the degree that the rendering intent will handle things depends on the image.  I'm including the following in case it might be useful for yalag.  I know that you already know all this, Andrew.

First, as you have said many times the clipping overlays don't tell you how far out of gamut the colors are so that can be a big deal.  If the colors are only slightly out of gamut the small adjustment made, even with relative colorimetric, will be nearly invisible.

Second, even if the colors are significantly out of gamut it may not be that noticeable if those clipped colors are providing little in the way of detail information or if the detail provided by those clipped colors is very small.  There will be some degree of hue shift but there will be little or no noticeable loss of detail.

On the other hand, if the clipped colors ARE providing detail information (variation in tones over the clipped areas), then relying solely on the rendering intent can be problematic.  You can often see this in images of brightly colored flowers, where the colors are significantly out of gamut and those clipped colors cause a very noticeable loss of detail in the image.

For Lightroom users, I have found two ways that often help with OOG situations beyond just using the HSL sliders.  One is easy; one is a little harder.

The easy way is to just use the Tone Curve while in soft-proof mode and pull down on the white point.  This won't necessarily bring all colors into gamut but it will often resolve a large percentage of the OOG colors in photos of flowers and such - particularly when going to something like sRGB.  It darkens the image some obviously but for on-line viewing in sRGB I find that it often works pretty well.  The eye adapts to the lower brightness pretty well and you don't get the faded color that HSL adjustments will sometimes give you.  It also seems to work better than the Exposure, Highlights, and Whites controls where LR tries to be smarter than you want it to be in this case.

The more difficult method is to use Adobe's DNG profile editor to make adjustments to heavily saturated colors in a custom camera profile.  I still don't have one "perfect" but I have done some experiments and they work pretty good for non-commercial work.  I think of it as a way to create my own "perceptual" rendering intent and by doing it with a custom camera profile, it works even for a v2 sRGB target.
Logged

yalag

  • Newbie
  • *
  • Offline Offline
  • Posts: 40
Re: Why is it recommended to export as sRGB for jpeg?
« Reply #18 on: August 20, 2014, 11:31:19 pm »

Yes, that was me.  ;D

And as I said in that comment, I think the degree that the rendering intent will handle things depends on the image.  I'm including the following in case it might be useful for yalag.  I know that you already know all this, Andrew.

First, as you have said many times the clipping overlays don't tell you how far out of gamut the colors are so that can be a big deal.  If the colors are only slightly out of gamut the small adjustment made, even with relative colorimetric, will be nearly invisible.

Second, even if the colors are significantly out of gamut it may not be that noticeable if those clipped colors are providing little in the way of detail information or if the detail provided by those clipped colors is very small.  There will be some degree of hue shift but there will be little or no noticeable loss of detail.

On the other hand, if the clipped colors ARE providing detail information (variation in tones over the clipped areas), then relying solely on the rendering intent can be problematic.  You can often see this in images of brightly colored flowers, where the colors are significantly out of gamut and those clipped colors cause a very noticeable loss of detail in the image.

For Lightroom users, I have found two ways that often help with OOG situations beyond just using the HSL sliders.  One is easy; one is a little harder.

The easy way is to just use the Tone Curve while in soft-proof mode and pull down on the white point.  This won't necessarily bring all colors into gamut but it will often resolve a large percentage of the OOG colors in photos of flowers and such - particularly when going to something like sRGB.  It darkens the image some obviously but for on-line viewing in sRGB I find that it often works pretty well.  The eye adapts to the lower brightness pretty well and you don't get the faded color that HSL adjustments will sometimes give you.  It also seems to work better than the Exposure, Highlights, and Whites controls where LR tries to be smarter than you want it to be in this case.

The more difficult method is to use Adobe's DNG profile editor to make adjustments to heavily saturated colors in a custom camera profile.  I still don't have one "perfect" but I have done some experiments and they work pretty good for non-commercial work.  I think of it as a way to create my own "perceptual" rendering intent and by doing it with a custom camera profile, it works even for a v2 sRGB target.

Thanks that was very helpful. I'll probably try the easy method, since the hard method is out of my expertise at the moment.

But back to my original question, as pointed out by another poster and Andrew's video. It's not even advisable to try to fix out of gamut colors to begin with. As demonstrated, letting the software do the clipping automatically often produces better results (unless like you where you have some very sophisticated method).

So then this begs the question, doesn't this apply to printing as well? When I soft proof my printer+paper profile in LR. What exactly is my goal here? I understand that it's useful to correct contrast etc. But when it comes to color, I should pretty much just toggle the intent and let it be. Any attempt to correct the color will probably yield a worse result than letting the software does its thing.

This whole experiment started when my objective was to export images for internet viewing (srgb). But the more I explored it here, I realize it's the same thing with printing. 
Logged

Eyeball

  • Full Member
  • ***
  • Offline Offline
  • Posts: 150
Re: Why is it recommended to export as sRGB for jpeg?
« Reply #19 on: August 21, 2014, 09:18:05 am »

But back to my original question, as pointed out by another poster and Andrew's video. It's not even advisable to try to fix out of gamut colors to begin with. As demonstrated, letting the software do the clipping automatically often produces better results (unless like you where you have some very sophisticated method).

So then this begs the question, doesn't this apply to printing as well? When I soft proof my printer+paper profile in LR. What exactly is my goal here? I understand that it's useful to correct contrast etc. But when it comes to color, I should pretty much just toggle the intent and let it be. Any attempt to correct the color will probably yield a worse result than letting the software does its thing.

Note that you are saying "OFTEN produces better results" and "PROBABLY yield a worse result".  So one question to consider is what probability do those qualifiers represent.  Is it >50% of the time, >80%, >95%, or >99.9%?  Personally, I would have no problem believing the >50% and probably not much of a problem with the >80% either but I would start questioning probabilities much higher than that.  I see plenty of pics on the web of red, yellow, and orange objects where the photographer just let the rendering intent do its thing and they look pretty bad.

The other variables that come into play are how perfect you need your image to be and how much time and money you are willing to spend to get it there.

So ultimately I think you need to be your own judge and to use your eyes to the extent that you can, with soft-proofing, test prints, and so on.  Whether you are using relative or perceptual rendering intents, or you are doing your own tweaking to bring colors into gamut, you want to be looking for hue shifts and detail loss and making sure those compromises, if any, are acceptable to you given your time and money constraints.
Logged
Pages: [1] 2   Go Up