A cross-platform focus stacking application with a full retouching editor.
From shoot to sharp image
- Drop in a focus bracket straight from the camera, camera RAW, TIFF or JPEG, and get one image sharp from front to back
- Shot several subjects in one session? FocusForge sorts the card into separate stacks for you; check the split before it runs
- Long brackets of high-resolution frames run on an ordinary computer: the whole stack never has to fit in memory, only one frame's working memory does (see What your computer needs)
- Shot handheld, or your lens breathes while focusing? Frames are lined up first and the edges trimmed to what every shot covers
- Flickering light or exposure drift between shots is evened out
- Defective sensor pixels are replaced from their neighbours before stacking: hot pixels are found automatically, any other pixel through a mask file;
focusforge-cli hot-pixelslists the hot ones - Three methods to choose from: Details as the all-rounder, Soft transitions for gentler blends between frames, Focus map for the most coherent source map to pick from
- Plan a bracket before shooting: the step calculator turns lens or objective, magnification, overlap and depth range into a focus step, frame count, duration and disk need, in the window or with
focusforge-cli step-plan - See which frames hold the sharpest areas: the Analytics overlay and
focusforge-cli sharp-areascount them per image; the command also reports how far neighbouring frames overlap, so a gap between focus steps shows; the Analytics overlay draws the same overlap as a bar - Write a sharpness map per frame, and for a finished image, on one scale with
focusforge-cli sharpness-map, to compare how sharp each is - Fast on a graphics card, the same result without one; the window also starts where only a software renderer is available
- RAW stacks keep highlights above white until the final image is written
Fixing what the stack got wrong
- Halos, ghosting or a misplaced bristle? Brush in the right frame by hand with a soft brush
- The function bar holds Brush and Pipette; each opens a flyout with its settings (Size, Softness, Opacity, Mode, Preview), kept between sessions; keys 1-4 switch the mode
- A brush preview shows the stroke before you paint it, for the chosen source frame, size, softness, mode and opacity; switch it with the Preview switch in the Brush flyout or
p - A colour overlay shows which shot every part of the image came from, so you know where to paint from
- Unlimited undo, and every version of the edit kept: go back, try another direction, export any of them
Working through a whole session
- Use the desktop app, or script the same steps from the command line
- Pause, cancel and pick up long runs later without starting over; a program can cancel a run with a file and follow its progress in another
- Stack or edit the selected photos straight from Lightroom Classic or darktable and get the result back in the catalogue (see Host integration)
- Check a run before it starts:
focusforge-cli stack --dry-runshows the resolved settings and the projects it would write - Save your favourite settings as presets; re-run only the one stack you want to tweak
- A summary after each batch shows which stacks worked, so nothing goes missing quietly
- Problems and notices collect in one place, and reach you as a system notification while you're in another app
Delivering the result
- Export TIFF, PNG or JPEG with your camera metadata, colour profile and keywords intact
- Hand a RAW stack's result to a raw converter as a linear DNG, with exposure and white balance adjustable there
- If something breaks, FocusForge packs a privacy-safe report you can send in
- Learn when a newer release exists: a quiet notice at start, or
focusforge-cli check-update
Details for each are in the guides.
Linux: install the matching .deb or run its AppImage from Releases, or build from source.
macOS: open the matching .dmg from Releases and drag it to Applications, or build from source.
Windows: run the matching .msi from Releases, or build from source; no Visual C++ redistributable is needed. See getting started for paths.
It is the free RAM that counts, not the RAM installed. For stacks up to about 26 megapixels plan on 5 GB free; larger frames and more frames need more. The least that works for each kind of frame is in How much free RAM a stack needs. A graphics card is optional and the result is the same without one.
The installation chapter lists what else a computer needs.
Rust, toolchain pinned to 1.95.0 (rust-toolchain.toml, picked up
automatically by rustup). The UI crates (crates/ui, crates/ui-comparison,
crates/ui-theme-sheet) and crates/gui link Slint with
renderer-femtovg-wgpu, which has a hard dependency on fontconfig; on
Debian/Ubuntu-family hosts install the dev package before building:
sudo apt install libfontconfig1-devcargo build --releaseProduces target/release/focusforge-cli and target/release/focusforge-gui,
with the GPU-accelerated fusion path compiled in by default. Pass
--no-default-features to exclude it; without it, stack always runs on the
CPU and --cpu does not exist as a flag.
target/release/focusforge-cli stack path/to/frames/ --algorithm laplacian
target/release/focusforge-cli export path/to/frames/frames.ffp -o out.tif --zmap zmap.tifstack aligns the frames and fuses them into a project beside the frames
(one .ffp file per detected stack); export then renders that project
into out.tif and writes its per-pixel source map zmap.tif. Name the
output out.png or out.jpg for those formats. Alignment and the
auto-crop that precedes fusion are both on by default (--no-align /
--no-crop turn them off); focusforge-cli align reports the same
transforms on their own, before any fusion runs. See
docs/guide/stacking.md for the other algorithms
and their parameters, and docs/reference/batch-runs.md
for stacking a folder that holds more than one stack.
The Mantis photographs and derived comparison image are used only within this project; see their image rights notice.
target/release/focusforge-gui --open path/to/frames/Opens the same folder into a window instead of the command line, one tab
per detected stack. See docs/guide/gui.md.
An optional plug-in for Lightroom Classic and a script for darktable are in
integrations/. Install steps and settings are in
Use FocusForge from Lightroom Classic and darktable.
The installers and the focusforge-cli archives contain neither plug-in; they ship with
the source. To build and run the checks without the Lightroom Classic plug-in, set
FOCUSFORGE_WITHOUT_LIGHTROOM=1:
FOCUSFORGE_WITHOUT_LIGHTROOM=1 tools/check-all.shDeleting integrations/lightroom/ has the same effect; the darktable checks and the shared suite still run.
FocusForge makes one network request: at start, in the background, it asks
the release server whether a newer final release exists. The request is a
single HTTPS GET that waits at most 5 seconds and carries only the client
name FocusForge/<version>: no identifier, setting or file data. Nothing is
downloaded or installed, and a failed check stays silent. Turn it off with
Settings → About → Check for updates at start; with it off no request is
made. Check now and focusforge-cli check-update run the same check on
demand.
Read the manual online; its mdBook source
is in docs/. It covers focus stacking and shooting practice,
getting started, the window, stacking, alignment,
retouching, checkpoints, export and settings, troubleshooting and a glossary.
The appendix has the reference for every focusforge-cli subcommand.
Open pull requests against develop. See CONTRIBUTING.md for layout, tests and the contribution gate;
Code of Conduct, Security policy and changelog set community standards.
GPL-3.0-only. See LICENSE. FocusForge is GPLv3 because Slint
is used under its GPLv3 licensing option, which is what makes the whole
application GPLv3 rather than a more permissive license; dependency licenses
are held to a compatible allowlist and enforced by cargo deny check licenses.
This software is based in part on the work of the Independent JPEG Group,
carried by the jpeg-encoder crate's JPEG export path.


