PHOTOSHOP: STACKING PHOTOS
Many photos into one: sharpness from front to back, a noise-free night sky and star trails. Three techniques step by step.
ONE PHOTO ISN'T ALWAYS ENOUGH
In stacking you take a series of photos of the same subject, and Photoshop combines the best parts of them into one photo. This gives you a result a single exposure can't: the whole photo sharp in macro, a clean night sky without noise or star arcs across the sky.
| Technique | For | Photos | In Photoshop |
|---|---|---|---|
| Focus stacking | Macro, product photos, landscapes from the foreground to the horizon | 3–50 | Auto-Blend Layers |
| Noise reduction (Median) | Night photos, twilight, removing people from tourist spots | 5–20 | Stack Mode: Median |
| Star trails | Starry sky, light trails from traffic | 50–300 | Lighten / Maximum |
FOCUS STACKING
In macro the depth of field is only millimetres, even with a small aperture. When you take photos focused at different points and combine them, the whole subject is sharp – without the diffraction softness a small aperture causes.
Shooting
- Tripod and remote release: the camera must not move between photos.
- Everything manual: M mode, a fixed ISO and white balance, so the photos are alike.
- Aperture f/5.6–f/8: the sharpest range of the lens. Stacking takes care of the depth of field.
- Manual focus: start from the nearest point and move the focus back in small steps. The sharp areas must overlap.
- Focus bracketing: many new cameras (e.g. Canon R, Nikon Z, OM System) have a built-in feature that takes the series automatically.
In Photoshop
Load the photos as layers
File → Scripts → Load Files into Stack. Choose the photos and tick Attempt to Automatically Align Source Images.
Select all layers
In the Layers panel click the top layer and Shift-click the bottom one.
Combine the sharp parts
Edit → Auto-Blend Layers → Stack Images. Tick Seamless Tones and Colors and Content Aware Fill Transparent Areas.
Crop the edges
Aligning can leave a narrow strip at the edges. Crop it off with the Crop tool and save.
Straight from Lightroom: Select the photos in Lightroom, right-click and choose Edit In → Open as Layers in Photoshop. Make the RAW adjustments to one photo first and sync them to the others (Sync Settings).
NOISE REDUCTION BY STACKING (MEDIAN)
Noise is random in every photo, but the subject itself stays the same. When Photoshop calculates the median of the photos for every pixel, the random noise disappears and the details stay. Ten photos reduce noise clearly more than any slider.
Shooting
- 5–20 identical photos: the same settings and the same framing.
- From a tripod or in burst mode: a handheld series also works when aligning is on.
- Night sky: the stars move. Keep the whole series short (under 2–3 min with a wide angle) or stack the sky and the landscape separately.
- Bonus: Median also removes people and cars passing by when the series is taken a few seconds apart.
In Photoshop
Load the photos as a Smart Object
File → Scripts → Load Files into Stack. Tick both Attempt to Automatically Align and Create Smart Object after Loading Layers.
Choose the stack mode
Layer → Smart Objects → Stack Mode → Median.
Flatten and finish
Layer → Smart Objects → Rasterize, crop the edges and carry on with adjustments as usual.
Median or Mean? Mean (the average) removes noise slightly more effectively, but leaves ghosts of moving objects. Median is the safer choice when there's any movement in the photo.
STAR TRAILS
The Earth's rotation makes the stars draw arcs across the sky. A one-hour exposure would be noisy and overexposed, but hundreds of 20–30 second photos combined give clean, long trails. When you shoot towards the Pole Star, the arcs circle around it.
Shooting
- Tripod and interval shooting: the camera's own timer or an intervalometer, photos one after another with no breaks.
- E.g. 25 s, f/2.8, ISO 800–1600: a 30–60 minute series already gives clear arcs.
- Long exposure noise reduction off: otherwise the camera pauses after every photo, and the trails get gaps.
- Frost: bring spare batteries and stop the lens fogging up – see camera in the cold.
In Photoshop
Make them smaller first
Hundreds of full-size RAW photos are heavy for the computer. Export the photos from Lightroom as, for example, 3000 px JPEG images.
Load without aligning
Load Files into Stack – leave Align off, otherwise Photoshop tries to align the stars and the landscape moves.
Blend mode Lighten
Select all layers except the bottom one and change the blend mode to Lighten. The brightest pixels stay visible, and the stars form a continuous trail.
Save
Merge the layers (Layer → Flatten Image) and finally make the contrast and colour adjustments.
Planes and satellites: they show up among the trails as dashed lines. Remove them before combining by hiding that layer, or afterwards with the Spot Healing Brush.
THE MOST COMMON MISTAKES
- Ghost edges in a focus stack: the subject moved (wind!) or the focus step was too large. Take more photos in smaller steps.
- The photos don't align: the camera moved too much. Use a tripod and a remote release.
- The tones vary from photo to photo: automatic exposure or white balance was on. Lock everything to manual.
- Photoshop slows down or crashes: make the photos smaller before stacking and close other programs.
OTHER PROGRAMS
- Helicon Focus / Zerene Stacker: specialist programs for focus stacking. They handle hair and insect hairs better than Photoshop.
- Sequator (free, Windows): for stacking the night sky. It can align the stars and keep the landscape still.
- StarStaX (free): for making star trails, lighter than Photoshop with hundreds of photos.
- Affinity Photo: Focus Merge and New Stack work the same way as in Photoshop.
Read also: Macro photography, Night and northern lights photography, HDR photography (combining exposures) and Depth of field calculator.