Skip to content

Photography Tip: Focus Stacking

Focus Stacking

During this quarantine time, I’ve explored my hobbies a bit deeper. With photography, that means learning different techniques and trying them out. Today, we’re going to look at focus stacking – a technique which can give crisp images without sacrificing aperture. Sometimes, when shooting with a narrow aperture, like f/22, chromatic aberration can affect an image. Also, if you want to normalize bright lights and get an evenly lit image without shooting with neutral density filters, focus stacking can help. The idea is that you bracket your focusing to take a series of images with different planes of focus, then stack them at the end to create a crisp image. Tip: check your camera to see if you can set this up automatically!

Here’s an example stacked image, consisting of 15 individual shots, I took of some books:

Focus stack of books
Shot at f/5.6, 30mm, ISO 200, 1sec, 15 shots stacked

Without stacking, here’s what the image would look like using the same settings (f/5.6, 30mm, ISO 200, 1sec exposure time):

Near focus example
Shot at f/5.6, 30mm, ISO 200, 1sec

If I tried using a large depth-of-field, such as f/11 or even f/22, here’s what the image would look like:

My goal was to get the entire scene in focus. Seeing as shooting a single frame wouldn’t do the trick here, I used focus stacking. Here are the steps.

Step 1: Load Files into a Stack

I am currently using Adobe Photoshop CS6 to stack my images. The first step is to load the images into a stack by going to File > Scripts > Load Files into Stack.

Start by loading files into stack
1st: Load files into stack

Step 2: Align Images

Next, align the source images by checking the “Attempt to Automatically Align Source Images” box, then click “OK”.

Next, choose files to stack and check the "Attempt to Automatically Align Source Images" box
2nd: Choose files to stack and check the “Attempt to Automatically Align Source Images” box

Step 3: Check the Layers

The next step is to wait for the layers to load and align. On the right, you can see the images opening as layers. Depending on the number of images you’re loading, this may take a few minutes!

Wait for layers to load and align
3rd: Wait for layers to load and align

Steps 4 and 5: Blend the Layers

Now it’s time to blend the layers. To do this, go to Edit > Auto-Blend Layers.

Highlight all layers, then click on Edit > Auto-Blend Layers
4th: Highlight all layers, then click on Edit > Auto-Blend Layers

When the “Auto-Blend Layers” dialog box pops up, select “Stack Images” and check “Seamless Tones and Colors”, then click “OK”.

Select "Stack Images" and check the "Seamless Tones and Colors" box
5th: Select “Stack Images” and check the “Seamless Tones and Colors” box

Step 6: Flatten and Crop

Finally, clean up the image by flattening the image (Layer > Flatten Image), then crop the image as you see fit.

Flatten and crop image
6th: Flatten and crop image

Here’s the final image (I shot these photos using a 30mm f/3.5 macro lens):

Focus stack of a journal
Shot at f/5.6, 30mm, ISO 200, 1/4sec, 10 shots stacked

Quality Control

When using the focus bracketing feature on my camera, I always use a tripod. But even with a tripod, the more images to be stacked, the more likely there will be some noise that’s introduced. Looking at the following image, you might notice the fuzziness around all 4 edges of the photo:

Example of a pre-cropped focus stack showing fuzzy edges
Pre-cropped focus stack – notice the soft and fuzzy edges

To ensure that the final image is cleaner, I had to make a slightly tighter crop:

Cropped focus stacking example
Shot at f/5.6, 30mm, ISO 200, 1sec, 20 shots stacked

Examples

Here is a stacked image of the blinds in my house. Again, I shot this with my macro lens. Look at how clean the final image looks!

Example of a focus stack
Shot at f/5, 30mm, ISO 5000, 1/1600sec, +1.0EV, 11 shots stacked

I have a Hot Wheels car with Toad driving it, and decided to create a stacked image of that, just for fun:

Focus stack image of Toad Hot Wheels
Shot at f/3.5, 30mm, ISO 5000, 1/25sec, 11 shots stacked

Final Thoughts

Focus stacking isn’t just for macro photography. It can be used in landscape and portrait photography as well. Although some tweaks need to be made, the concept is the same. I’m still getting the hang of it, but I hope this guide helps!

Join in on the conversation!