Jump to content
hanshab

Saturate a photo using subtract mode

Recommended Posts

The saturation of a color is determined by a combination of light intensity and how much it is distributed across the spectrum of different wavelengths.  The math for saturation includes luminosity. An interesting way to saturate a photo  is using the subtract blend mode.  This can be achieved by making a copy of the photo then inverting it.  This changes each color to the complementary color. But it also affects the luminosity.  You then apply the subtract blend mode. You are in essence subtracting the complementary colors from the original photo that has the effect of saturating the original color.  In RGB mode, when inverting, you not only invert the color but you also invert the luminosity.  This has will darken the photo colours.  So in practice what I have found you may need to change the brightness of the midtones and/or the shadows.  You can then apply blend ranges to apply the difference blend mode but I find keeping the highlights from the original works best.  

I have included a macro here that does this.  The macro lets you manipulate the brightness and contrast of the midtones and shadows if you wish.  YOU can also manipulate the blend range if you desire.  Have fun. Note that this works in the RGB color space but NOT in the LAB color space as the math is different.  

saturate by subtract RGB.afmacro

Share this post


Link to post
Share on other sites

I forgot to add that it is a single macro and has to be uploaded from the macro and not the macro library  pull down menu.

Share this post


Link to post
Share on other sites

@hanshab Would it be possible to export this from macro library as a .macros file. This way it can be tried on the iPad version of AP. :)


IPad Pro 10.5 512GB iOS 12.3.1 Affinity Photo 1.7.2.146 Affinity Design 1.7.1.1 Publisher for iPad ?

Share this post


Link to post
Share on other sites

I cannot follow the logic of the arithmetic here. You are inverting the image, then subtracting it from the original. If the Original saturation is S, then inverting it gives 1-S. Subtracting this from the original gives S-(1-S), or 2S-1.

I tried your macro and it does not appear to do anything. The outcome looks similar to the original. If anything, a little darker with the default parameters.

Here is an original image I used:

893621162_CherryLaurelOriginal.jpg.bb02c75227ed4b5a530b75b897081437.jpg

I applied the procedure: Duplicate, Invert, Blend Subtract and I got this:

829490900_CherryLaurelInv-Sub.jpg.b2b2eb36bcf3ab29af4b485a90a22b22.jpg

Just for comparison, I added an HSL adjustment, boosting the saturation and got:

1093808467_CherryLaurelx-Sat.jpg.41b0805aa7c68fee29674c19a7366a68.jpg

What am I supposed to see. Can you give examples?

John


Windows 10, Affinity Photo 1.7 and Designer 1.7, (mainly Photo), now ex-Adobe CC

CPU: AMD A6-3670. RAM: 16 GB DDR3 @ 666MHz, Graphics: 2047MB NVIDIA GeForce GT 630

Share this post


Link to post
Share on other sites

Hanshab,

In a precedent  thread  about Saturation  mask  you have propose the Mode L*a*b* for this.

This message incitate me to explore it, as you said  at this time, it's more easy more logic

  My 1.7  macro lab  Lab .afmacros

Process use

 

I tried The image of John

Click on the macro

You have Luminance L  and Color  (ab) at this point nothing new compare with background desactivate this last  one

Duplicate color layer  put in saturation mode and made groupe Multiply mode

adapt with opacity,  Big effect..

eventually use Luminance layer curve , here not use perhaps local correction on over lumonosity on white  inflorescence,  here white is not color)

 

here not use perhaps local correction  for the "over luminosity" on white  inflorescence , here white is not color

 

CaptureSat2.thumb.PNG.1aee2902ce42dc209c1d8693c540e5bf.PNG

Share this post


Link to post
Share on other sites

There was a step missing in the macro, which is initially to duplicate the layer.  I fixed that and put in more explanations to the macro.  The key is the inversion and the subtraction which takes out the complementary colours of RGB to make the RGB more saturated.  However what John Rostrow got is typical if you don't adjust  opacity and the brightness and contrast of the colours once the subtract mode is applied.   This is because in RGB as opposed to LAB, both colours and contrast are adjusted. In the macro I allow you to adjust all these parameters to taste since each picture will be different.  The saturation is very deep as is the contrast so those will need to be adjusted. I recommend that you set the global opacity  to between 10 to 20 percent

saturate by subtract RGB.afmacro

Share this post


Link to post
Share on other sites

elow are examples of before and after the saturate by subtract macro has run

Screen Shot 2019-04-07 at 15.48.06.png

Screen Shot 2019-04-07 at 15.48.27.png

Share this post


Link to post
Share on other sites

@hanshab,. This revised version certainly gives a more convincing saturation effect.

Original:

1171368557_CherryLaurelOriginal.jpg.a62bf1dcee22a64ef42b516428da3013.jpg

and with the revised macro applies with the default settings:

174050402_CherryLaurelInv-Sub2.jpg.5e10051a5dc48661efa5cf098f15c386.jpg

I shall have to do some further experimentation.

@Max P. I tried your Lab macro but could not follow your instructions.

John


Windows 10, Affinity Photo 1.7 and Designer 1.7, (mainly Photo), now ex-Adobe CC

CPU: AMD A6-3670. RAM: 16 GB DDR3 @ 666MHz, Graphics: 2047MB NVIDIA GeForce GT 630

Share this post


Link to post
Share on other sites

@ john  sorry , english is not so evident for me. 

I try the macro with only one  background layer,  I send you the file.  1.7 Version I hope it's good.  Say me if you want a 1.6 version.

usually modulate  opacity on the color layer or the duplicate is enough.  L layer with curves  for correct the global images or part must be use in some cases.s

 

@Hanshab,

it's ok for me and I understand  your comment.

John.afphoto

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×