RSS
 

A Step-by-Step Guide to Sky Replacement Using Photoshop

29 Sep

The post A Step-by-Step Guide to Sky Replacement Using Photoshop appeared first on Digital Photography School. It was authored by Simon Ringsmuth.

Picture this if you will: you’re out in nature with your hopes, dreams, and a camera to capture it all. You see the beauty of creation stretching out before you, so you carefully and patiently set up your gear to get the perfect shot. Finally, the sun moves to just the right spot, and you hold your breath while you press the shutter button. Then you realize the clouds are all wrong. You can wait for hours for the ideal opportunity to present itself, or you can do sky replacement using Photoshop to drop in another one. It’s not as difficult as it might seem and can lead to some exciting results.

sky-replacement-using-photoshop

The building is in Oklahoma, and I combined it with a long-exposure sky I shot in Kansas.

Before you get started with this operation, you will need two pictures: one with a boring sky and one with a breathtaking sky. If you’re just getting started, I recommend using two pictures shot at a similar time of day under similar conditions. If you replace a sunny sky with storm clouds, the lighting will be all different, and the results will look, well, Photoshopped.

Image: A scenic view in the middle of Kansas. The sky could use some clouds though.

A scenic view in the middle of Kansas. The sky could use some clouds though.

After finding a picture with a nice foreground, you need to get another picture with an interesting sky.

Image: I shot this in the Tallgrass Prairie Nature Preserve in another part of Kansas. These clouds...

I shot this in the Tallgrass Prairie Nature Preserve in another part of Kansas. These clouds would look great in the first image, and Photoshop can help.

The plethora of screenshots below might seem overwhelming, but this entire process is quite easy and a lot less complicated than it seems. Fire up Photoshop, follow along carefully, and you should have some good results in no time at all.

Step 1: Get rid of the boring sky

Open your picture with the sky you want to replace in Photoshop. If you’re not familiar with Photoshop, you’ll see that the Layers panel on the right side has your picture as the Background layer. It’s locked, meaning you need to unlock it or make a copy. Go with the latter route by right-clicking and selecting Duplicate Layer.

Image: Always work on a copy of the background layer so you can revert to it if you need to.

Always work on a copy of the background layer so you can revert to it if you need to.

Click the new layer in the Layers panel to make sure it’s actually selected. You will know it’s selected by the outline that you can see around each corner of the layer thumbnail.

Image: The currently selected layer has white borders around each corner of its thumbnail. Make sure...

The currently selected layer has white borders around each corner of its thumbnail. Make sure the original Background layer is hidden by clicking the eye icon to the left of its thumbnail.

Click the eye button next to the original Background layer to make it invisible. It’s still there if you need it for any reason, but if all goes well, you should be able to do the rest of this entire process using the duplicated layer.

The next thing you need to do is remove the sky, which you can do with a technique known as layer masks. Start by clicking the Selection tool and holding it down until the pop-up menu appears. Click “Quick Selection Tool.” While not perfect, this is a great starting point for people who are new to sky replacements. You can do some fine-tuning to get things just to your liking.

A Step-by-Step Guide to Sky Replacement Using Photoshop

Now click and drag in the sky and watch the selection grow until it covers your entire sky.

sky-replacement-using-photoshop

Use the Selection tool to create a selection around the sky in your original image.

This selection isn’t going to be perfect, but it’s a good place to start. You can refine things once you create your layer mask. As long as you have most of the sky selected, you’ll be good to go. You can also use the Magic Wand tool to select portions of the sky, and hold [shift] to keep adding new parts to the selection. This works well if you have clouds or other elements besides just the color blue in your sky.

With the sky selected, click the Add Layer Mask button at the bottom of the Layers panel.

Image: Click this button at the bottom of the Layers panel to create a Layer Mask. This lets you sho...

Click this button at the bottom of the Layers panel to create a Layer Mask. This lets you show and hide different parts of a layer.

The result might surprise you – everything in your picture is now gone except for the sky! (If you still see the original image, remember to click the eye to the left of the Background layer. This will make it invisible, but not remove it from Photoshop.)

sky-replacement-using-photoshop

The initial layer mask shows the sky, which is not exactly what you want for this operation. It’s a good starting point though.

Removing everything but the sky is the opposite of what you want to do! The fix for this is simple: invert your layer mask. Select your new layer mask by clicking on the black-and-white thumbnail in the duplicated background layer.

A Step-by-Step Guide to Sky Replacement Using Photoshop

Now invert the mask by pressing Control-I (Command-I on a Mac) or choosing Image -> Adjustments -> Invert from the menus at the top of your screen. Now we’re really making some progress since the sky is gone but the foreground remains intact.

sky-replacement-using-photoshop

Invert the layer mask to show only the foreground. With the sky out of the way you can now insert a new sky into the background.

If clouds, birds, or other elements of the original sky are still intact, you can remove them by using the Brush tool on your layer mask. (See Step 3 for details on how to do this.)

Step 2: Insert a better sky

There are a couple of ways to do this next step, and I’m sure you will probably develop your own workflow over time. Since this is just a tutorial to get you started though, it should work for most basic sky replacement.

Choose the File menu and then select Place Embedded. Navigate to the folder on your computer with the image you want and double-click on it. This loads the replacement sky picture into your current Photoshop document. You can then tweak the results to get just the right image you want. The image will load on top of the previous image, and you’ll see it at the top of your Layers panel.

Image: When you place a new image into your Photoshop document it will appear at the top of the list...

When you place a new image into your Photoshop document it will appear at the top of the list of layers, which means it’s the only thing you will see in the main image editing screen.

Photoshop layers work like a stack: whatever is on top is, literally, whatever you see on top of your picture. If you want something to appear underneath something else, just click and drag the layers to your liking. In fact, that’s what you have to do with your replacement sky. Click the layer you just inserted and drag it below the duplicated background layer.

Image: Click and drag the sky replacement layer so it’s beneath the copy of your background.

Click and drag the sky replacement layer so it’s beneath the copy of your background.

Now look at your sky picture! Just like magic, the original sky has gone and the new sky shows up in its place.

A Step-by-Step Guide to Sky Replacement Using Photoshop

Step 3: Clean things up

At this point, there are two common issues that generally need fixing. One is that the foreground has some errors that need correcting, like trees or other objects that are cut off or otherwise not showing up properly. The other is that the replacement sky doesn’t quite fit the empty space.

You can harness the power of Layer Masks to fix the first issue. Tap the Z key to switch to the Zoom tool, and click on your picture a few times to zoom in for a close-up view. Hold the space bar to switch to the Hand tool, and click-and-drag the picture to see the spots that need fixing.

Image: These trees don’t really need fixing, but I want to remove them for a cleaner horizon.

These trees don’t really need fixing, but I want to remove them for a cleaner horizon.

Make sure you select your Layer Mask and tap the B key to switch to the Brush tool. Right-click to adjust the size of your brush and other parameters like hardness and shape.

Image: Using the brush tool on the Layer Mask will show or hide specific parts of the layer.

Using the brush tool on the Layer Mask will show or hide specific parts of the layer.

Now click on the parts of the foreground you want to either remove from the picture or add to the picture. (Press the X key to switch between remove and add mode.) What you’re actually doing is painting white or black on the layer mask: everywhere you paint white is shown, and everywhere you paint black is hidden. You don’t actually see the white or black colors, just the results of painting them onto the image.

Image: A few clicks on the Adjustment Layer and the trees have gone!

A few clicks on the Adjustment Layer and the trees have gone!

If you find that your sky doesn’t quite fill the empty space, you can solve that by just adjusting the size of the sky layer. Click the top layer, the one with the foreground, and adjust the opacity to 30%. That way you can see the background layer, the one with the sky, along with the foreground layer.

Image: Set the opacity of the duplicate background layer to 30%.

Set the opacity of the duplicate background layer to 30%.

The result looks like some kind of weird double-exposure error, but it will look fine once you finish the operation.

Image: You can now see the replacement sky and the foreground. This will help you adjust the replace...

You can now see the replacement sky and the foreground. This will help you adjust the replacement sky size and position to your liking.

Select the layer with the replacement sky and choose Edit -> Free Transform, or press Control-T (Command-T on a Mac). Then use the handles at the corner of the sky layer to enlarge it until it fills the empty space.

sky-replacement-using-photoshop

After pressing Transform, click and drag on the squares in the corner of the layer to change its size. Click and drag in the middle of it to change its position.

After you have resized the sky layer, press the [return] key to lock in the transformation. Then go back to the foreground layer and increase its opacity to 100%. This same process is also a great way to adjust the sky in the background even if there isn’t necessarily anything wrong with it. One example of this is if you want to adjust the sky to emphasize a certain portion where the clouds happen to be more interesting.

sky-replacement-using-photoshop

The same image as before, but with the sky zoomed in (i.e. Transformed) to create a more interesting picture.

Once you get the hang of this process, it’s pretty simple. You can do a lot of custom work simply by editing the layer mask you create in the first step. You can also do this just for fun, like the picture below where I replaced the blue sky behind this building with a giant squirrel. If you have kids, or if you just want to have some fun experimenting on your own, this is a great way to explore some of the capabilities of Photoshop.

sky-replacement-using-photoshop

Attack of the Giant Mutant Killer Squirrels!

Once you try sky replacement using photoshop on your own, I’d love to see some examples of your work. Leave the results in the comments below!

 

sky-replacement-using-photoshop

The post A Step-by-Step Guide to Sky Replacement Using Photoshop appeared first on Digital Photography School. It was authored by Simon Ringsmuth.


Digital Photography School

 
Comments Off on A Step-by-Step Guide to Sky Replacement Using Photoshop

Posted in Photography

 

Tags: , , , ,

Comments are closed.