Focus Stack First, Then Let AI Change the Background
Focus stacking captures real sharp detail across a deep product before AI edits begin. Use this workflow for jewellery, packaging and small catalogue items.
When a ring, watch, bottle or small textured product is photographed close up, one frame may not keep the front edge, label and rear detail sharp at the same time. Asking AI to “sharpen everything” can create plausible detail that was never captured.
Focus stacking solves a different problem. You photograph the stationary product several times with the focus moving from near to far, then blend only the sharp areas into one extended-depth master. Use that factual master for cutouts, background changes and listing details, while keeping the original frames for verification.
The result should reveal captured detail, not redesign the product. Here is a practical focus-stacking workflow for e-commerce images.
Why focus stacking belongs before AI editing
Depth of field becomes narrow at close focusing distances. Stopping the lens down can increase it, but very small apertures may soften fine detail and still may not cover a deep product. Jewellery makes the problem obvious: the front prongs can be sharp while the rear of the stone setting and ring shank fall out of focus.
GIA describes extended depth of field, or focus stacking, as a series of images captured at regularly spaced focal planes and combined digitally. Its gemological guidance stresses that processing should represent the subject realistically. That is the useful boundary for sellers too.
A stack gives an editor real sharp pixels from several planes. An AI sharpening or generative fill tool instead estimates what missing detail might look like. Use AI later for presentation, not as a substitute for evidence that the camera never recorded.
Capture a stable, overlapping sequence
The product, camera and light must remain still. Put the camera on a tripod, secure the product, clean dust and fingerprints, and use diffused light that will not flicker between frames. The light tent versus softbox guide explains how each setup affects metal gradients and gemstone facets.
Set exposure and white balance manually so the frames match. Avoid automatic settings that brighten one frame as the focus moves. Use a remote release, timer or electronic shutter when appropriate to prevent camera movement.
Then capture from the nearest detail that must be sharp to the farthest:
Focus on the nearest required edge, not on empty foreground.
Take the first frame, then move focus a small step deeper into the product.
Keep enough overlap that every important area is sharp in at least one frame and adjacent sharp zones overlap.
Continue beyond the last required detail so the final plane is definitely covered.
Review the sequence before moving the product or lighting.
Many cameras can automate this. Canon’s focus-bracketing guidance lets the photographer set the number of shots and focus increment, then moves focus towards infinity. Nikon’s Focus Shift offers shot count, step width, interval and first-frame exposure lock.
A short stack may be enough for a flat pendant or label. A ring photographed at an angle can need more frames. If sharp bands are missing, reduce the focus step or add shots.
Blend the captured detail in Photoshop
Adobe’s current Photoshop workflow starts by loading the sequence as layers. Select all layers, run Edit > Auto-Align Layers, then Edit > Auto-Blend Layers and choose Stack Images. Photoshop creates layer masks that keep the sharper areas from each source.
Auto-Blend works on RGB or Grayscale layers and does not support Smart Objects, Video Layers, 3D Layers or Background Layers. Convert or rasterise only as needed, and keep a copy of the original files unchanged.
Alignment matters because changing focus can slightly change magnification. Leave a little extra space around the product when shooting, as alignment and final cropping can trim the edges. Canon also recommends a wider angle of view than the final composition for this reason.
Inspect the stack before retouching
A successful merge can still contain local errors. Zoom in and check prongs, chain crossings, engraved letters, label edges, transparent rims, gemstone facets and the boundary between the product and background.
Look for doubled edges, soft bands, halos, repeated texture and abrupt reflection changes. Polished metal and faceted stones can produce different highlights as focus shifts, even when the lighting is fixed. The blending software may choose the sharpest reflection rather than the most coherent one.
Repair a bad blend by editing the layer masks and revealing the correct area from an original frame. Do not use generative fill to rebuild a prong, hallmark or printed character when a real source frame contains it. If no frame captured the detail sharply, reshoot that plane.
Focus stacking also exposes more dust and surface marks. Remove only temporary contamination and camera artefacts. Scratches, inclusions, patina and construction details that belong to the item should remain unless the physical product is genuinely corrected.
Create a factual master and a presentation master
Save the verified stack as the factual master at full resolution. Keep the source sequence with it. This file is useful for zoomable detail images, catalogue records and as the product reference for later AI work.
Make a duplicate for presentation edits. On that copy you can remove the background, extend the canvas or create a lifestyle scene. Compare the product area with the factual master after each generative step. If the background tool changes a chain gap, bottle edge or engraved letter, mask the real stacked product back into the scene.
This is the same separation used in the two-frame texture-pass workflow: capture product truth under the lighting that reveals it, then build the final presentation without asking one exposure or one AI edit to do every job.
When not to focus stack
Do not stack automatically. A shallow-depth hero image can direct attention naturally, and a moving model shot cannot be captured as a static focus sequence. Transparent or highly reflective products may also produce merge artefacts that take longer to repair than a carefully chosen single frame.
For a main marketplace image, the whole product should normally be clear enough to understand. For a lifestyle image, selective focus may be intentional. Use stacking when buyers need real detail across several depth planes, not merely because the software can make everything sharp.
Focus-stacking quality checklist
The product, camera and lights stayed fixed for the full sequence.
Exposure, white balance and lighting colour remained consistent.
Every required depth plane is sharply captured in at least one source frame.
Auto-Align and Stack Images did not crop or distort the product boundary.
Prongs, links, text, logos and reflections were checked at full resolution.
Blend errors were repaired from real frames, not generated replacements.
The verified stack was saved separately from AI-edited presentation versions.
Focus stacking is valuable because it reduces the amount an AI tool has to guess. Capture the detail first, prove the blend against the source frames, and only then let AI change the background or presentation.
Sources
Adobe Photoshop: Create composite images with extended depth of field, updated 23 February 2026, reviewed 3 November 2026.
Adobe Photoshop: Auto-Blend Layers command overview, updated 23 February 2026, reviewed 3 November 2026.
Canon EOS R6 manual: Focus Bracketing, reviewed 3 November 2026.
Nikon: Focus Shift, the Basics, reviewed 3 November 2026.
GIA: Digital Photomicrography for Gemologists, reviewed 3 November 2026.