The Ultimate Photoshop Resource

How to do Focus Stacking in Photoshop tutorial


This happens a lot with macro photography and close up, where you don’t even have to be at a wide aperture for a limited depth of field. Another situation I can think of is a group of people in a row and you are shooting long, you cannot get everyone in focus in a single shot. Also product photography this is very commonly done.

This tutorial shows you how to do focus stacking inside the Photoshop.

 

Step 1 capture multiple photos.

When you shoot close up, the focal plane isn’t wide enough to capture the entire image as sharp. So, we shoot the subject multiple times, shifting the focus on each, until we have captured the entire subject. Something this may take only 2 photographs, sometime 7 or more. In this case, we were able to get most of it in 3. (At least good enough to do this quick, simple tutorial).

First photo has focus in the center and everything around is blurred.

Second and 3rd photos have the focus pushed back further.

Third photo has the focus all the way back.

Step 2: Align the images

Load the 3 images into a layer stack. Use Scripts>Load images as stack, or manually drag them all in.

Notice the photos are not properly aligned

We need to align the photos in Photoshop, and Photoshop can automatically do that for us.

Select all three layers in the layers panel. (Shift select)

Go to Edit>Auto-Align Layers

Choose Auto.

Click OK.

Wait couple of seconds for the output to be generated.

Now all the layers are aligned.

Step 3: Blending the layers in Photoshop

Photoshop can blend all these layers together into 1 smooth photo.

Go to Edit>Auto-Blend Layers

Select Stack Images.

Click OK.

Wait couple of seconds until layers are blended.

Now layers are blended together.

You can check each layer and see the masking that photoshop has done.

If you want the whole photo sharp, you may need to take more pictures. You will get the hang of it after you have done a couple.

 

Step 4: Finishing touches

Let’s clean up the image.

Grab the Crop Tool. 

Set the crop area by dragging on the image with the crop tool.

Hit Enter when you’re finished with setting the crop area.

Step 5

Put the layers into one smart object.

Select all layers

Go to Filter>Convert for Smart Filters

Click OK.

Now you have one smart object.

 

Step 6: Camera Raw adjustments

 

Go to Filter>Camera Raw Filter

Pull down Highlights, Blacks and Vibrance a bit.

Increase Shadows, Contrast, Whites and Clarity.

Select Effects.

Pull down Amount under Post Crop Vignetting to add a nice vignette (darken) around the edges.

Click OK.

And here’s the final image.

 

Thanks for keeping up with my tutorials. Subscribe to our newsletter and get new tutorials every single week.

Add a comment, let’s get discussion going. Let me know what you would like to learn and what you like and what you don’t like and until next time,

 

I will see you, at the cafe.

Colin

 

 

 


PS Don’t forget to follow us on Social Media for more tips.. (I've been posting some fun Instagram and Facebook Stories lately)
You can get my free Layer Blending modes ebook along with dozens of exclusive Photoshop Goodies here photoshop goodies for free

12 responses to “How to do Focus Stacking in Photoshop tutorial”

  1. I have been trying for months to conquer this issue, Auto-aligning & then blending were’nt a problem, but result was abject failure! You’ve unlocked the next steps for me – Smart Filter & Camera Raw Feature – massive success!
    Thanks guys, this and your weekly tutorials have increased by skills incredibly!

  2. At the end of step 3, you have three layers, at the start of step 4 there’s only one, and then in step 5, there’s three again. Should step 5 come before step 4? Or am I missing something and, if so, what is it?

  3. Yaffe, the screen capture in step 4 is just showing the “Crop Preview” hence the one layer showing in Layer Panel

  4. Thanks for posting this. I’ve been having problems with this process. After blending the images, I always get a weird x-ray image instead of the composite image I’m expecting. Any idea, what I am doing wrong?

  5. When I stack the images, I cannot edit the resulting masks? I want to granularly edit the results and if I select a mask, I cannot paint anything out or in?? Why is this?

  6. This is the best tutorial I have seen – Thank You! I have one question about the final file size: the Smart Object is made up of all of the layers and unless I missing something, that can be a BIG file. What is the best way to reduce the file size? Thank you, Todd

    • Sure its bigger, but thats an issue these days. However if you save as a Tif with LZW compression it will be smaller

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.


Access The Photoshop Vault

Unlock dozens of valuable Photoshop resources for FREE

The Ultimate

Photoshop Resource