Skip to main content
Tech Radar TechRadar the technology experts
Sign in
  • View Profile
  • Sign out
RSS
Asia
flag of Singapore
Singapore
Europe
flag of Danmark
Danmark
flag of Suomi
Suomi
flag of Norge
Norge
flag of Sverige
Sverige
flag of UK
UK
flag of Italia
Italia
flag of Nederland
Nederland
flag of België (Nederlands)
België (Nederlands)
flag of France
France
flag of Deutschland
Deutschland
flag of España
España
North America
flag of US (English)
US (English)
flag of Canada
Canada
flag of México
México
Australasia
flag of Australia
Australia
flag of New Zealand
New Zealand
  • Phones
  • Computing
  • TVs
  • AI
  • Streaming
  • Health
  • Audio
  • VPN
  • More
    • Cameras
    • Home
    • News
    • Reviews
    • Opinion
    • How to
    • Versus
    • Deals
    • Coupons
    • Best
Tech Radar Pro
Tech Radar Gaming
Trending
  • Nintendo Switch 2
  • WWDC
  • Best laptop
  • Best VPN
  • ChatGPT
  • Best web hosting
  • NYT Wordle today

Recommended reading

Android Photography
Phones Supercharge your Android phone photography with my 5 easy tips
Three iPhones on a red and orange background showing the new Photoshop app
Software & Services How to focus on an object in Photoshop
iMicro Q3p fingertip smartphone microscope
Camera Accessories I tried a fingertip lens that claimed to gave my iPhone a 1200x zoom – but it won’t replace my microscope any time soon
A crop of the Rosette nebula photographed with the ZWO Seestar S50 smart telescope and processed in Pixinsight
Cameras I spent a year with the $550 smart telescope that's shaking up the astrophotography world – and this is what it’s capable of
The Realme 13 Pro Plus toting a Andoer 1.55x anamorphic smartphone lens
Phone Accessories What is an anamorphic lens? And why I bought one for smartphone videography
Insta360 mobile app on iPhone 13
360 Cameras These handy Insta360 X5 editing tricks address my biggest problem with 360 action cameras
The iPhone 16 Pro Max and Samsung Galaxy S25 Ultra
Phones The iPhone 16 Pro Max helped me see – with a little help from the Samsung Galaxy S25 Ultra
  1. Cameras
  2. Photography

How to combine macro images for amazingly sharp photographs

How-to
By Hollie Latham published 7 July 2016

Stack 'em up

When you purchase through links on our site, we may earn an affiliate commission. Here’s how it works.

Step by step: how to get pin-sharp macro images

Step by step: how to get pin-sharp macro images

Focus stacking is a handy technique used to extend the depth of field in your images. This technique is commonly used in extreme close-up photography as depth of field is so limited.

Depth of field is determined by three factors: focal length, distance to subject and aperture. Macro lenses tend to have long telephoto focal lengths – like the Sigma 105mm lens we're using – and you have to get in close to your subject to achieve full-size magnification, both of which leave you with a very shallow plane of focus. This is why narrower apertures are typically used in macro photography to ensure the subject is sharp, while blowing out the background into soft focus.

But often this isn't enough to render the entire subject in sharp focus. The solution is to shoot several images, each with tiny adjustments to focus, then merge the sharpest parts together into one seamless, pin-sharp image. All you need is a macro lens, a sturdy tripod to keep your camera in a fixed position for the sequence of exposures, and a subject that will remain perfectly still, too.

It's actually quite a simple, automated process to combine your stacked shots in Photoshop CC or CS. While this is adequate for getting started, you may want to consider using specialist stacking software such as, Zerene Stacker and Helicon Focus when you move on to more complex subjects that require a lot more images to be stacked together.

Page 1 of 21
Page 1 of 21
1. Secure camera

1. Secure camera

The most vital part of the focus stacking technique is to ensure that your camera is locked solidly in place so that it doesn't move between exposures. Set your camera up on a tripod. Even the smallest nudge can cause movement, so use a shutter release cable too.

Page 2 of 21
Page 2 of 21
2. Enable live view mode

2. Enable live view mode

Move your subject into position and enable Live View; this is invaluable when working in such a controlled environment. Squinting through the viewfinder to set focus is a painful process, whereas Live View will allow you to zoom in to specific areas for more accuracy.

  • 5 essential photography filters (and why you can't live without them!)
Page 3 of 21
Page 3 of 21
3. Switch to manual

3. Switch to manual

To ensure the exposure remains the same for each shot, set Manual mode and the optimum aperture of your lens, usually f/8-f/11. Don't be tempted to select a really narrow aperture to reduce the amount of shots required as diffraction will soften your images.

  • How to take manual control of your camera
Page 4 of 21
Page 4 of 21
4. Focus... and repeat

4. Focus... and repeat

Switch your lens to manual focus (MF). Zoom in to 5x magnification and twist the focus ring until the closest part of your subject is pin sharp.

Fire a shot, twist the focus ring a fraction, take another shot. Repeat until you've focused/shot the furthest point of your flower.

Page 5 of 21
Page 5 of 21
5. Subject

5. Subject

Your subject needs to remain static. Some work better than others due to the complexity of their structure. Smooth, simple objects won't require as many shots. Subjects with overlapping layers will prove much trickier.

  • 77 photography techniques, tips and tricks for taking pictures of anything
Page 6 of 21
Page 6 of 21
6. Light source

6. Light source

A north facing window, offering plenty of diffused light, is ideal. Pop a reflector on the opposite side to bounce light back into the shadows.

If the light is flat, a constant light source, such as an anglepoise lamp, will also work.

Page 7 of 21
Page 7 of 21
7. Composition

7. Composition

It's important to compose slightly wider than what you want the final composition to be as, when you blend your images in Photoshop, you will need to crop out the overlaid areas towards the edges of the frame.

Page 8 of 21
Page 8 of 21
8. Focus overlap

8. Focus overlap

To ensure you get a sharp end result you'll need to overlap the plane of focus for each shot. Make use of the 5x and 10x magnification function in Live View to ensure you don't miss a section when shifting the focus.

  • How to take food photos
Page 9 of 21
Page 9 of 21
9. Cropping

9. Cropping

We mentioned that you should compose slightly wider than you want the final image to be. This is because the Auto-Align Layers command may rotate some frames marginally during the alignment process and you will need to crop in to remove the uneven edges.

We suggest cropping your image after running this command, before using the AutoBlend Layers command.

Page 10 of 21
Page 10 of 21
10. Open your images in Raw

10. Open your images in Raw

Transfer your stack of images (we took 30 shots) onto your computer and save them in a new folder. Open them into Photoshop; if they are Raw files, as ours are, they will automatically open into Adobe Camera Raw so you can make some Raw adjustments.

Page 11 of 21
Page 11 of 21
11. RAW adjustments

11. RAW adjustments

With the topmost image highlighted, scroll down to the bottom image and shift-click it to select all the images. Now any exposure tweaks you make will be applied to all images simultaneously – saving time, as they're slight variations of the exact same shot.

Page 12 of 21
Page 12 of 21
12. Save as JPEGS

12. Save as JPEGS

Merging a large number of files will take a long time, so, to speed up the process, click the Save Images button to batch-convert them as JPEGs.

Set Destination to Save In Same Location, Format to JPEG, Quality to High and hit Save.

Page 13 of 21
Page 13 of 21
13. Load as layers

13. Load as layers

Click Done to exit Camera Raw. Moving to the main Photoshop editor, go to File>Open and select all the newly created JPEG files.

Go to File > Scripts > Load Files Into Stack, and click OK. This will open all the images as individual layers into one file.

Page 14 of 21
Page 14 of 21
14. Align layer

14. Align layer

Once loaded in Photoshop, select the topmost layer in the Layers palette, hold shift and click on bottom-most layer to select them all.

Go to Edit > Auto-Align Layers and ensure Auto is selected and hit OK. This will counter any slight movement between shots.

Page 15 of 21
Page 15 of 21
15. Blend layers

15. Blend layers

With all the layers still highlighted, go to Edit>AutoBlend Layers and ensure Stack Images and Seamless Tone and Colors are selected.

Photoshop will create a series of layer masks that reveal the sharpest bits of each layer, for a pin-sharp shot, from front to back.

  • How to use Photoshop to turn images into drawings
Page 16 of 21
Page 16 of 21
16. Check the focus

16. Check the focus

Photoshop isn't perfect and you may notice some areas it's missed due to misalignment. Locate the layer that has the area of sharpness you want to recover.

The quickest way to view them is by flicking through your sequence in Bridge or Lightroom.

Page 17 of 21
Page 17 of 21
17. Edit the masks

17. Edit the masks

Locate that layer in the Layers panel, drag it to the top of the stack, and click its mask to edit it. Paint with white to bring the area of focus back.

Repeat to other layer masks, if required. Reveal all layers and Hit Ctrl+Shift+Alt+E to create a merged layer.

Page 18 of 21
Page 18 of 21
18. Boost contrast

18. Boost contrast

Zoom in and scroll around the image, using the Spot Healing Brush tool to paint over and remove any imperfections.

Next, add a Levels adjustment layer to boost contrast by dragging the Shadows and Highlights sliders in to the edge of histogram and adjust the Midtones to balance the exposure.

Page 19 of 21
Page 19 of 21
19. Saturate and sharpen

19. Saturate and sharpen

Next, add a Hue/Saturation adjustment layer and increase the Saturation slider to boost the color. Create another merged layer and go to Filter > Sharpen > Unsharp Mask.

For our image, we set Amount to 66%, Radius to 2 pixels and Threshold to 2 levels to sharpen the finished image.

Page 20 of 21
Page 20 of 21
20. Just add water

20. Just add water

If you choose to photograph a flower that doesn't have an overly complex structure and a flat-looking bud, jazz it up by spraying water on it for a different effect. We did this with a bright pink Gerbera to add more interest and detail to the final image.

You can pick up spray bottles from DIY, gardening shops or even your local supermarket for a few quid, if you don't have one.

  • 52 photography projects: a photo idea to try every week of the year
Page 21 of 21
Page 21 of 21
Hollie Latham
See more Camera How Tos
Read more
Android Photography
Supercharge your Android phone photography with my 5 easy tips
Three iPhones on a red and orange background showing the new Photoshop app
How to focus on an object in Photoshop
iMicro Q3p fingertip smartphone microscope
I tried a fingertip lens that claimed to gave my iPhone a 1200x zoom – but it won’t replace my microscope any time soon
A crop of the Rosette nebula photographed with the ZWO Seestar S50 smart telescope and processed in Pixinsight
I spent a year with the $550 smart telescope that's shaking up the astrophotography world – and this is what it’s capable of
The Realme 13 Pro Plus toting a Andoer 1.55x anamorphic smartphone lens
What is an anamorphic lens? And why I bought one for smartphone videography
Insta360 mobile app on iPhone 13
These handy Insta360 X5 editing tricks address my biggest problem with 360 action cameras
Latest in Photography
Northern Lights taken with the Nikon Z6 II
Missed the northern lights? Don't worry, scientists predict 50 years of intense activity – here's how to plan your next photo trip
Three images; a massai scanning the terrain from a high rock; a chimpanzee in a zoo with painted wall background; two lions lapping from puddles
“If AI erodes people's belief in photography, then we have problems” – we talk AI and cameras with the winner of the Sony World Photography Awards 2025
Printerpix photo book front cover
Printerpix photo book review: an imperfect, yet super-simple way to print memories of a lifetime
Orchids and flowers from the New York Botanical Garden
I snapped hundreds of flower pics with the iPhone 16 Pro, Galaxy S25 Ultra and OnePlus 13 — and the results surprised me
Vista Print photo book on table with pink wall and plant in background
VistaPrint photo book review: quick, easy, and flexible editing – but lacking absolute precision
The cover of a 12 x 12 inch Blurb photo book on a marble surface in front of a plant.
Blurb photo book review: versatile designs with rich detail and vibrant colors
Latest in How Tos
Cadillac Hertz Team Jota (38) includes Earl Bamber (NZL), Sebastien Bourdais (FRA), and Jenson Button (GBR) during the 24h of Le Mans at 24h Le Mans Circuit in Le Mans
How to watch 24 Hours of Le Mans on RTBF Auvio (it's free)
LONDON, ENGLAND - JUNE 12: Wimbledon tennis balls sit ready on the Queens Club practice court at The Queen's Club on June 12, 2025 in London, England.
How to watch Wimbledon with Hulu+Live TV – stream the tennis and grab a free trial
James Lowe and Jordie Barrett in the URC semi-final against Scarlets for Leinster.
How to watch Leinster vs Bulls for FREE — live stream 2025 United Rugby Championship Final from anywhere
Charles Leclerc and Max Verstappen racing at the Spanish Grand Prix in Barcelona
How to watch Canadian Grand Prix on Servus On (it's free)
Ollie Lawrence, Finn Russell and Ben Spencer celebrating a try against Bristol in the semi-final of the Gallagher Premiership.
How to watch Bath vs Leicester: Live stream 2025 Gallagher Premiership final rugby for FREE, team news
Rory McIlroy using his driver for a tee shot at the US Open.
US Open 2025 live stream: how to watch the golf online, schedule, Round 4 tee times, leaders
LATEST ARTICLES
  1. 1
    I tried a fingertip lens that claimed to gave my iPhone a 1200x zoom – but it won’t replace my microscope any time soon
  2. 2
    Save big on the Galaxy S25 Plus: the 512GB model is at a record-low price today
  3. 3
    Beef season 2: everything we know so far about the hit Netflix show’s return
  4. 4
    Meet VPS Kodee: your new AI sysadmin
  5. 5
    I haven't even worn the Garmin Venu X1 yet, but it's already telling me a lot about how the company is changing

TechRadar is part of Future US Inc, an international media group and leading digital publisher. Visit our corporate site.

  • About Us
  • Contact Future's experts
  • Contact Us
  • Terms and conditions
  • Privacy policy
  • Cookies policy
  • Advertise with us
  • Web notifications
  • Accessibility Statement
  • Careers

© Future US, Inc. Full 7th Floor, 130 West 42nd Street, New York, NY 10036.

Please login or signup to comment

Please wait...