Luminosity/Color blend modes – what do they really do?

AS
Posted By
Aaron_Sher
Apr 14, 2008
Views
1386
Replies
10
Status
Closed
I know what the documentation says that they do, but it doesn’t appear to be the truth. For example, if I take my image and overlay it with a 50% gray layer set to Luminosity mode, I would expect to see the hue and saturation of my image, with the luminosity of every pixel set to 50%, but that isn’t what actually happens.

Have I misunderstood what these modes are supposed to do? Can anyone enlighten me?

Thanks in advance,
Aaron

How to Master Sharpening in Photoshop

Give your photos a professional finish with sharpening in Photoshop. Learn to enhance details, create contrast, and prepare your images for print, web, and social media.

JM
J_Maloney
Apr 14, 2008
Change color mode to LAB.

J
MR
Mark_Reynolds
Apr 14, 2008
Good question Aaron, the fact is that Luminosity mode in RGB is not quite the same as L in Lab, but it still does a damn good job at putting yellow into your image!
GA
George_Austin
Apr 15, 2008
Aaron.

The Luminosity blend DOES, in fact, preserve in the result the luminosity of the blend color. Possibly you are not reading the luminosity correctly. In Photoshop, luminosity is DEFINED as follows:

0.3R +0.59G + 0.11B

Read the RGB component values at any point, apply the above weighting factors, and add the weighted values to get the resultant luminosity. If the blend mode has been set to luminosity, that result will be the same as the luminosity of the blend color at every pixel site. In the case you cite, with the blend color a 50% gray everywhere, the resulting weighted values (the "luminosity") will add up to 128 everywhere.
D
DGWaters
Apr 15, 2008
While all these answers are essentially correct, I think maybe they’re missing the OP’s point? Although he isn’t very clear, telling us only what *doesn’t* happen but not what actually *does*.

So just to get it out of the way: Layer opacity slider, visibility icon (the eye), no additional layer with luminosity data on top – all check? If so, proceed to above. Unless, of course, something’s really wrong.
AS
Aaron_Sher
Apr 15, 2008
Apologies for the unclear explanation, and thank you for the answers. I was looking at the HSB values for the pixel, and expecting the brightness to be set to 50% and the hue and saturation to be unchanged. Clearly, that’s not what’s going on.

OK, so given the formula above for luminosity, how can I predict what the RGB values will be for a given pixel in the example I gave (actually, I’m looking for the general-case equation, but the one example is probably sufficient to derive it)?

Based on some experiments, it looks to me as if what’s happening is that, given an original pixel (R, G, B), PS computes an offset K such that the pixel (R+K, G+K, B+K), where each component is clipped to the range (0-255) will have a luminosity close to 50%. Can anyone confirm that that is the case?

Incidentally, where did you find that formula for luminosity? I did a whole bunch of searching, and I never came up with it.

Much appreciated,
Aaron
GA
George_Austin
Apr 15, 2008
Aaron,

The weighting factors for R G and B were determined long ago via subjective responses in tests on thousands of people. there have since been other recommended weights. No set of weights is valid over the whole range of color values. In an imperfect world you compromise. Nowhere is it explicitly stated, but Photoshop has stuck with the older weights. You can verify that for yourself using the Info palette. Other applications may use other luminosity definitions. Also in Photoshop, Brightness is taken to be the highest of the R G and B color values. I think you were equating brightness and luminosity. They are decidedly different parameters. Nor is Luminosity the same as the L parameter in LAB (most often called "Lightness" but often "Luminance"). You won’t find that LAB Lightness is preserved by the Luminosity blend and certainly not Brightness. Using the Info palette, you can also see that the Luminosity blend mode retains the hue and saturation of the base while adopting the luminosity of the blend color.
AS
Aaron_Sher
Apr 15, 2008
Actually, unless there’s some additional option in the Info panel of CS3 (I’m actually working with PSE6 at the moment), what’s shown there is HSB, and the saturation is definitely not conserved. The hue does seem to be, unless one or more of the color components gets clipped.

This is what confused me originally – I was expecting Luminosity to be at least on the same axis as Brightness, whereas it is in fact somewhere on the Brightness/Saturation plane.

Thanks,
Aaron
GA
George_Austin
Apr 16, 2008
Aaron,

You are right. Saturation is not preserved in a Luminosity blend. But the blend color’s luminosity and the base color’s hue ARE preserved. Saturation adjusts to whatever is necessary to achieve that.

You can readily verify that the resultant hue is the same as the BASE hue by setting the info panel to HSB and comparing before and after hues.

Verifying that the resultant luminosity is the same as the BLEND luminosity is not as easy. You have to read out the RGB values and calculate the before and after luminosities, using the weighting factors I cited.

Resultant hue and luminosity will EXACTLY match base and blend values, respectively.

George
AS
Aaron_Sher
Apr 16, 2008
Agreed, that’s what I calculated. Knowing the formula for luminosity makes it make sense. Actually, a little algebra says that the constant K that’s added to each component is just the desired luminosity minus the original luminosity, though things get a bit more complicated if you start clipping component values (because they’ve reached 0 or 255).

Aaron
GA
George_Austin
Apr 16, 2008
Aaron,

"…Actually, a little algebra says that the constant K that’s added to each component is just the desired luminosity minus the original luminosity…"

The resultant luminosity of a pixel is the sum of its weighted color channel values. In general, blending-induced incremental changes in these components are not even close to being equal. Adding a "constant K" to each of these components is not making sense to me.

George

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