DIY Photography

Hacking Photography - one Picture at a time

  • News
  • Inspiration
  • Reviews
  • Tutorials
  • DIY
  • Gear
Search

Submit A Story

How to focus stack landscape photos in Photoshop

Feb 11, 2020 by Ole Henrik Skjelstad 2 Comments

  • Share
  • Tweet
  • Flipboard
  • WhatsApp

Sony a7riii, Tamron 17-28

“One of the most appealing attributes of landscape photographs is sharpness from front to back. Everything is in sharp focus in the foreground, middle, and background, allowing the viewer to be pulled into the image as if they were standing right there.” – Max Foster

Generally speaking, sharpness throughout the image, that is from foreground to background, is far easier to achieve with an ultra-wide-angle lens (UWA) than with a tele.  However, even wide-angle lenses have their limitations. If you place a UWA lens only a few centimeters from the foreground object, you can get it in focus. The background, however, will fall outside the depth of field and be blurred. The same goes if you focus on a very far object.

You may stop down to a very narrow aperture, like, for example, f/22. It will make it easier to get everything in focus. You will get a decently sharp foreground. However, the middle ground and background will be soft due to diffraction.

There is a better way: Focus stacking.

What is focus stacking?

Focus stacking is when you “stack” many similar photos together and use only the parts that are “in focus” from each of the frames. This is a common technique for macro photography when the depth of field is very narrow.

For landscape photography, you would use it when you can’t get both the foreground, the midground, and the background all in focus in a single frame. I, for example,  primarily use focus stacking when I go low and place the camera very close to a foreground object. I have tried to focus stack my way through a scene handheld. That was a nightmare, so a tripod is a must.

How to focus stack for landscape?

Below you will find my “recipe”. It provides an excellent base; feel free to use it as it, to adapt or to change it entirely depending on your needs.

If the light is good, I start by shooting the background. I do this, just in case, the light will change during the focusing process. Next, I set the camera to live-view with focus peaking turned on. I make sure my immediate foreground is in focus first. After I have made the shot, I turn the focus ring a little further and shoot the next exposure. The further I move out into the scene, the larger are my focusing adjustments. The near foreground is usually most critical. It requires incremental focusing adjustments. Needless to say, that when you focus stack, you should set the camera or lens to manual focus.

There are now cameras on the market, like the Nikon D850, which have automated the stacking process. No manual labor involved for the photographer. Some camera models with a touch screen, like the Canon 5DmkIV, implemented a touch-to-focus functionality. This, of course, also simplifies focus stacking in the field.

If you need a fast shutter speed (because of wind, for example), you can increase the ISO or open up the aperture. Take into consideration that the more open the aperture, the more exposures you’ll need. Getting a sharp image at f/5.6, for example, will require more exposures than f/11.

An open aperture offers less depth of field than a narrow. When possible, you can try shooting at f/22 for the immediate foreground and perhaps at f/11 for the rest of the scene. This approach demands a stationary foreground object, and no wind if the foreground consists of flowers or foliage.

A narrow aperture allows less light to the sensor and will increase the exposure time accordingly. This is, of course, very unfortunate if it is windy.

A telephoto shot with many elements in the frame, each at a different distance from the camera, will most likely also require a focus stack.

An example frame

The photo above was taken at a lake in Ringerike, Norway. It is afternoon. Sunsets are early in January. The light is fantastic. Frost smoke diffuses the light from the setting sun. The atmosphere is magical.

I have already shot the scene from various angles, and decided that I wanted a very low photo. I placed my tripod as close as possible to that foreground bush. I first shot a couple of exposures for the background. One of them is very underexposed. I will mask it in where the sun is because the light from the sun is difficult to control in this instance.

Then I concentrated on the foreground bush. When I got it in focus, I hit the shutter. I then moved the focus ring a tad before I shot my second exposure. I am shooting at ISO 100 and f/11. All in all, I took six images with various focal points. I assumed that at f/11, this should suffice.

Blending the exposures in Photoshop

After prepping the raw files in Lightroom, I opened them as layers in Photoshop.

Since I rotated the focus ring, there will be a slight shift in perspective between the photos. The first thing needed is to align the six images. Here is how you do it:

Highlight all the layers by clicking the bottom layer and then Shift+click the top layer.

Go to Edit and chose Auto-Align Layers.

A pop-up window appears. Make sure Auto is checked and click ‘ok’.

Now you need to make a copy of the layer stack. With all layers highlighted, drag them down to the plus icon at the bottom of the Layers Panel. If Photoshop makes any mistakes in the blending process, you can use the copied layers to fix any blending errors. (I do this because once the blending process is completed, It is very hard to use the original layers for masking. I have tried, and that was a very frustrating experience).

Click the eye icons to turn off the copied layers.

It is time to blend the images. Again, go to Edit, but this time choose Auto-Blend Layers. Don’t forget to highlight the original layers before you start the process.

In the new pop-up menu, make sure that Stack Images and Seamless Tones and Colours are checked. I prefer to fix the edges myself after the blending, so I leave Content-Aware Fill Transparent Areas unchecked. Now click ‘ok’.

Here is the Layers Panel after the blending process. The white areas in the Layer Masks show which parts from each image Photoshop used to output the sharpest possible image.

Now, begin to zoom into the image and look for any blending errors. If you find a mistake, click through the copies until you find a sharp image you can use for that particular spot. Then, add a black mask to the layer. Use white as the foreground layer to paint in to cover the blending mistake.

If it was windy, and the various objects in the scene moved around, you can expect quite a masking job. It will also be necessary to use the clone tool quite a bit.

In this instance, there was no wind. Also, Photoshop blended the six images flawlessly. I only turned on the bottom copied layer, which was focused for the background, and added a black mask. The sky looked more exciting on that layer.

Once you are happy with everything, you can delete the copies you haven’t used. Next, flatten the image before any further editing.

Her is the final result, a few Photoshop layers later:

FIND THIS INTERESTING? SHARE IT WITH YOUR FRIENDS!

  • Share
  • Tweet
  • Flipboard
  • WhatsApp

Related posts:

This is the fastest way to focus stack your images in Photoshop The ultimate focus stacking guide for landscape photographers How many photos should you stack when shooting the night sky? Landscape photographers, here are some techniques to nail focus every time

Filed Under: Tutorials Tagged With: focus stacking, landscape photography, landscape photography tips

About Ole Henrik Skjelstad

Ole Henrik Skjelstad is a Norwegian math teacher and landscape photographer. He fell in love with photography in 2013 when he got a camera as a birthday present. You can follow his work on 500px, IG, and Flickr, and get his tutorials here.

« The curse of “Comparisonitis” – 7 tips to make you less miserable
Fake Gary Fong Lightspheres are being sold on Amazon – Watch Gary call them out on video »

Submit A Story

Get our FREE Lighting Book

DIYP lighting book cover

* download requires newsletter signup
DIYPhotography

Recent Comments

Free Resources

Advanced lighting book

Recent Posts

  • Watch: How good (or bad) is an $8.50 tripod?
  • How to light and photograph Lego building interiors
  • Lighting Setup: How to light your portraits with £50 LED tubes
  • Review: Insta360 announces its first gimbal – The AI-tracking Insta360 Flow
  • World Press Photo 2023 regional winners show why AI will never kill photography

Alex Baker is a portrait and lifestyle driven photographer based in Valencia, Spain. She works on a range of projects from commercial to fine art and has had work featured in publications such as The Daily Mail, Conde Nast Traveller and El Mundo, and has exhibited work across Europe

Dave Williams is an accomplished travel photographer, writer, and best-selling author from the UK. He is also a photography educator and published Aurora expert. Dave has traveled extensively in recent years, capturing stunning images from around the world in a modified van. His work has been featured in various publications and he has worked with notable brands such as Skoda, EE, Boeing, Huawei, Microsoft, BMW, Conde Nast, Electronic Arts, Discovery, BBC, The Guardian, ESPN, NBC, and many others.

John Aldred is a photographer with over 20 years of experience in the portrait and commercial worlds. He is based in Scotland and has been an early adopter - and occasional beta tester - of almost every digital imaging technology in that time. As well as his creative visual work, John uses 3D printing, electronics and programming to create his own photography and filmmaking tools and consults for a number of brands across the industry.

Dunja Djudjic is a multi-talented artist based in Novi Sad, Serbia. With 15 years of experience as a photographer, she specializes in capturing the beauty of nature, travel, and fine art. In addition to her photography, Dunja also expresses her creativity through writing, embroidery, and jewelry making.

Copyright © DIYPhotography 2006 - 2023 | About | Contact | Advertise | Write for DIYP | Full Disclosure | Privacy Policy