Tag Archives: adobe photoshop cc

Replacing skies with Photoshop

How I Did It

Pictures copyright 2012 Russel Ray Photos

I think one of the most common tasks that people use photo editing software for is to replace skies. I think that because there seem to be more tutorials for that task than any other. Unfortunately, too many people doing tutorials have no clue about how to do a tutorial, in my considered humble opinion. I think they learned something new and decided to do a tutorial, even though they have never done a tutorial before in their lives.

I have been exploring replacing skies for almost twenty months now, and I have finally developed a workflow that is easy and precise. However, I’m going to keep it to myself because I don’t want anyone else to know….

Just kidding.

One of the reasons why sky replacements either (1) look bad, (2) look fake, (3) don’t look good, (4) look sloppy, or (5) look really atrocious is because people don’t understand perspective relationships. The picture of the sky needs to match the perspective of the photograph.

One guy’s tutorial told us to go out and take a few hundred pictures of skies so that we would always have one to match any perspective. That’s not necessary if you understand how to use the transform controls in Photoshop, which I will show you. So here we’re going to not only replace the sky but make the sky match the perspective of the photograph.

I’m using Photoshop CC, but the basic theory here will work in any program that uses layers and masks.

Here are the two pictures were are going to use:

Inspected house

Pictures copyright 2012 Russel Ray Photos

Clouds

Pictures copyright 2012 Russel Ray Photos

Right click on each picture, select Save picture as, and save it to your computer. Make sure you know where you’re saving it because we’re going to need to find it and open it in Photoshop.

Now open Photoshop and open both pictures.

Once you have both pictures open, look at your rulers (if your rulers aren’t showing, click on View ► Rulers) and you’ll notice that our house picture is 600 pixels wide while our clouds picture is 1200 pixels wide, a 2:1 ratio. That’s the ratio I usually use because it allows me to choose the part of the sky that looks best in the picture; you’ll understand as we go along.

First we need to select the sky. Trees and little protuberances on buildings can make it difficult to select all the sky with some methods, but I’m going to show you a great method that makes it very easy to make sure those trees and protuberances make it into the picture since they make the picture itself look more realistic.

With your house picture in the window, click on the Quick Selection Tool:

Quick Selection Tool

Quick Selection Tool

Pictures copyright 2012 Russel Ray Photos

With the Quick Selection Tool selected, look at your option bar and click on the Brush Picker, inside the red square in the graphic below. A pop-up window will then show you the options for the Brush Picker, and we want a size of about 30 px (red arrow) for this exercise, and a hardness (yellow arrow) of 100%. The other defaults can stay as they are.

Brush Picker

Pictures copyright 2012 Russel Ray Photos

Now select your sky. You don’t have to be real exact at this point because we’ll take care of that in a future step. Right now, though, make sure you select all of the sky. If there is some sky showing through the tree, go ahead and selected the tree, too. As you select, you’ll see the infamous marching ants highlighting the borders of your selection.

Here is my house picture after selecting the sky.

House with sky selected

Pictures copyright 2012 Russel Ray Photos

Now make sure that your Foreground and Background colors are set at their defaults. Just type d and the colors will change to their defaults:

Foreground and background defaults

Pictures copyright 2012 Russel Ray Photos

Making sure that your Quick Selection Tool is still selected, look at your options bar again and click on Refine Edge:

Refine Edge

Pictures copyright 2012 Russel Ray Photos

That will bring up a new window with lots of options, and the part of your picture that IS NOT selected will turn black.

Refine Edge options

Refine Edge options

Pictures copyright 2012 Russel Ray Photos

Black in Photoshop means that it is hidden from whatever we doing. If it’s showing, that means that whatever we do will affect that section of the picture. So if we were to replace the sky now, we would also replace the pine trees since they are showing, i.e., they are not covered by black. We want those trees to be in black so that they do not get replaced when we replace the sky.

There are many functions in the Refine Edge window to help you with your task, so it really doesn’t matter how complicated the picture might be. You just have to find the right combination that works, and that is where the History panel can come in extremely handy. I’ll do a tutorial in the future on the power of the History panel.

First make sure that your settings are like mine, and below the graphic I’ll explain what these settings are doing.

Refine Edge options

Pictures copyright 2012 Russel Ray Photos

Starting at the top with View, I almost always use On Black so that I don’t get distracted from my task. I like to black out whatever I’m not working on.

Next, under Edge Detection, make sure the box is checked next to Smart Radius and, for these pine trees with their skinny pine needles, set the Radius to 0.5 px.

Adjust Edge is where you can really help Photoshop work with really complicated pictures, like a blonde-haired girl with her head on her blonde dog. Photoshop can easily separate blonde from blonde by using those controls.

We’re lucky with our picture because there’s good contrast between the green pine trees and the gray clouds, so change your settings to match mine. Smooth and Feather help Photoshop create a smooth contrast between the trees and the clouds, and we’ll want that same smooth contrast in our new picture.

Finding the right settings for Smooth and Feather could take you a couple of weeks—another area where the History panel can come in so handy—so I’m going to show you an ever better way to accomplish this task quickly and easily if you don’t need absolute exactness and preciseness, which we don’t when we’re posting a picture 600 pixels wide to the Internet.

Just to the left of Edge Detection, you see a brush. Click and hold on that brush until a flyout window appears, and then choose Refine Radius Tool so that there is a little black box to the left, indicating that it is selected.

Refine Radius Tool

Pictures copyright 2012 Russel Ray Photos

Set the brush size of your Refine Radius Tool brush to about 15 px:

Refine Radius Tool brush size

Pictures copyright 2012 Russel Ray Photos

Now simply click and drag your mouse cursor over your trees; it’s called painting. Try to stay as much on the trees as possible so that Photoshop doesn’t think you’re wanting to paint out the clouds. Release the mouse button after each tree and you’ll see that Photoshop magically converts the green trees to black:

Painting out the trees

Painting out the trees

replacing skies 13

Painting out the trees

Painting out the trees

Pictures copyright 2012 Russel Ray Photos

Once you’re done painting the trees, simply click OK in the Refine Edge window:

Click on OK in the Refine Edge window

Pictures copyright 2012 Russel Ray Photos

You should be back at your original picture with marching ants that look something like this:

Sky selected but not the trees

Pictures copyright 2012 Russel Ray Photos

Now let’s go get the new sky and insert it into our picture.

Click on the tab that holds your cloud picture and select the whole picture: Click on SelectAll or use the keyboard shortcut, Ctrl A. That should put a marching ants border around the cloud picture:

Selected clouds

Pictures copyright 2012 Russel Ray Photos

Copy the picture with either the keyboard shortcut Ctrl C or the menus, EditCopy.

Go to the tab that holds your house picture. Now we are going to insert the copied clouds (they are in memory) to your picture, specifically the area that is bordered by the marching ants. This is a special type of insert, though. Click on EditPaste SpecialPaste Into. This tells Photoshop to paste whatever is in memory (our clouds) into the area bordered by the marching ants. Notice that the keyboard shortcut is Ctrl Shift Alt V. (I love how keyboard shortcuts can be long now, and they still are faster than clicking on menus.)

Here is what I got when I inserted the clouds:

Sky replaced

Pictures copyright 2012 Russel Ray Photos

Are you as unhappy with that as I am? Not to worry. We’re not finished, but we don’t have far to go. This is where understanding perspective comes in handy.

First of all, that cloud is way too big for the picture. It’s obvious that the sky has been replaced.

Second, if you look at daylight landscape pictures, you’ll notice that the horizon is always lighter than what is directly above you. That is caused by perspective. Things that are closer to you tend to be brighter with more contrast.

We need to resolve both of those problems here, and it’s very easy to do. It’s even easier if you make sure that your cloud picture is bigger than the picture with the sky to be replaced, and having clouds in the picture makes it even easier to create something that looks realistic.

So, after inserting the clouds, we want to move them around. Click on your Move Tool (red arrow) and then click on Show Transform Controls (yellow arrow).

Move Tool and Show Transform Controls

Pictures copyright 2012 Russel Ray Photos

You probably won’t be able to see the transform controls because the cloud picture is twice as large as the house picture. Hold the Control key down and hit the 0 (zero) key on the keypad. Don’t try to use the numeric keys at the top of your keyboard. If your keyboard doesn’t have a keypad at the right, the keypad is probably in the center of your keyboard and shows as blue figures, meaning you have to access them with a function or option key.  Or you can use the menus: click on ViewFit on screen.

That should give you something looking like this:

Screen shot showing transform controls

Pictures copyright 2012 Russel Ray Photos

Just for fun, click on Show Transform Controls again and you’ll see that square disappear. We need it, though, so make sure it’s showing.

Now simply click, hold, and drag those square boundary markers to resize your cloud picture. You can position the clouds anywhere you think looks nice. Here’s my final picture:

Final picture

Pictures copyright 2012 Russel Ray Photos

If you look closely at that middle pine tree, the tallest one, you can see some glowing in the branches. There are two ways to get rid of the glow. The first is by learning how to use all of those controls in that Refine Edge window, specifically the Smart Radius, Smooth, and Feather controls. You can spend hours working on just one picture.

An easier way I’ve found is to always use a picture that has a good supply of clouds throughout the picture so that you can move those clouds around and put them behind any problem areas. It’s faster by at least a few dozen hours!

There is one other way to resolve that problem but I haven’t found a good work flow for it, yet. When I do, I’ll let y’all know.

Pictures copyright 2012 Russel Ray Photos

I'm Zoey the Cool Cat, and I approve this post

Need a unique gift?
Consider Photographic Art!photographic art logoVisit Russel Ray Photos.

►►►►◄◄◄◄

Looking for real estate services in San Diego County?
I can highly recommend James Frimmer, Realtor, CDPE
CA BRE #0145857201 HomeSmartDiamondSmall copy 2

02 HomeSmartRWnameOnly2 copy

►►►►◄◄◄◄

If you’re looking for a home inspector,
I recommend Russel Ray — that’s me!Real Estate Solutions

Pictures copyright 2012 Russel Ray Photos

Wires 08

Wires, wires everywhere! (And how to remove them easily in Photoshop.)

How I Did It

Pictures copyright 2012 Russel Ray Photos

I didn’t have to search very far to find a picture with lots of wires in it to illustrate how easy it is to remove them. Here’s the picture:

Wires for everyone!

Pictures copyright 2012 Russel Ray Photos

Right click on that picture, download it to your computer, open it in Photoshop, and follow along.

With the file open in Photoshop, first let’s rotate it 90° clockwise. My purpose in doing this is because, when you are using a mouse, it’s easier to move your mouse horizontally back and forth than it is vertically up and down.

Click on Image ► Image Rotation ► 90° CW.

Wires 01

Pictures copyright 2012 Russel Ray Photos

I use the rotate clockwise (90° CW) and rotate counterclockwise (90° CCW) command regularly, so I have assigned keyboard shortcuts to them. That’s the CTRL + , and CTRL + . you see next to the commands on the menu.

You should have a rotated image that looks like this:

Wires 02

Pictures copyright 2012 Russel Ray Photos

All of the wires are relevant except for the top two, so we’re going to remove those.

First we need to magnify the area that we are going to work on. Click on your magnifying glass….

Wires 04

Pictures copyright 2012 Russel Ray Photos

Now click three times at the top edge of the picture where the topmost wire is. That should give you this:

Wires 05

Pictures copyright 2012 Russel Ray Photos

We want to use the Spot Healing Brush Tool:

Wires 03

Pictures copyright 2012 Russel Ray Photos

If you’re thinking, “But wires are not spots!”, well, don’t think that! Wires are just long spots, very long spots.

You want your Spot Healing Brush Tool to be slightly larger than the wire you’re going to remove. When you work at these higher magnifications, you’ll see a lot of fuzziness and jagged edges. That fuzziness and jaggity (jaggity?) is actually part of the wire, so make sure that the size of your brush covers all of the wire. I found that a brush that is 10 pixels worked well on these wires. Go to the options bar and set your brush size to 10 px:

Wires 06

Pictures copyright 2012 Russel Ray Photos

The other values should be default values, but make sure your Hardness is set to 100.

Now simply click once at the top end of the topmost wire, move your cursor to any other spot on that wire, hold the SHIFT key down, and click again. The wire magically disappears:

Wires 07

Pictures copyright 2012 Russel Ray Photos

You’ll get the best result if you center the wire within your 10 px brush.

Keep doing that all along the wire, and soon you will have no wires!

This works most quickly on straight wires, but if you have a drooping wire, simply use shorter distances between your first click and your SHIFT click.

Here’s my finished picture:

Wires 08

Pictures copyright 2012 Russel Ray Photos

Much better. You can go further and remove all the wires that are going to the pole that is out of the picture. If you do that, you’ll discover the limitations to Photoshop’s Content-Aware feature. Once you have the other wires removed, you’ll have some cleanup work to do. Not so much that the chore becomes tedious, though. If you know how to use the Clone tool, you’ll have the cleanup work done in no time.

More complicated backgrounds sometimes work in your favor and sometimes work against you. I have found it best that when you have more complicated backgrounds, simply use shorter distances between your Click and your SHIFT Click.

There you go! I figure if the power company won’t get rid of these wires (by putting them underground), we’ll get rid of them ourselves!

Pictures copyright 2012 Russel Ray Photos

I'm Zoey the Cool Cat, and I approve this post

Looking for real estate services in San Diego County?
I can highly recommend James Frimmer, Realtor, CDPE
CA BRE #0145857201 HomeSmartDiamondSmall copy 2

02 HomeSmartRWnameOnly2 copy

If you’re looking for a home inspector,
I recommend Russel Ray — that’s me!Real Estate Solutions

Pictures copyright 2012 Russel Ray Photos

Female jogger in tennis shoes

Maybe she’s running a half marathon?

How I Did It

Pictures copyright 2012 Russel Ray Photos

Sometimes when I am out and about I’ll take a picture knowing that for most photographers it would be a throwaway. For me, it’s just a challenge for Photoshop.

Recently I was at the historic Santa Fe Depot in downtown San Diego taking train pictures and videos. It was dusk but I refused to go home because I was waiting on the northbound BNSF freight train that leaves San Diego once the last Amtrak southbound from Los Angeles arrives. That’s usually around 8:00 p.m. During the summer, it’s no problem because daylight lasts until 9:30 p.m. During the winter, different story.

I got my BNSF freight train video but it needs some editing work in Corel VideoStudio Pro X6. Either that or a return trip to the Depot during the summer now that I know exactly what time that northbound freight goes through.

As I was waiting on the freight train, though, I was snapping pictures here, there, and everywhere, of anything and everything. Following is a woman out on her evening jog. I loved her pink shoes.

Female jogger in tennis shoes

Pictures copyright 2012 Russel Ray Photos

After taking a picture of her, I saw a plane fly through. That interested me, so I attempted to get a picture with a plane in it. It took a little while because you never know when a plane is going to arrive. I succeeded, though:

Plane landing on buildings

Pictures copyright 2012 Russel Ray Photos

Now all I would need is a car, and I would have “Planes, Trains & Automobiles”! (Smile if you know what I’m referring to.)

The original pictures are very dark, so first I brightened them in Photoshop.

After looking at both pictures and seeing how similar they were, I wondered if I could merge them to get the person and plane both in the same picture.

I thought merging would be easier than lifting the plane out of its picture and placing it in the other picture.

Well, look what happened when I had Photoshop merge the two pictures:

Half runner

Pictures copyright 2012 Russel Ray Photos

I wasn’t really surprised to see the plane disappear since it wasn’t in both pictures, but I definitely was surprised to see what else disappeared. Maybe she’s now running the half marathon?

Pictures copyright 2012 Russel Ray Photos

I'm Zoey the Cool Cat, and I approve this post

Looking for real estate services in San Diego County?
I can highly recommend James Frimmer, Realtor, CDPE
CA BRE #0145857201 HomeSmartDiamondSmall copy 2

02 HomeSmartRWnameOnly2 copy

If you’re looking for a home inspector,
I recommend Russel Ray — that’s me!Real Estate Solutions

Pictures copyright 2012 Russel Ray Photos

Black mangabey at the San Diego Zoo

You want WHAT for Christmas?

Picture of the Moment

Pictures copyright 2012 Russel Ray Photos

Ha! Fat chance!

Black mangabey at the San Diego Zoo

Pictures copyright 2012 Russel Ray Photos

That picture was in my “see what you can do with this in Photoshop some time in the future” folder. It’s a folder with so-called throwaway pictures. For comparison purposes, following is the original. Just too good to throw away without trying to salvage it.

Black mangabey at the San Diego Zoo

Pictures copyright 2012 Russel Ray Photos

I wasn’t sure if I’d be able to salvage that picture, but I think I did. Took all of five minutes in Photoshop CC using masks and layers. Pretty neat.

Pictures copyright 2012 Russel Ray Photos

I'm Zoey the Cool Cat, and I approve this post

Looking for real estate services in San Diego County?
I can highly recommend
James Frimmer, Realtor
Century 21 Award, BRE #01458572

If you’re looking for a home inspector,
I recommend Russel Ray — that’s me!Real Estate Solutions

Pictures copyright 2012 Russel Ray Photos