Skip to main content
Participating Frequently
Jan 17, 2020 7:03 PM UTC
Question

How does invert work in terms of luminance?

Dear all,

I wanted to invert a photo and apply a correction curve in order to create a digital film.

But, if I invert a test grey chart using an invert adjustment layer, photoshop actually applies some correction curve. So my L=0 becomes L=100, my L=100 becomes L=0 (so far, so good), but my L=53 becomes... L=69.

Can somebody explain me why and how I could invert so that my L= 53 becomes L=47 and so on? I did not see any option on the invert layer to choose this.

 

Thank you!

 

Laurent

This topic is closed to new replies. Start a new post to keep the conversation going.

9 replies

davescm
Community Expert
Community Expert
Jan 18, 2020 12:26 PM UTC

I've just tried, and it seems that if you change your Image mode to Lab Colour then Invert works the way you want - with 50 being the centre point

 

Dave

Translate
D Fosse
Community Expert
Community Expert
Jan 18, 2020 3:53 PM UTC

Interesting. I'm going to look more into this when I get time.

 

For a long time I thought Photoshop luminosity was Lab L. It would make perfect sense, since Lab is used as profile connection space in color management, and Lab numbers therefore are always easily available under the cover.

 

But then testing revealed that they wen't absolutely identical - there is a small difference in the tone curve. Since then, I've kept wondering what Luminosity really is, and never came up with a good answer.

Translate
Participating Frequently
Jan 18, 2020 9:26 AM UTC

Thanks!

It seems GIMP offers several ways of inverting, so I will use that instead I guess. Thank you!

Translate
davescm
Community Expert
Community Expert
Jan 17, 2020 7:46 PM UTC

Invert works in RGB and takes the RGB values from 255,255,255  so 180,170,0 becomes 75,85,255

Because of the gamma curve in RGB, the 128 does not translate to L 50

Dave

Translate
Participating Frequently
Jan 17, 2020 7:55 PM UTC

Thank you! Would you know a way to invert the luminance then?

Translate
D Fosse
Community Expert
Community Expert
Jan 17, 2020 8:14 PM UTC

I think you would need to work in linear gamma to get entirely predictable and mirrored numbers (gamma 1.0).

 

Aside from that, all of this is a bit of a murky area. Photoshop luminosity is a custom curve that is independent from the document's color space, and it doesn't match any of the standard tone response curves. It's likely based on Lab L, but it's not identical. I suspect its main purpose is to give a visually consistent result, and nevermind the numbers.

Translate