Focus Stacking for Product Photos: Capture Detail and Check the Merge
This guide supports ecommerce image planning and review. Marketplace rules can change; check the current official policy before publishing a listing.
When photographing products at close range, physical optics limit how much of the object remains in sharp focus. Closing down the aperture helps, but stopping down too far introduces optical diffraction that softens fine textures. If an item has substantial depth—such as footwear, jewelry, or angled packaging—a single exposure often leaves the front label crisp while the rear edges blur.
Focus stacking solves this optical limitation by capturing a series of images at successive focal planes and blending the sharpest segments into one composite image. It is specifically designed for stationary depth-of-field extension, distinct from exposure bracketing or High Dynamic Range (HDR) workflows that balance extreme brightness values. For ecommerce teams, focus stacking can extend the region of useful sharpness, but the merged details still need inspection.
Capture Setup: Locking Environmental Variables
Because focus stacking blends multiple frames together, changes in lighting, composition, or camera angle between exposures can complicate the merge during the merge.
Before taking the first frame, lock down your physical setup:
- Stabilize the Camera: Mount the camera on a sturdy tripod and follow the camera or lens manufacturer’s guidance on stabilization when tripod-mounted. Use a remote shutter release or a timed delay to avoid touching the camera during capture.
- Lock Lighting and Exposure: Set the camera to full manual mode. Keep shutter speed, aperture, and ISO constant across all shots. Ensure your artificial lights do not cycle in output or shift in color temperature. Stable white balance prevents color banding across blended focus zones; review our guide on product photo color accuracy to establish a controlled baseline.
- Keep the Subject Completely Immobile: The product must remain stationary throughout the sequence. Avoid unstable risers or soft display pads that settle under weight.
- Step Focus Systematically: Start by focusing on the closest point of the product facing the lens. Take the first shot, then manually or electronically adjust the focus ring slightly further into the scene for the next exposure. Continue until the furthest plane of the item is covered.
There is no universal aperture or required frame count for focus stacking. The number of slices depends on magnification, aperture, product depth, focus-step size and the final output requirements. Each frame must have overlapping sharpness with adjacent shots so blending software can identify corresponding edges without leaving out-of-focus gaps.
Merging the Stack: Alignment and Masking
Once the sequence is captured, post-processing software aligns the frames and computes composite layer masks. As a lens changes focus, it often changes its effective focal length slightly—an optical characteristic known as focus breathing. Auto-alignment may compensate for some scaling shifts before merging; inspect the result because it cannot resolve every parallax or occlusion problem.
In post-processing workflows, tools such as Adobe Photoshop provide dedicated blending features. As outlined in the Adobe Photoshop Auto-Blend Layers documentation, the Auto-Blend Layers command inspects multiple aligned layers, selects the sharpest regions from each, and constructs layer masks to produce an extended depth of field. Note that this is a raster layer operation within Photoshop rather than a Lightroom catalog grouping tool.
Once the automated blend completes, inspect the resulting layer masks. Automated algorithms determine sharpness based on localized contrast. If a product contains low-contrast, smooth surfaces (such as matte plastic or untextured glass), the software may struggle to pick the correct slice, requiring manual brush adjustments to restore clean transitions.
Hypothetical Worked Example: Angled Mechanical Watch
To visualize how the capture and merge process functions in practice, consider a hypothetical studio shoot of an automatic mechanical watch positioned at a 45-degree angle to the camera.
- The Challenge: The client requires clear visibility of the hour markers visible through the front crystal, the brushed grain on the bezel, the recessed crown at the side, and the stitched leather strap extending toward the rear. At a close reproduction ratio, a single exposure leaves either the front markers or the rear strap out of focus.
- The Capture Sequence: The photographer mounts the camera on a rigid studio stand, selects a moderate aperture to balance sharpness against diffraction, and focuses on the front lip of the bezel. The sequence progresses across five overlapping focus points: the front bezel, the dial center and hands, the winding crown, the case lugs, and the rear buckle seam.
- The Assembly: The five raw frames are imported as layers and auto-aligned to neutralize minor focus breathing. Applying focus blending generates five masks, each exposing only the crispest plane of each respective component.
- The Result: The target is useful sharpness across the selected details. The photographer checks the composite against the source frames before accepting its edges and proportions; five frames are an illustrative choice, not a sufficient count for every watch. To maintain reliable dimensions across listings, see our advice on product scale accuracy in ecommerce photos.
Common Merge Defects and Quality Checklist
Automated stacking algorithms can misinterpret complex geometries, leading to localized visual defects. In community discussions, such as on Reddit's product photography forum, a discussion raises practical questions with transition boundaries, transparent surfaces, and subject shifts.
Inspect your composite image at 100% zoom using the following reference table:
| Defect | Visual Appearance | Possible cause | Practical Correction |
|---|---|---|---|
| Halos / Edge Fringing | Blurry glow or outline surrounding sharp foreground edges. | Software blended an out-of-focus background frame over an in-focus foreground edge. | Manually edit the layer mask using a soft brush to reveal the sharp foreground frame. |
| Out-of-Focus Bands | A narrow strip of blur sandwiched between two sharp zones. | Focal step increment between exposures was too wide, leaving an uncovered gap. | Re-shoot the sequence with smaller focus increments to ensure overlapping depth of field. |
| Ghosting / Duplication | Faint second outlines of fine details, screws, or seams. | Physical camera movement, subject vibration, or uncorrected focus breathing. | Re-align source layers manually or lock down the tripod and remote trigger more securely. |
| Transparency Bleed | Solid details appear translucent, revealing background elements behind them. | Algorithm confused by smooth, low-contrast surfaces during automated masking. | Paint over the affected mask area to force the solid frame to stay 100% opaque. |
Before adding an image to your store or catalog, run through our standard product photo QA checklist to confirm technical compliance, color fidelity, and crop standards.
Workflow Boundaries and Final Review
Focus stacking is easiest with a stationary setup. Movement in the product, liquid or fabric can create mismatches; consider a single exposure, a simpler setup or a reshoot if the merge is unreliable.
Furthermore, focus stacking must not be confused with downstream background editing. Platforms like PackScena provide scene generation and background staging for existing product images, but they do not perform native focus stacking, manage multishot focal stacks, or automatically reconstruct details that were missed during capture. Clean source photography remains the foundation of an accurate product listing.
Next Action: Always review your merged focus stack at 100% magnification against the physical merchandise. Verify that fine text, surface textures, and structural edges remain true to the original product before placing the image into your ecommerce catalog or generating contextual backgrounds.
Try the workflow with one product
Start with a clear source photo, compare every generated image with the original, and reject any result that changes product details.
Apply for a free trial