Focus stacking for macro photographers.
Free, fast and raw to raw.
You shot a focus bracket of a spider or a tiny flower. Now what? stackrr turns those frames into one picture that is sharp from front to back. Open the folder, watch the result appear in the live preview and render the full stack in seconds! Shoot raw and you get a DNG back that you edit like any other raw file in your preferred editor.
- Live preview (almost) instantly
- Four stacking methods
- Raw stacks saved as DNG in sensor's color mosaic.
- Alignment that handles focus breathing and handheld rotation
- Retouching with 3 brush tools
- Exports to TIFF, PNG and JPEG in 8 or 16 bit with color profile and EXIF
- Animations created from stacking process
- 3D view of the stack as an interactive relief + red-cyan 3d glasses mode
- Project files that keep sources, settings, alignment and brush strokes
- Command line tool for scripts and batch work
- Quick renders, about 8 seconds for 30 raw frames from a 20 MP camera on an M5 MacBook. Yes, stackrr really is that fast.
stackrr-3d.mp4
stackrr runs on macOS 11 Big Sur or newer, on Apple Silicon and Intel Macs.
- Download
stackrr-macos.zipfrom the latest release and unzip it. - Move
stackrr.appto your Applications folder. - Open it. The first time, macOS refuses because stackrr is not notarized by Apple. Click Done, then open System Settings > Privacy & Security, scroll down and click Open Anyway next to the message about stackrr. Confirm with your password. You only have to do this once.
stackrr is developed and tested on macOS. The code is cross-platform Rust, but Windows and Linux builds have not been tested yet. If you try one, please tell me how it went in an issue.
You need Rust 1.95 or newer.
git clone https://github.com/bj4rnee/stackrr
cd stackrr
cargo build --release # builds cli tool
cargo run --release -p stackrr-gui # starts the GUIOn macOS:
sh scripts/bundle-macos.sh # builds target/release/stackrr.app
UNIVERSAL=1 sh scripts/bundle-macos.sh # builds universial binary- Open (⌘O) a folder with your focus bracket.
- Pick a method. The live preview shows results while you try methods and settings.
- Render the full-resolution stack (⌘R).
- Retouch (⌘2) spots where stacking failed by painting from a sharper source frame.
- Export and save (⌘S).
On Windows and Linux, use Ctrl for ⌘.
| Method | Works best for |
|---|---|
| A Weighted average | Short stacks. Keeps color and contrast |
| B Depth map | Textures on smooth surfaces. Needs the frames in focus order |
| C Pyramid | Crossing details and deep stacks. May add contrast and glare |
| D Pyramid by local energy | Thin hairs over busy backgrounds. Smoothing calms grain in flat areas |
The user guide explains the sliders of each method.
# Stack a folder of TIFFs with Method B
stackrr stack photos/ -o stacked.tif -m b -r 8 -s 4
# Raw frames to a DNG
stackrr stack raws/ -o stacked.dng
# Or to a linear DNG, demosaiced by stackrr
stackrr stack raws/ -o stacked.dng --dng linear
# Save the depth map and the alignment too
stackrr stack photos/ -o stacked.tif --depth-out depth.png --transforms-out transforms.json
# Layers for your image editor and an animation of the stack
stackrr stack photos/ -o stacked.tif --layers-out layers/ --layer-alpha regions --animation-out stack.webp
# Compare two results
stackrr compare a.tif b.tif --diff diff.pngstackrr stack --help lists every option.
- Read JPEG, PNG, TIFF and raw files from cameras with a 2x2 Bayer sensor. For raw decoding your camera needs to be on that list
- Not supported (yet) are Fujifilm X-Trans, Sigma Foveon and monochrome sensors
- Tested with the OM System OM-1, Nikon D5000 and Panasonic Lumix G9. Shooting something else? A camera report helps a lot, even when everything works
- Writes TIFF (8 and 16 bit), PNG (16 bit), JPEG, DNG (mosaic or linear), 16-bit depth maps, aligned layers and WebP or GIF animations
Bug reports, camera reports and ideas are very welcome in the issues. If you'd like to work on the code, start with CONTRIBUTING.md.
Please consider supporting stackrr by buying me a coffee. stackrr is open-source, free and fast for everyone. It will never have telemetry, ads or paid features. All money will go back into stackrr's development and the Apple Developer account charge (thanks, Apple :<).
stackrr builds on great open source work:
- RCD demosaicing by Luis Sanz Rodríguez, ported from darktable (GPL-3.0-or-later)
- Method D, ported from the pyramid stacking in shinestacker by Luca Lista (LGPL-3.0)
- rawler for raw decoding (LGPL-2.1)
- egui for the interface (MIT or Apache-2.0)
- libwebp (BSD-3-Clause) and libimagequant (GPL-3.0-or-later) for animations
- Lucide icons (ISC), kamadak-exif (BSD-2-Clause), moxcms (BSD-3-Clause or Apache-2.0) and muda for the macOS menu bar (MIT or Apache-2.0)
- Helicon Focus by HeliconSoft. It's great software and you should check it out. It also inspired me to create stackrr :)
Copyright (C) 2026 bj4rnee. stackrr is free software under the GNU General Public License, version 3 or (at your option) any later version. See LICENSE.
Made with ❤️ and Rust by @bj4rnee
