Pages: [1] 2   Go Down

Author Topic: Photoshop - Perceptual colour space conversion not working  (Read 1803 times)

shadowblade

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 2839
Photoshop - Perceptual colour space conversion not working
« on: November 13, 2019, 03:30:22 pm »

I was just going through some old photos and noticed that, while the Adobe RGB versions appeared correct, the sRGB jpg conversions for web display often did not. After further investigation, it became clear that the perceptual conversion used didn't work properly - instead of compressing the entire colour space, it had behaved more like relative colorimetric, simply clipping the out-of-gamut colours and creating a lot of blocked-up pixels at the 0 or 255 ends of one or more colour channels.

I then went back and re-converted the images (in CS3) and encountered the same problem.

Has anyone else had this problem before? If so, what's the solution? Apart from manually desaturating the entire image until it's no longer out-of-gamut in sRGB.

Otherwise, are there any good third-party programs for colour space conversion that are worth downloading? Or any other program that can create a gamut plot of a TIFF/PSB file, in order to compare it to any given colour space?
Logged

rasworth

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 473
Re: Photoshop - Perceptual colour space conversion not working
« Reply #1 on: November 13, 2019, 03:57:54 pm »

When you convert from one matrix based color space to another, I assume in your case from Adobe1998 to sRGB, all you have available is Relative intent, clipping included.

Richard Southworth
Logged

shadowblade

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 2839
Re: Photoshop - Perceptual colour space conversion not working
« Reply #2 on: November 13, 2019, 06:18:16 pm »

When you convert from one matrix based color space to another, I assume in your case from Adobe1998 to sRGB, all you have available is Relative intent, clipping included.

Richard Southworth

It gives me the options of Perceptual, Saturation, Relative and Absolute. None of them are greyed out/unselectable.

I'd use Relative if there were only a few, small areas of out-of-gamut colour, but would prefer to use Perceptual with highly saturated images.

Is there a better way to make this conversion? From what you're saying, I'd assume that would involve converting it from Adobe RGB to a table-based colour space that matches Adobe RGB, then converting it to sRGB?
« Last Edit: November 13, 2019, 06:22:12 pm by shadowblade »
Logged

digitaldog

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 20650
  • Andrew Rodney
    • http://www.digitaldog.net/
Re: Photoshop - Perceptual colour space conversion not working
« Reply #3 on: November 13, 2019, 06:46:18 pm »

Simple V2 matrix profiles only have the Colorimetric table. So in Photoshop and many other applications, while you might see an option for Perceptual, Saturation, you're not getting it. Only RelCol.
IF you convert to sRGB and it doesn't appear correctly outside of say Photoshop, chances are, that application isn't color managed. Non color managed applications have no idea what sRGB is anyway. As explained here:

sRGB urban legend & myths Part 2
In this 17 minute video, I'll discuss some more sRGB misinformation and cover:
When to use sRGB and what to expect on the web and mobile devices
How sRGB doesn't insure a visual match without color management, how to check
The downsides of an all sRGB workflow
sRGB's color gamut vs. "professional" output devices
The future of sRGB and wide gamut display technology
Photo print labs that demand sRGB for output

High resolution: http://digitaldog.net/files/sRGBMythsPart2.mp4
Low resolution on YouTube: https://www.youtube.com/watch?v=WyvVUL1gWVs
Logged
http://www.digitaldog.net/
Author "Color Management for Photographers".

smthopr

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 612
    • Bruce Alan Greene Cinematography
Re: Photoshop - Perceptual colour space conversion not working
« Reply #4 on: November 13, 2019, 07:02:01 pm »

Yes, only relative conversion is possible when converting color spaces using .icc profiles. .icc printer profile conversion when printing you can use perceptual intent.  And you can see the effect when soft proofing in Photoshop.

To avoid clipping colors, you might want to desaturate a little your image before performing the conversion.  And then, after the conversion, increase saturation to your liking in the new color space.  Depending on the image, you might find that you need to perform some selective color saturation operations to maximize the effect you're after.

Another alternative is to apply, for example, sRGB as a soft proof in photoshop, and make your color adjustments prior to conversion to the smaller color space.
Logged
Bruce Alan Greene
www.brucealangreene.com

digitaldog

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 20650
  • Andrew Rodney
    • http://www.digitaldog.net/
Re: Photoshop - Perceptual colour space conversion not working
« Reply #5 on: November 13, 2019, 07:59:25 pm »

Yes, only relative conversion is possible when converting color spaces using .icc profiles.
Depends on the construction of such working space profiles. There are a few profiles that have all tables, even one for sRGB:
http://www.color.org/profiles/srgb_appearance.xalter
Quote
To avoid clipping colors, you might want to desaturate a little your image before performing the conversion. 
Clipping is a fact of life working with larger gamut color spaces to smaller gamut color spaces. Don't worry about it. Let the profile do this; it is far faster and precise than anything you can do manually. It's why the Out of Gamut overlay is really a waste of time.
Logged
http://www.digitaldog.net/
Author "Color Management for Photographers".

shadowblade

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 2839
Re: Photoshop - Perceptual colour space conversion not working
« Reply #6 on: November 13, 2019, 08:17:54 pm »

Another alternative is to apply, for example, sRGB as a soft proof in photoshop, and make your color adjustments prior to conversion to the smaller color space.

That's pretty much what I've been doing since realising the problem existed and that Perceptual intent wasn't doing anything. Trouble is, it's fiddly, time-consuming and not all that accurate.
Logged

shadowblade

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 2839
Re: Photoshop - Perceptual colour space conversion not working
« Reply #7 on: November 13, 2019, 08:21:49 pm »

Depends on the construction of such working space profiles. There are a few profiles that have all tables, even one for sRGB:
http://www.color.org/profiles/srgb_appearance.xalterClipping is a fact of life working with larger gamut color spaces to smaller gamut color spaces. Don't worry about it. Let the profile do this; it is far faster and precise than anything you can do manually. It's why the Out of Gamut overlay is really a waste of time.

Does clipping have to be inevitable, though?

What if you converted from aRGB to a Perceptual-compatible colour space that encompassed aRGB (so no clipping), then converted from that colour space to a third, Perceptual-compatible colour space that matched sRGB (using perceptual intent, so no clipping there either), then, finally, converted it to actual sRGB?

Does anyone know of any such suitable profiles?
Logged

digitaldog

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 20650
  • Andrew Rodney
    • http://www.digitaldog.net/
Re: Photoshop - Perceptual colour space conversion not working
« Reply #8 on: November 13, 2019, 08:25:27 pm »

Does clipping have to be inevitable, though?
Nope, it's image specific. A middle gray in ProPhoto RGB isn't going to clip in terms of color gamut going to sRGB.
So if it doesn't happen, doesn't matter.
If it's going to happen, the profile is going to handle this for you, faster and more precisely than you can do manually.
The entire worry is not worth worrying about.  ;)
Logged
http://www.digitaldog.net/
Author "Color Management for Photographers".

shadowblade

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 2839
Re: Photoshop - Perceptual colour space conversion not working
« Reply #9 on: November 13, 2019, 08:46:08 pm »

Nope, it's image specific. A middle gray in ProPhoto RGB isn't going to clip in terms of color gamut going to sRGB.
So if it doesn't happen, doesn't matter.
If it's going to happen, the profile is going to handle this for you, faster and more precisely than you can do manually.
The entire worry is not worth worrying about.  ;)

What I meant is, if you have colours outside the sRGB gamut, do you have to put up with clipping, if you can find some suitable profiles that are compatible with perceptual rendering/colour space compression?
Logged

Doug Gray

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 2197
Re: Photoshop - Perceptual colour space conversion not working
« Reply #10 on: November 13, 2019, 08:56:35 pm »

Perceptual, Relative, Saturation, and Absolute Intents all produce the same results with standard XYZ matrix based profiles. With one exception.

If you have Windows and use Microsoft's ICM engine, Absolute Colorimetric Intent will convert matrix profiles such that the white point is maintained. For instance converting sRGB or Adobe RGB to ProPhoto RGB will produce a strong shift to the blue. MSFT's ICM does not adapt to the different illuminants and sRGB/Adobe RGB both have a white point of D65 while ProPhoto's is D50. This results in very bluish images converting to ProPhoto RGB.

However, this occurs because MSFT's ICM predates the ICC's specification clarification that transforms, even Abs. Col. transforms, should adaptate white points. This differs from CIE's use of Abs. Col. but ICC specifies ICC standards and their interpretation.
Logged

digitaldog

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 20650
  • Andrew Rodney
    • http://www.digitaldog.net/
Re: Photoshop - Perceptual colour space conversion not working
« Reply #11 on: November 13, 2019, 08:58:10 pm »

What I meant is, if you have colours outside the sRGB gamut, do you have to put up with clipping, if you can find some suitable profiles that are compatible with perceptual rendering/colour space compression?
If you have colors outside sRGB gamut, they will 'clip'. HOW they clip into the new color gamut is key; perceptual does this differently (and with some colors that are within gamut) far differently than RelCol which clips to the boundaries. Best way to understand this is visually:
Logged
http://www.digitaldog.net/
Author "Color Management for Photographers".

Doug Gray

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 2197
Re: Photoshop - Perceptual colour space conversion not working
« Reply #12 on: November 13, 2019, 09:14:07 pm »

If you have colors outside sRGB gamut, they will 'clip'. HOW they clip into the new color gamut is key; perceptual does this differently (and with some colors that are within gamut) far differently than RelCol which clips to the boundaries. Best way to understand this is visually:

Are you sure Andrew? That's not how I think it works for matrix profiles like sRGB and Adobe RGB 1980.
Logged

digitaldog

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 20650
  • Andrew Rodney
    • http://www.digitaldog.net/
Re: Photoshop - Perceptual colour space conversion not working
« Reply #13 on: November 13, 2019, 09:17:23 pm »

V2 matrix profiles will use RelCol and colors can still absolutely clip.
Logged
http://www.digitaldog.net/
Author "Color Management for Photographers".

Doug Gray

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 2197
Re: Photoshop - Perceptual colour space conversion not working
« Reply #14 on: November 13, 2019, 09:26:32 pm »

If we start with the Adobe RGB color (100,255,255), which is between the sRGB and Adobe RGB gamuts  and convert it in Photoshop using ACE the result is always right at the sRGB gamut boundary of (0,255,255) using any intent In no case does Perceptual "compress" and produce colors inside the sRGB gamut.
Logged

digitaldog

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 20650
  • Andrew Rodney
    • http://www.digitaldog.net/
Re: Photoshop - Perceptual colour space conversion not working
« Reply #15 on: November 13, 2019, 09:31:19 pm »

If we start with the Adobe RGB color (100,255,255), which is between the sRGB and Adobe RGB gamuts  and convert it in Photoshop using ACE the result is always right at the sRGB gamut boundary of (0,255,255) using any intent In no case does Perceptual "compress" and produce colors inside the sRGB gamut.
Exactly as my graphics illustrate. Further, there are no such rules as how a perceptual rendering will behave in such a case; totally up to the profile maker.
Logged
http://www.digitaldog.net/
Author "Color Management for Photographers".

Doug Gray

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 2197
Re: Photoshop - Perceptual colour space conversion not working
« Reply #16 on: November 13, 2019, 09:40:10 pm »

Exactly as my graphics illustrate. Further, there are no such rules as how a perceptual rendering will behave in such a case; totally up to the profile maker.

Right. And true for non-matrix profiles which can compress colors that were outside sRGB to something inside RGB as your graph shows. It is truly undefined!  But For matrix profiles, Perceptual conversions are the same as Relative intent conversions and clip at the boundaries of the smaller gamut exactly the same way.
Logged

digitaldog

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 20650
  • Andrew Rodney
    • http://www.digitaldog.net/
Re: Photoshop - Perceptual colour space conversion not working
« Reply #17 on: November 13, 2019, 09:50:57 pm »

But For matrix profiles, Perceptual conversions are the same as Relative intent conversions and clip at the boundaries of the smaller gamut exactly the same way.
Because they are not using a perceptual conversion.  ;)
https://www.argyllcms.com/doc/iccgamutmapping.html
 
http://www.earthboundlight.com/phototips/matrix-profiles-perceptual.html
Logged
http://www.digitaldog.net/
Author "Color Management for Photographers".

Doug Gray

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 2197
Re: Photoshop - Perceptual colour space conversion not working
« Reply #18 on: November 13, 2019, 10:10:20 pm »

Because they are not using a perceptual conversion.  ;)
https://www.argyllcms.com/doc/iccgamutmapping.html
 
http://www.earthboundlight.com/phototips/matrix-profiles-perceptual.html

What's highly amusing is that the sRGB profile Adobe uses (which originated from HP IIRC) marks itself as producing "Perceptual" Intent by default.

Of course matrix profiles produce the same results no matter how they label themselves. And I suppose that technically there is nothing wrong with that. After all, Perceptual intent is allowed to exactly match Relative intent since Perceptual is unspecified.

That said, non-matrix profiles with distinct B2A1 and B2A0 3D LUT tables are virtually certain to compress using Perceptual per your graph.
Logged

Guillermo Luijk

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 2005
    • http://www.guillermoluijk.com
Re: Photoshop - Perceptual colour space conversion not working
« Reply #19 on: November 17, 2019, 07:08:04 pm »

If you have colors outside sRGB gamut, they will 'clip'. HOW they clip into the new color gamut is key; perceptual does this differently (and with some colors that are within gamut) far differently than RelCol which clips to the boundaries. Best way to understand this is visually:

That is understood by everyone. I think what shadowblade is asking for is what would the proper workflow be to achieve a genuine Perceptual conversion to sRGB that really prevents clipping. I.e. what in-between steps to do to convert his Adobe RGB/ProPhoto RGB into sRGB achieving real colour compression for those colours falling out of the sRGB gamut. And I'd like to know about this workflow as well :)

Regards
Pages: [1] 2   Go Up