Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member

Replacing the sky in an image

From: Photoshop CS5 Essential Training

Video: Replacing the sky in an image

I am frequently asked by people learning how to use Photoshop, how do you replace the sky in an image? I tend to get this question a lot from real estate agents. Hmm, I wonder why? So, here we have this image here and we have got this blown out sky at the top. We want to replace that with a better-looking sky. I have got a better-looking sky right under here under the top layer. Let's go ahead and turn that top layer off and you will see there's the sky that we want to use. What we need to do is figure out a way to hide the sky in this top layer but maintain all that tree detail there on the horizon line or the tree line there.

Replacing the sky in an image

I am frequently asked by people learning how to use Photoshop, how do you replace the sky in an image? I tend to get this question a lot from real estate agents. Hmm, I wonder why? So, here we have this image here and we have got this blown out sky at the top. We want to replace that with a better-looking sky. I have got a better-looking sky right under here under the top layer. Let's go ahead and turn that top layer off and you will see there's the sky that we want to use. What we need to do is figure out a way to hide the sky in this top layer but maintain all that tree detail there on the horizon line or the tree line there.

But here's the thing. I don't want to have to paint out a mask. I don't want to have to sit there and paint every little leaf detail. I don't want to have to use complex selection tools. I want Photoshop to do the work for me. So, how are we going to go about this? Well, it turns out, once again, Photoshop has a secret layer mask built into every single layer. We just need to tap into it. Before we get too much further though, what we want to do is duplicate this Original Sky layer and have it as a backup. You will see why later on. A quick, easy way to duplicate a layer is you use the keyboard shortcut Command+J or Ctrl+J, and that pops it up onto its own duplicate layer.

We are going to go ahead and turn off the top layer and target that middle, Original Sky layer to start working on it. To reveal or uncover that secret layer mask, we just double-click on the layer thumbnail, the layer we want to edit, and this brings up the Layer Style dialog box where we can play with the Blend If sliders. Now, the default for the Blend If sliders is blend if the pixels are gray, a range of dark to white. What we want to do is change that slider from Gray by clicking on it and choosing Blue, because the sky is primarily blue.

That black-to-white slider turns into a black-to-blue slider. And what I am going to do is move this slider to the right and start dragging it left and you will see that all the blue pixels on that layer instantly start disappearing. I am going to go ahead and just slide it over to about 220 here and click OK. I am going to turn off the bottom layer so you can see what happened here. We literally punched a hole on the Original Sky layer, wherever there were light blue pixels. Now, you can see that it did create a problem here, where there were some blue pixels in the water, and those went transparent. And we will fix that in a moment.

Let's go back and double-click on the Original Sky layer thumbnail again and you will see that these sliders are nondestructive. You can go back and fine-tune them and tweak them further anytime you want. I am going to keep dragging that to the left a little bit to get rid of some of the extra blue halo. And then, if I want to create a soft transition between masked and unmasked, I am going to hold down the Option or Alt key and split those sliders, so I get a nice blend between the mask there. I don't want such a hard edge. So, I am going to split it between say 195 and 215 for this particular image. And I am getting some pretty good results. Let's go ahead and click OK. We will turn on the bottom layer again, and you can see there is my new composite.

But here's the problem. I need to fix the missing pixels in the water. I don't want to see the sky of the New Sky layer or the image underneath it through that hole. So, to resolve that, we are going to turn on that Original backup copy we made in the very beginning. We duplicated that layer, go ahead and turn that on. Well, now it looks like we have gone backwards and undone our work. All we need to do is punch a hole through this top layer to reveal what we fixed underneath it. So, I don't need to get all that complicated. You can see the water has already been fixed because I have just duplicated the original layer and put it on top of everything.

What we want to do is make a selection of the part that we corrected with that Blend If slider. So, we will go ahead and get our Marquee tool by pressing the letter M. I'm going to go ahead and drag out a selection of the area that we fixed here. And at the bottom of the Layers panel is the Add Layer Mask button. If you start with a selection, that selection will get converted into the layer mask for that particular layer. Let's go ahead and do a Fit to Window, Command+0 or Ctrl+0. And you can see I have got the opposite of what I wanted. It's revealing the old sky and showing the bad water. What I want to do is get the opposite of that, so I just want to simply invert that layer mask.

So, I have got the layer mask selected. The Invert command is Command+I or Ctrl+I. And I have just reversed that layer mask and so now I am seeing the good sky at the very top here. I have fixed the water issue and I have got a much better looking image, all by using a traditional layer mask in conjunction with that secret hidden layer mask built into every single layer. And again, to get there you simply double-click on the layer thumbnail to bring up the Blend If sliders. It's your secret weapon when doing some pretty interesting compositing effects with Photoshop.

Show transcript

This video is part of

Image for Photoshop CS5 Essential Training
Photoshop CS5 Essential Training

154 video lessons · 94790 viewers

Michael Ninness
Author

 
Expand all | Collapse all
  1. 6m 10s
    1. Welcome
      1m 47s
    2. What is Photoshop?
      2m 49s
    3. Using the exercise files
      1m 34s
  2. 28m 29s
    1. What is Adobe Bridge?
      1m 54s
    2. Getting photos from a camera
      3m 39s
    3. A tour of the different workspaces in Adobe Bridge
      4m 58s
    4. Customizing how thumbnails are displayed
      3m 35s
    5. Changing obscure camera file names with the Batch Rename command
      2m 36s
    6. Adding basic metadata to every image with metadata templates
      3m 36s
    7. Creating and applying keywords to images
      4m 6s
    8. Viewing images in Full Screen Preview mode
      4m 5s
  3. 23m 4s
    1. Using Review mode to filter out rejects
      5m 27s
    2. Protecting the keepers by saving them in collections
      3m 18s
    3. Rating images
      3m 15s
    4. Using the Filter panel to view different subsets
      4m 43s
    5. Viewing final choices in a slideshow
      2m 12s
    6. Organizing groups of images into stacks
      4m 9s
  4. 30m 50s
    1. Raw vs. JPEG files
      5m 13s
    2. Why you should start in Camera Raw instead of Photoshop
      5m 9s
    3. A tour of the Camera Raw user interface
      6m 44s
    4. Previewing before and after adjustments
      4m 2s
    5. Toggling onscreen Shadow/Highlight clipping warnings
      2m 37s
    6. Choosing output settings
      2m 45s
    7. Saving a copy without going to Photoshop
      4m 20s
  5. 41m 34s
    1. Eliminating red-eye with the Red Eye Removal tool
      1m 13s
    2. Improving composition with the non-destructive Crop tool
      3m 33s
    3. Correcting a rotated horizon line with the Straighten tool
      3m 5s
    4. Fixing color casts with the White Balance tool
      2m 13s
    5. Fixing blown-out highlights with Recovery
      2m 36s
    6. Revealing hidden shadow detail with Fill Light
      1m 47s
    7. Reducing distracting color noise with Noise Reduction
      5m 37s
    8. Removing color fringes with Chromatic Aberration
      2m 36s
    9. Sharpening the details
      8m 59s
    10. End to end: Taking a so-so photo and making it great
      9m 55s
  6. 39m 5s
    1. Fixing blown-out skies with the Graduated Filter tool
      4m 34s
    2. Retouching blemishes with the Spot Removal tool
      5m 41s
    3. Making local adjustments with the Adjustments Brush
      4m 28s
    4. Quick portrait retouching technique using Clarity
      4m 33s
    5. Converting to black and white
      3m 36s
    6. Editing images directly with the Targeted Adjustments tool
      4m 18s
    7. Easy sepia and split tone effects
      2m 35s
    8. Adding digital film grain texture effects
      2m 46s
    9. Adding vignettes and border effects
      2m 13s
    10. Saving variations within a single file with Snapshots
      4m 21s
  7. 15m 48s
    1. Copying settings from one file and pasting across another in Adobe Bridge
      3m 7s
    2. Processing multiple files in Camera Raw
      2m 28s
    3. Saving and using a library of Camera Raw presets
      5m 33s
    4. Using Image Processor to batch process multiple files
      4m 40s
  8. 30m 39s
    1. Opening files from Adobe Bridge
      3m 1s
    2. Opening files from Mini Bridge
      3m 28s
    3. Customizing the Mini Bridge panel
      2m 57s
    4. Changing Mini Bridge so it auto-collapses
      1m 20s
    5. The Application frame
      2m 16s
    6. The Application bar
      1m 16s
    7. Switching and saving workspaces
      4m 23s
    8. Panel management
      5m 31s
    9. Switching tools using the keyboard
      3m 18s
    10. Customizing the keyboard shortcuts
      3m 9s
  9. 16m 12s
    1. Tabbed documents
      2m 1s
    2. The Arrange Documents widget
      1m 38s
    3. How to stop Photoshop from tabbing documents
      3m 34s
    4. Pan and zoom
      5m 21s
    5. Cycling through the different screen modes
      3m 38s
  10. 36m 59s
    1. File formats
      13m 6s
    2. What resolution does your image need to be?
      10m 15s
    3. Resize vs. Resample
      9m 40s
    4. How big a print can you make with your image?
      3m 58s
  11. 42m 17s
    1. Crop options
      4m 12s
    2. Hide vs. Delete for the Crop tool
      3m 30s
    3. Bringing back hidden pixels with Reveal All
      1m 34s
    4. Making the canvas bigger with the Crop tool
      6m 1s
    5. Making the canvas bigger by a specific amount with Relative Canvas Size
      1m 39s
    6. Correcting perspective with the Crop tool
      3m 5s
    7. Straightening a crooked image
      50s
    8. Scaling, skewing, and rotating with Free Transform
      4m 12s
    9. Nondestructive transformations with Smart Objects
      4m 2s
    10. Warping images
      3m 40s
    11. Preserving the important elements with Content-Aware Scaling
      9m 32s
  12. 54m 42s
    1. The Background layer
      5m 14s
    2. Using a layer mask instead of deleting pixels
      4m 12s
    3. Loading multiple images into a single Photoshop document as layers
      1m 30s
    4. Naming, hiding, creating, and deleting layers
      4m 18s
    5. Changing the stacking order of layers
      2m 51s
    6. Selecting layers without using the Layers panel
      6m 28s
    7. Transforming layers
      7m 16s
    8. Aligning and distributing layers
      3m 51s
    9. Changing the opacity of layers
      2m 57s
    10. Organizing layers into groups
      2m 55s
    11. Saving variations with layer comps
      5m 3s
    12. When to merge and rasterize layers
      5m 0s
    13. Flatten vs. Save As (a Copy)
      3m 7s
  13. 1h 4m
    1. Using the Marquee and Lasso tools
      7m 23s
    2. Transform selections
      2m 40s
    3. Quick Mask is your friend
      4m 31s
    4. Converting a selection into a layer mask
      6m 33s
    5. Using the Quick Selection tool
      3m 1s
    6. Re-selecting a previous selection
      1m 35s
    7. Improving a selection with Refine Edge
      4m 21s
    8. Touching up a layer mask with the Brush tool
      12m 7s
    9. Changing the opacity, size, and hardness of the painting tools
      2m 59s
    10. Blending images with a gradient layer mask
      4m 53s
    11. Swapping heads in a family portrait
      3m 53s
    12. Combining multiple exposures with the Blend If sliders
      6m 26s
    13. Replacing the sky in an image
      4m 19s
  14. 1h 1m
    1. Introducing adjustment layers
      7m 57s
    2. Starting with a preset
      4m 25s
    3. Improving tonal quality with Levels
      10m 28s
    4. Increasing midtone contrast with Curves
      5m 4s
    5. Removing a color cast with Auto Color
      5m 56s
    6. Changing the color temperature with Photo Filter
      2m 55s
    7. Shifting colors with Hue/Saturation
      9m 0s
    8. Making washed out colors pop with Vibrance
      2m 46s
    9. Converting color to black and white
      5m 49s
    10. Controlling which layers are affected by an Adjustment Layer
      7m 28s
  15. 11m 32s
    1. Shadow/Highlight
      9m 3s
    2. Matching color across multiple images
      2m 29s
  16. 34m 12s
    1. Removing blemishes with the Spot Healing brush
      6m 21s
    2. Quick technique for smoothing skin and pores
      8m 23s
    3. Taming flyaway hair
      4m 47s
    4. Making teeth bright and white
      1m 43s
    5. De-emphasizing wrinkles
      4m 41s
    6. Removing unwanted details with Content Aware Fill
      4m 26s
    7. Body sculpting with Liquify
      3m 51s
  17. 21m 6s
    1. Creating panoramas with Photomerge and Auto-Blend
      7m 20s
    2. Combining multiple frames of an action sequence
      8m 30s
    3. Combining group shots with Auto-Align
      5m 16s
  18. 25m 36s
    1. Overview of filters
      4m 6s
    2. Applying filters nondestructively with Smart Filters
      4m 45s
    3. Giving an image a soft glow with the Gaussian Blur filter
      4m 41s
    4. Adding noise to an image with the Add Noise filter
      3m 34s
    5. Sharpening an image with Unsharp Mask
      4m 12s
    6. Giving an image more texture with the Texturizer
      1m 17s
    7. Applying a filter to multiple layers
      3m 1s
  19. 30m 44s
    1. Cycling through the blending modes
      4m 43s
    2. Three blending modes you must know
      6m 41s
    3. Adding a lens flare effect with Screen
      3m 33s
    4. Making a cast shadow more realistic with Multiply
      4m 33s
    5. Creating a diffused contrast glow effect with Overlay
      6m 2s
    6. Sharpening an image with High Pass and Overlay
      5m 12s
  20. 21m 39s
    1. Character (point) type
      8m 19s
    2. Paragraph (area) type
      4m 42s
    3. Type on a path
      2m 54s
    4. Clipping an image inside type
      2m 24s
    5. Warping type
      3m 20s
  21. 20m 35s
    1. Adding a drop shadow effect
      4m 43s
    2. Adding an outer glow effect
      3m 13s
    3. Adding a border around an image
      2m 53s
    4. Copying layer effects and applying them to other layers
      2m 3s
    5. Saving layer styles and applying them in other documents
      2m 42s
    6. How (and when) to scale layer effects
      5m 1s
  22. 16m 6s
    1. Creating PDF contact sheets
      6m 41s
    2. Exporting web photo galleries
      6m 8s
    3. Saving for the web
      3m 17s
  23. 1m 19s
    1. Goodbye
      1m 19s

Start learning today

Get unlimited access to all courses for just $25/month.

Become a member
Sometimes @lynda teaches me how to use a program and sometimes Lynda.com changes my life forever. @JosefShutter
@lynda lynda.com is an absolute life saver when it comes to learning todays software. Definitely recommend it! #higherlearning @Michael_Caraway
@lynda The best thing online! Your database of courses is great! To the mark and very helpful. Thanks! @ru22more
Got to create something yesterday I never thought I could do. #thanks @lynda @Ngventurella
I really do love @lynda as a learning platform. Never stop learning and developing, it’s probably our greatest gift as a species! @soundslikedavid
@lynda just subscribed to lynda.com all I can say its brilliant join now trust me @ButchSamurai
@lynda is an awesome resource. The membership is priceless if you take advantage of it. @diabetic_techie
One of the best decision I made this year. Buy a 1yr subscription to @lynda @cybercaptive
guys lynda.com (@lynda) is the best. So far I’ve learned Java, principles of OO programming, and now learning about MS project @lucasmitchell
Signed back up to @lynda dot com. I’ve missed it!! Proper geeking out right now! #timetolearn #geek @JayGodbold
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

Please wait... please wait ...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.


Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ .

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

Join now Already a member? Log in

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.


Mark all as unwatched Cancel

Congratulations

You have completed Photoshop CS5 Essential Training.

Return to your organization's learning portal to continue training, or close this page.


OK
Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member ?

Become a member to like this course.

Join today and get unlimited access to the entire library of video courses.

Get started

Already a member?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferences from the dropdown menu.

Continue to classic layout Stay on new layout
Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

Are you sure you want to delete this note?

No

Your file was successfully uploaded.

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.