Photoshop tips Using the - Blend If Feature

Photoshop Tips – Using the Blend If Feature

blendif_opener_alt

The Blend If feature in Photoshop blends one layer into another based on the content of either of the two layers. It can be used, for example, to replace a sky by making it easy for you to knock out the blue sky without having to make a complex selection.

In this article, you’ll learn some Photoshop tips on how to use Blend If to replace a sky.

Start by opening an image such as the one shown here. Right click on the background layer and choose Duplicate Layer to make a second copy (keyboard shortcut is “command/control + J”). You now have two layers with the same content.

using the "blend if" feature in Photoshop

Make a duplicate layer

Open an image with good sky. Choose Select > All and then Edit >Copy. Click on the main image and choose Edit > Paste. Drag the sky layer between the two image layers. Size the sky layer, if necessary, so it is big enough to replace the unwanted sky in the original image. Alternately you can use File>Place to choose the new image, and Photoshop will automatically add it as a layer and make it a Smart Object (so it can be resized without any quality loss).

blendif_2

Put the layer of the new sky in between the other two

Target the top layer, click the Add Layer Style icon (fx)at the foot of the Layers palette and click Blending Options to open the Layer Style dialog box (see below).

blendif_3

The Blend If sliders and channel selector are at the foot of this dialog. To start, you will choose the channel to use. The Gray channel is the luminance channel so it lets you make your adjustment based on the lightness/darkness of either the image layer or the layer below. If you choose Red, Green or Blue you’ll be using that channel as the basis for your blending.

blendif_4

The layer underneath the current layer contains the sky that we want to use. So you will use the sliders called This Layer to remove the existing sky, to be able see through to the sky underneath. If we were to select the Gray channel we won’t be able to make the selection very easily because both the sky and the grasses have similar luminosity or lightness values.

However if you exit this dialog for a minute and take a look at the individual channels in the image, you may find one where there is plenty of contrast between the area you are seeking to hide (the blue sky) and the areas you want to keep (the grasses).

To do this close the dialog box temporarily, choose Window > Channels and click on the Red, Blue, and Green channels in turn to view them.

In this case the Blue channel displays the sky as a lighter tone than the grasses, which are darker. This channel has the most contrast in the area we are interested in so it will be a good one to use.

Select the RGB channel again before you leave the Channels palette. Return to the Layers palette and target the top most layer again. Display the Blending Options dialog again and choose the Blue channel in the Blend If pull down.

Drag the right most slider in the This Layer area to the left. As you do so, the lighter blue areas will disappear and you will see through to the sky layer underneath.

Blendif_5a

Pull the right slider for “This Layer” to the left

Blendif_5b

The result is the the layer below will start to appear, but the transition is not smooth

To smooth out the transition between the area being removed and the area which remains, break the slider in two. You do this by holding the Alt key (Option on a Mac) and drag half of the slider away from the other half.

The rightmost half of the slider indicates the point at which the blending effect is fully impacting the image. So pixels which have a value greater than the value indicated by this slider will be fully transparent. The left half of this slider controls the point at which the blending ceases. Any values in the blue channel that are smaller than the value indicated by this slider will be fully opaque. Pixels which have values in the blue channel that match the values between the two sliders are partially transparent.

blendif_6

For some images you may get better results by combining multiple channels. So you might use the blue and the red channels but use the rightmost slider on the blue channel and the leftmost slider on the red channel. You’ll need to experiment to see what works for your image. When you have a good result click Ok.

In a perfect world you’ll be able to fully remove the unwanted sky with just this adjustment. Chances are your results will be less than perfect! Mine certainly are, see below.

blendif_7

If this is the case, make sure that the Blend If adjustment gives you the best results in the area that would require you to make a complex selection. For me that is where the grass meets the sky. Selecting around the grass would be a big job so I want the Blend If results to be good in this area. That it doesn’t get rid of the rest of the sky is just fine – that it is easy to get rid of manually.

Target the top layer and click the Add Layer Mask icon at the foot of the Layers palette. Target the mask by clicking on it. Choose a soft round brush and paint using black over the mask to hide the remainder of the sky. Using a soft brush (0% Hardness) will ensure you get a seamless transition between the original image and the new sky.

blendif_8

Problems elsewhere

Occasionally you will find that using the Blend If sliders to remove the sky also results in some unwanted transparency appearing elsewhere in the image. If this occurs you can use content from the background layer to fill the transparent areas.

Make a selection over the area to fix, click on the Background layer to target it and choose Layer > New > Layer via Copy. Drag this layer to the top of the image and it will cover the areas that were made transparent.

Although this wasn’t a problem with this image, this is what the layer stack might look like if you do need to fix some transparency appearing elsewhere in the image.

blendif_9

The Blend If sliders are a useful way to blend layers without needing to make complex selections. You can make even better use of these sliders when you use the channel data as a guide to determine which channels to use for your blending.

Read more from our Post Production category.

Helen Bradley is a Lifestyle journalist who divides her time between the real and digital worlds, picking the best from both. She writes and produces video instruction for Photoshop and digital photography for magazines and online providers world wide. She has also written four books on photo crafts and blogs at Projectwoman.com.

  • Brackbox

    Great tutorial . I was aware of this in photoshop but did not know how to implement it for best advantage. You made it all very clear. Thanks.

  • Ndraz

    Just read this through and straightly practiced it. Very useful tutorial. Enxcellent! and many thanks!

  • Helen Bradley

    Glad you enjoyed this Ndraz

  • Helen Bradley

    I hope you find lots of use for this feature, Brackbox

  • Kerry

    Thanks Helen! As an architecture/interiors photographer I am constantly replacing the sky on exterior photos. As with everything in PS there are 100 ways to do the same thing. I find this method one of the cleanest methods for replacing a sky when there are tree limbs/leaves involved. Really difficult to get clean selections of those. It’s always nice to have another “trick” in the bag. Thanks again.

Some older comments

Receive a FREE SAMPLE of our Portrait Photography Ebook

  • Guaranteed for 2 full months
  • Pay by PayPal or CreditCard
  • Instant Digital Download

Receive a FREE SAMPLE of our Portrait Photography Ebook

  • Guaranteed for 2 full months
  • Pay by PayPal or CreditCard
  • Instant Digital Download

Receive a FREE SAMPLE of our Portrait Photography Ebook

  • Guaranteed for 2 full months
  • Pay by PayPal or CreditCard
  • Instant Digital Download

Sign up to the free DPS PHOTOGRAPHY COURSE

  • Guaranteed for 2 full months
  • Pay by PayPal or CreditCard
  • Instant Digital Download

GET DAILY free tips, news and reviews via our RSS Feed

Sign up to the free

DPS PHOTOGRAPHY COURSE

  • Guaranteed for 2 full months
  • Pay by PayPal or CreditCard
  • Instant Digital Download

GET DAILY free tips, news and reviews via our RSS Feed

Sign up to the free

DPS PHOTOGRAPHY COURSE

  • Guaranteed for 2 full months
  • Pay by PayPal or CreditCard
  • Instant Digital Download
DPS NEWSLETTER
DPS NEWSLETTER
DPS NEWSLETTER

DPS offers a free weekly newsletter with: 
1. new photography tutorials and tips
2. latest photography assignments
3. photo competitions and prizes

Enter your email below to subscribe.
Email:
 
 
Get DAILY free tips, news and reviews via our RSS feed