The FocusForge Manual
A stack of eight frames of a praying mantis, fused and open in the editor.
FocusForge turns a series of photographs focused at different distances — a focus stack — into one image that is sharp from front to back. It lines the frames up, picks the sharpest part of each, blends them into one composite and then lets you repair by hand whatever the automatic result got wrong. It runs on Linux, macOS and Windows, uses a graphics card when there is one and gives the same result without one.
This manual is for photographers. You do not need to have stacked before: the first part teaches the technique, the second walks through every function of the program, and the help section answers the questions that come up along the way.
How this manual is organised
Part I — Focus stacking explains the photography. Why a macro shot is only sharp in a thin slice, how many frames a subject needs and how far apart they should be, which aperture to choose, how to light and support a stack, and how to recognise and avoid the typical failures: halos, ghosts from movement and soft bands between frames. Read it before your first shoot, or whenever a result looks wrong and you want to know why.
Part II — Using FocusForge explains the program, window first. It starts with installing FocusForge, what your computer needs and fusing your first stack, then tours the window, the Images panel and every stacking setting, the retouching editor, checkpoints and saving, exporting, working with several projects, and the settings window.
Help collects the messages FocusForge can show you, what each one means and what to do about it, and a glossary of the terms the manual uses.
Appendix holds the reference material: how much free RAM
a stack needs, every command and option of focusforge-cli for scripting the
same steps from a terminal, and batch runs from the command line.
The quickest way in
- Install FocusForge.
- Shoot a stack — the pre-shoot checklist lists what to check before you press the shutter.
- Follow Your first stack, the quickstart: open the folder, click Fuse stack, keep the result, save and export it. It fits on one page; the rest of the manual is there when you want the details.
Tip: The screenshots in this manual all show the same eight-frame stack of a praying mantis: 512 × 512 pixel crops from a 61-frame series, kept in the source tree as
fixtures/mantis-512. The series itself does not ship with the program. Open the eight crops and what you see matches the page.
Conventions
- Bold text names something you click or read in the window, spelled exactly as the window spells it: Fuse stack, Keep, Export image.
Monospacetext is something you type, a file name or a command-line option.- Notes, tips and warnings are set apart:
Note: extra background that helps you understand what is going on.
Warning: something that can cost you work if you miss it.
FocusForge is free software under the GNU General Public License, version 3.
Building it from source and contributing are described in
CONTRIBUTING.md
in the repository; this manual is about using it.
Depth of field and why stack
Take a close-up of an insect and look at it full size: one thin slice is crisp, and everything in front of it and behind it melts into blur. That is not a fault of your lens or your technique. It is what optics does at short distances, and it is the reason focus stacking exists.
This chapter explains where that thin slice comes from, why it gets so thin in macro work, and what focus stacking does about it. The next chapter, Shooting a stack, turns this into practice, and Common failure images shows what goes wrong and how to fix it.
What depth of field is
A lens focuses perfectly on one plane only. A point exactly on that plane lands on the sensor as a point. A point a little in front of it or behind it lands as a small disc of light, a blur disc, and the further the point is from the plane of focus, the bigger its disc.
As long as a blur disc is too small for you to tell it from a point, that part of the picture looks sharp. The depth of field is the zone, in front of and behind the plane of focus, in which the blur stays that small.
The largest blur disc that still counts as sharp is called the circle of confusion. It is a convention, not a law of nature. Common values, for a whole picture viewed at a normal size:
| sensor | circle of confusion |
|---|---|
| full frame (36 × 24 mm) | 0.03 mm |
| APS-C | about 0.02 mm |
| Micro Four Thirds | about 0.015 mm |
Note: Depth of field has no hard edge. Sharpness falls off gradually on both sides of the plane of focus. If you look at a picture at 100 % on screen, or print it large, you see smaller blur discs than the convention assumes, and the zone that looks sharp gets thinner.
What makes it deep or shallow
Three things set the depth of field:
| factor | deeper zone | shallower zone |
|---|---|---|
| Aperture (the f-number) | smaller aperture, larger f-number (f/11) | wider aperture, smaller f-number (f/2.8) |
| Magnification (how large the subject is on the sensor) | subject small on the sensor | subject large on the sensor |
| Sensor and viewing size (through the circle of confusion) | small prints, the whole frame on screen | large prints, 100 % crops |
Magnification is the size of the subject’s image on the sensor divided by the subject’s real size. A lens at 1:1 (“life size”) puts a 10 mm beetle on the sensor as a 10 mm image; at 1:2 the image is 5 mm. Magnification is what you change when you move closer or use a longer lens, and in macro work it is by far the strongest of the three factors.
Tip: At the same magnification, the focal length barely changes the depth of field. A 60 mm and a 100 mm macro lens at 1:1 give practically the same depth of field; the longer lens just gives you more working distance.
A worked example: why it collapses at macro distances
For close-up work, a good approximation of the total depth of field is:
depth of field ≈ 2 · N · c · (1 + m) / m²
Nis the f-number set on the lens (for example 8 for f/8).cis the circle of confusion in millimetres (0.03 for full frame). The chapter on shooting a stack uses half that, 0.015 mm, because a stack is judged at 100 %.mis the magnification (1 for 1:1, 0.5 for 1:2, 2 for 2:1).
Read the formula from the outside in. The f-number is on top, so stopping
down (one stop is a factor of 1.4 in the f-number)
deepens the zone in proportion: f/16 gives twice the depth of f/8. The
magnification is squared underneath, so it dominates: going from 1:1 to 2:1
shrinks the depth to about three eighths (0.96 mm to 0.36 mm in the table
below). At low magnification, where the (1 + m) term barely matters,
doubling the magnification comes close to a quarter.
Work it through for a full-frame camera at f/8 and 1:1:
2 × 8 × 0.03 mm × (1 + 1) / 1² = 0.96 mm
About one millimetre. Everything sharp in that picture lies inside a slice one millimetre thick. The same camera and aperture at other magnifications:
| magnification | area the full frame covers | depth of field at f/8 |
|---|---|---|
| 1:10 (0.1×) | 360 × 240 mm | about 53 mm |
| 1:4 (0.25×) | 144 × 96 mm | about 9.6 mm |
| 1:2 (0.5×) | 72 × 48 mm | about 2.9 mm |
| 1:1 (1×) | 36 × 24 mm | about 0.96 mm |
| 2:1 (2×) | 18 × 12 mm | about 0.36 mm |
| 5:1 (5×) | 7.2 × 4.8 mm | about 0.12 mm |
The head of a praying mantis, like the one in the examples below, is several millimetres deep. At 1:1 a single frame covers about a millimetre of it. No single exposure can show the whole head sharp.
Note: The
(1 + m)term is there because a lens focused close lets less light through than its f-number says. The effective aperture is aboutN × (1 + m): f/8 at 1:1 behaves like f/16, and f/8 at 5:1 like f/48. This matters for the next section.
Why stopping down is not the answer
The formula suggests a simple fix: close the aperture until everything is sharp. In practice that fails because of diffraction. The smaller the aperture, the more light spreads as it passes the aperture’s edge, and every point in the picture, including the ones in focus, turns into a larger soft spot. At macro magnifications the effective aperture is what counts, so you reach that limit early: past a certain f-number you buy a deeper zone with a softer picture overall.
How to choose a working aperture is covered in Shooting a stack.
What focus stacking does
Focus stacking gets around the limit by taking many pictures instead of one. Each picture is sharp in its own thin slice, and the software assembles the sharp parts into one image, the composite.
- Shoot a series. Keep the camera and the subject still and move the plane of focus a small step between frames, from the nearest part of the subject to the farthest. The sharp slices of neighbouring frames must overlap, so that every part of the subject is sharp in at least one frame.
- Line the frames up. Moving the focus changes the magnification a little (focus breathing), and the camera may shift slightly between frames. FocusForge’s alignment registers every frame onto a reference frame and crops the result to the area every frame covers. See Alignment.
- Score sharpness everywhere. For every pixel of every frame, FocusForge measures how much fine detail sits around it: how strongly the brightness changes from one pixel to the next over a small neighbourhood. In-focus areas are full of such changes; out-of-focus areas are smooth.
- Pick or blend. For every pixel, the composite takes its value from the frame that scored sharpest there, or blends several frames weighted by their scores. The rule for this is the fusion method; FocusForge has three, Details, Soft transitions and Focus map, described in Stacking settings.
- Keep the record. FocusForge stores which frame each pixel came from as the Z-Map. You can show it over the composite and use it when you retouch an area by hand (see Retouching).
An example
The pictures below are 1:1 crops (one image pixel per screen pixel) of one window of a 61-frame series of a praying mantis’s head, shot with the focus moving from front to back. The examples in this book use eight of those frames, spread evenly over the series and numbered 00 to 07 in focus order.
Single frames 02, 03 and 05 of the eight: frame 02 is sharp on the antenna, frame 03 on the rim of the head, frame 05 is focused behind the head.
Each frame is sharp in a different band. In frame 02 the antenna stands out and the head behind it is soft; one step further, in frame 03, the rim of the head and its hairs are sharp and the antenna has dissolved into a pale band. By frame 05 the focus has moved past the head altogether.
Left: the FocusForge composite of all eight frames (Details method, default settings). Right: its Z-Map, orange where a pixel came from frame 02, blue for frame 03, grey for any of the other six frames.
The composite has the antenna from frame 02 and the rim from frame 03, both sharp, in one picture. The Z-Map on the right shows how it was assembled: the antenna is orange, the rim and its hairs blue. In the smooth background and on the soft surface of the head, where no frame has real detail, the choice of frame hardly matters, and the map there is a patchwork of frame 03 and other frames.
Look closely where the antenna crosses the rim: there the sharp rim won, and the antenna looks soft and see-through for a short stretch. That is a typical depth-edge problem, and Common failure images shows how to repair it with one brush stroke.
What stacking cannot do
Focus stacking only rearranges what the frames contain. Keep its limits in mind when you shoot:
- It cannot invent detail. An area that is not sharp in any frame stays soft in the composite. The steps between frames must be small enough for the sharp slices to overlap; a missing step shows up as a focus gap.
- It assumes nothing moves. Alignment corrects the whole frame being shifted, turned or scaled. It cannot correct a leg, a leaf or an antenna that moved between frames while the rest stood still. See motion.
- Depth edges are hard. Where a near object stands in front of a distant background, the near object’s blur spreads over the background in some frames, and no frame shows that strip of background cleanly. The result can be a glow or a ghost outline, a halo.
- Each frame must be sharp where it is in focus. Camera shake or diffraction softens every frame, and a stack of soft frames is a soft composite.
Where to go next
- Shooting a stack: step size, aperture, light, support and subject movement.
- Common failure images: halos, motion and focus gaps, how to recognise them and how to repair them.
- Your first stack: open a folder of frames in FocusForge and fuse it.
Shooting a stack
A good stack is decided at the camera. FocusForge lines frames up, evens out small brightness differences and picks the sharpest detail from each frame, but it can only work with what you shot: a slice of the subject that no frame has in focus stays soft, and a leg that moved between frames stays doubled.
This chapter is the practical half of Depth of field and why stack. It answers the questions you face with the camera in your hands:
- how far to move focus between frames, and how many frames to take;
- which aperture to use, and why stopping down further is not the answer;
- how to light the subject so every frame looks the same;
- what to put the camera on, and how to move focus;
- how to keep the subject still;
- which file format to record.
It ends with a checklist to run through before the first frame. FocusForge starts once the frames are on your disk; Your first stack takes over from there.
Know your magnification
Every number in this chapter depends on magnification: how large the subject is on the sensor compared with its real size. At 1:1 (written 1×) a 10 mm beetle covers 10 mm of the sensor. At 1:2 (0.5×) it covers 5 mm, at 2:1 (2×) it covers 20 mm.
Macro lenses usually print the magnification on the focus scale. If yours does not, measure it:
- Lay a ruler flat in front of the lens.
- Focus on it at the distance you will shoot from.
- Read how many millimetres of ruler fill the width of the frame.
- Divide your sensor’s width by that number. A full-frame sensor is 36 mm wide, so 36 mm of ruler across the frame means 1×, and 72 mm means 0.5×.
| Magnification | Width of scene on a full-frame sensor (36 mm) |
|---|---|
| 0.25× (1:4) | 144 mm |
| 0.5× (1:2) | 72 mm |
| 1× (1:1) | 36 mm |
| 2× (2:1) | 18 mm |
| 3× (3:1) | 12 mm |
| 5× (5:1) | 7.2 mm |
Note: The magnification that matters is the one you shoot at, not the lens’s maximum. A “1:1 macro lens” focused a little farther away may be working at 0.6×.
Choose the step and the number of frames
The step is how far the plane of focus moves from one frame to the next. Too large a step leaves bands that no frame has sharp, a focus gap (see Common failure images). Too small a step only costs time and disk space, so when in doubt, step smaller.
The model behind the numbers
All the tables below come from one formula, the standard close-up depth-of-field approximation that the depth of field chapter explains:
depth of field ≈ 2 · N · c · (m + 1) / m²
- N is the f-number set on the lens (the marked aperture, such as f/8).
- m is the magnification (1 for 1:1).
- c is the circle of confusion: the largest blur spot that still counts as sharp. This chapter uses c = 0.015 mm, for a full-frame sensor.
Why 0.015 mm? The classic full-frame value, 0.03 mm, used in the depth of field chapter, describes what looks sharp when the whole picture is viewed at a normal size. A stack is usually judged at 100% on screen, where that blur is plainly visible, so this chapter uses half the classic value. Every depth of field here is therefore half the one you get with 0.03 mm: at 1:1 and f/8 the previous chapter’s 0.96 mm becomes 0.48 mm. The larger figure is fine for small prints, too generous for a stack you want sharp at full size.
The formula also assumes a lens whose entrance and exit pupils are the same size (a pupil magnification of 1). Real macro lenses differ a little in either direction, which is one more reason to keep the overlap described next.
Note: For a smaller sensor, divide c by the crop factor: about 0.010 mm for APS-C (×1.5) and 0.0075 mm for Micro Four Thirds (×2), again half the values for normal viewing. The depth of field, and so the step, shrinks in proportion: on APS-C, use two thirds of the step in the tables below.
Step and overlap
Do not step by the full depth of field. Let the sharp zones of neighbouring frames overlap, so that small errors in the step, in the model or in your focusing do not open a gap:
step = depth of field × (1 − overlap)
An overlap of 25% is a good default: the step is three quarters of the depth of field. Raise it to 30–50% when your steps are uneven (focus ring, handheld) or when you see gaps in a result.
Each frame’s sharp zone overlaps its neighbours; the first and last frames sit on the front and back of the subject.
Depth of field per frame
Depth of field of one frame, in millimetres, for a full-frame camera (c = 0.015 mm):
| Magnification | f/2.8 | f/4 | f/5.6 | f/8 | f/11 | f/16 |
|---|---|---|---|---|---|---|
| 0.25× (1:4) | 1.7 | 2.4 | 3.4 | 4.8 | 6.6 | 9.6 |
| 0.5× (1:2) | 0.50 | 0.72 | 1.0 | 1.4 | 2.0 | 2.9 |
| 1× (1:1) | 0.17 | 0.24 | 0.34 | 0.48 | 0.66 | 0.96 |
| 2× (2:1) | 0.063 | 0.090 | 0.13 | 0.18 | 0.25 | 0.36 |
| 3× (3:1) | 0.037 | 0.053 | 0.075 | 0.11 | 0.15 | 0.21 |
| 5× (5:1) | 0.020 | 0.029 | 0.040 | 0.058 | 0.079 | 0.12 |
At 1:1 and f/8, one frame is sharp over less than half a millimetre. That is why a whole insect needs a stack.
Step size
Recommended step, in millimetres, with 25% overlap (three quarters of the table above):
| Magnification | f/2.8 | f/4 | f/5.6 | f/8 | f/11 | f/16 |
|---|---|---|---|---|---|---|
| 0.25× (1:4) | 1.3 | 1.8 | 2.5 | 3.6 | 5.0 | 7.2 |
| 0.5× (1:2) | 0.38 | 0.54 | 0.76 | 1.1 | 1.5 | 2.2 |
| 1× (1:1) | 0.13 | 0.18 | 0.25 | 0.36 | 0.50 | 0.72 |
| 2× (2:1) | 0.047 | 0.068 | 0.095 | 0.14 | 0.19 | 0.27 |
| 3× (3:1) | 0.028 | 0.040 | 0.056 | 0.080 | 0.11 | 0.16 |
| 5× (5:1) | 0.015 | 0.022 | 0.030 | 0.043 | 0.059 | 0.086 |
Values are rounded to two significant figures. A step of 0.043 mm is 43 µm: small enough that only a focus rail can make it reliably (see Support the camera and move the focus).
Count the frames
Once you know the step, the number of frames follows from how deep the part of the subject you want sharp is, front to back:
frames = (subject depth ÷ step), rounded up, + 1
The “+ 1” is there because the first frame sits on the front of the subject and the last on the back: seven frames cover six steps, as in the diagram.
Worked example. A fly’s head and eyes, about 5 mm deep, at 1:1 and f/8 on a full-frame camera:
- Depth of field from the first table: 0.48 mm.
- Step with 25% overlap: 0.48 × 0.75 = 0.36 mm.
- Frames: 5 ÷ 0.36 = 13.9, rounded up to 14, plus 1 = 15 frames.
More examples from the same tables:
| Subject | Magnification | Aperture | Depth | Step | Frames |
|---|---|---|---|---|---|
| Flower head | 0.25× | f/8 | 30 mm | 3.6 mm | 10 |
| Fly’s head | 1× | f/8 | 5 mm | 0.36 mm | 15 |
| Jumping spider’s face | 2× | f/5.6 | 3 mm | 0.095 mm | 33 |
| Butterfly wing scales | 5× | f/2.8 | 1 mm | 0.015 mm | 68 |
Tip: Start a frame or two in front of the subject and finish a frame or two behind it. Extra frames at the ends cost a few seconds; a nose or an antenna tip that falls outside the stack cannot be fixed later.
Common step mistakes
- Stepping by the full depth of field. Without overlap, every small unevenness opens a gap. Keep 25% at least.
- Using a table for the wrong magnification. Depth of field falls with the square of magnification: going from 1× to 2× cuts it to about a third, not a half. Measure the magnification you actually shoot at.
- Using print-size depth of field. Figures computed with c = 0.03 mm, as many online calculators do, give steps twice as large as these.
- Changing the aperture without changing the step. Opening from f/8 to f/5.6 shortens the depth of field by almost a third; shorten the step with it.
Choose the aperture
The aperture sets how deep each frame is, and so how many frames you need. Stopping down gives more depth per frame, but it also softens fine detail through diffraction. At macro magnifications diffraction arrives sooner than the lens markings suggest.
Effective aperture
When a lens focuses close, the image it projects is spread over a larger area, so less light reaches each part of the sensor and the lens behaves as if it were stopped down further. This effective aperture is approximately:
effective aperture = N × (1 + m)
At 1:1, f/8 on the lens works like f/16: two stops less light, and the diffraction of f/16.
| Magnification | f/2.8 | f/4 | f/5.6 | f/8 | f/11 | f/16 |
|---|---|---|---|---|---|---|
| 0.25× | f/3.5 | f/5 | f/7 | f/10 | f/14 | f/20 |
| 0.5× | f/4.2 | f/6 | f/8.4 | f/12 | f/17 | f/24 |
| 1× | f/5.6 | f/8 | f/11 | f/16 | f/22 | f/32 |
| 2× | f/8.4 | f/12 | f/17 | f/24 | f/33 | f/48 |
| 3× | f/11 | f/16 | f/22 | f/32 | f/44 | f/64 |
| 5× | f/17 | f/24 | f/34 | f/48 | f/66 | f/96 |
The depth-of-field formula above already accounts for this, because 2 · N · (m + 1) is twice the effective aperture. Your light meter accounts for it too when it meters through the lens.
Note: Some camera and lens combinations display the effective aperture when focused close, others show the marked one. If the displayed f-number changes as you focus closer without touching the aperture, your camera shows the effective value: convert back before using the tables, which take the marked f-number.
Diffraction
Light passing through a small opening spreads into a blur spot (the Airy disc). Its diameter is about 1.34 µm times the effective aperture for green light:
| Effective aperture | f/8 | f/11 | f/16 | f/22 | f/32 | f/45 |
|---|---|---|---|---|---|---|
| Blur spot from diffraction | 11 µm | 15 µm | 21 µm | 30 µm | 43 µm | 60 µm |
For comparison, a 45-megapixel full-frame sensor has pixels about 4.4 µm across, a 24-megapixel one about 6 µm. Once the blur spot covers several pixels, the finest detail is gone, and no stacking software can bring back detail that no frame recorded.
Recommended working apertures
Aim for an effective aperture of about f/11 to f/16. Detail is slightly softened at 100% on high-resolution sensors but sharpens back well, and the number of frames stays reasonable. Beyond about f/22 effective, the loss is visible at any viewing size.
| Magnification | Set on the lens | Effective aperture |
|---|---|---|
| 0.25× | f/8 to f/11 | about f/10 to f/14 |
| 0.5× | f/8 to f/11 | about f/12 to f/17 |
| 1× | f/5.6 to f/8 | about f/11 to f/16 |
| 2× | f/4 to f/5.6 | about f/12 to f/17 |
| 3× | f/2.8 to f/4 | about f/11 to f/16 |
| 5× | f/2 to f/2.8 | about f/12 to f/17 |
Very wide apertures are not better either. Below these ranges you need many more frames, each frame’s out-of-focus areas are more blurred, and the blurred edges around foreground parts grow into wider halos in the result (see Common failure images).
Why stopping down does not replace stacking
Take the fly’s head again, 5 mm deep at 1:1. At f/22 on the lens (effective f/44) a single frame is sharp over only 1.3 mm, and diffraction blurs every point into a spot about 60 µm wide, some thirteen pixels on a 45-megapixel sensor. You would get a soft picture that is still not sharp front to back. At f/8 and 15 frames, every part of the head is in a frame shot at an aperture that keeps the detail.
Light the subject steadily
Every frame of a stack must look the same apart from where it is sharp. If the brightness, colour or direction of the light changes between frames, the result shows it as blotches, bands or seams where FocusForge switched from one frame to another.
Continuous light or flash
| Continuous light (LED panel, lamp, daylight) | Flash | |
|---|---|---|
| Best for | Still subjects indoors: specimens, flowers, products | Live subjects, wind, handheld, high magnification |
| Strengths | What you see is what you get; easy to place; no recycle wait | Very short flash duration freezes movement and vibration; plenty of light at small apertures |
| Risks | Long shutter times show vibration and subject movement; some lights flicker | Output varies a little from flash to flash; a missed or half-charged flash gives a dark frame |
| Tips | Use a steady, flicker-free light; keep the shutter time a whole multiple of the flicker period | Use low power for fast, consistent recycling; diffuse it; let the flash dominate the ambient light |
For flash, set the shutter time so that ambient light contributes almost nothing (for example 1/200 s at ISO 100 indoors). Then each frame’s exposure is the flash alone, and vibration during the exposure no longer matters. Wait for the flash to recycle fully before every frame.
Avoid flicker
Many lights are not steady even when they look it:
- Mains-powered lights brighten and dim twice per mains cycle: 100 times a second where the mains is 50 Hz, 120 times where it is 60 Hz. At shutter times shorter than one flicker period, each frame catches a different part of the cycle and comes out brighter or darker.
- Dimmed LEDs often dim by switching on and off very fast (pulse-width modulation, PWM). At short shutter times the same thing happens, sometimes at much higher frequencies.
How to avoid it:
- Use a light sold as flicker-free, or run a dimmable LED at full power and control brightness by distance or diffusion instead.
- With mains-powered light, use a shutter time that is a whole multiple of the flicker period: 1/100, 1/50 or 1/25 s at 50 Hz; 1/120, 1/60 or 1/30 s at 60 Hz.
- Some cameras have a flicker-reduction setting that times each exposure to the flicker; it helps with mains flicker.
- Test: shoot ten frames without moving focus and compare their brightness. If they differ, so will your stack.
Warning: With an electronic shutter, flicker shows as dark and light bands across a single frame rather than as a brighter or darker frame. FocusForge cannot remove those bands. Use the mechanical shutter (or electronic first curtain) under artificial light, or use flash.
Keep exposure and white balance fixed
Set everything by hand before the first frame and do not touch it during the stack:
- Exposure mode: manual (M). In aperture priority the camera may change the shutter time from frame to frame as the image changes.
- ISO: a fixed value, not Auto ISO.
- Aperture: fixed, at the value you chose above.
- White balance: a fixed preset (Daylight, Flash) or a measured custom value, never Auto. When FocusForge opens RAW files it develops each one with the white balance recorded in that file, so Auto white balance can give each frame a slightly different colour.
- Picture style, noise reduction, lens corrections in the camera: leave them as they are for the whole stack.
Expose so that the brightest important parts of the subject are not clipped. Detail that is pure white in a frame is lost in that frame.
Note: If you move focus with the focus ring, magnification grows as you focus closer, and with it the effective aperture. With a fixed manual exposure, frames at the near end of the stack come out slightly darker: going from 0.8× to 1× costs about 0.3 stops. Brightness equalization (next section) evens out a change of this size.
What FocusForge evens out, and what it does not
FocusForge’s Equalize brightness setting is on by default. Before aligning, it gives every frame one gain, the same on every colour channel, so that all frames share the same average brightness. Max brightness gain, 1.25 by default, limits that gain in both directions: a frame can be made up to 1.25 times brighter or down to 0.8 times as bright, about a third of a stop either way. A frame that needs more is held at the limit, and FocusForge reports it with a notice after the run. The settings are described in Stacking settings.
That covers small flash-to-flash variation, the slight darkening of focus-ring stacks and mild flicker. It does not cover:
- a frame much darker or brighter than the others, such as a missed flash;
- colour that changes between frames (white balance, mixed light);
- bands or gradients inside one frame;
- light that changes direction, such as a sun moving behind a cloud, or shadows that move;
- highlights that are clipped to white.
Fix those at the camera. A single bad frame can be left out later with Exclude in the Images panel, but a gap in focus where that frame was may remain.
Support the camera and move the focus
There are four common ways to move focus through a subject. Pick by magnification and by how still the subject is.
| Method | Use it for | What it risks |
|---|---|---|
| Tripod, turning the focus ring | Up to about 1×; still subjects; no extra gear | Uneven steps; magnification changes across the stack; touching the camera shakes it |
| Tripod and focus rail | 1× and above; long or precise stacks; lenses with no focus ring | Cost and setup time; rail play; vibration after each move |
| Camera’s own focus bracketing | Up to about 1× with a lens the camera can focus; outdoors; quick stacks | Step set in camera units, not millimetres; magnification changes like the focus ring |
| Handheld | Low magnification, live subjects, flash | Uneven steps and gaps; tilt between frames; motion blur without flash |
What alignment absorbs
FocusForge aligns the frames before it fuses them. With the default Rotation + Scale mode it removes, for each frame:
- shift: the camera drifting slightly on the tripod or rail, or moving between handheld frames;
- scale: the change in image size as focus moves, called focus breathing, which is what focus-ring stepping and in-camera bracketing produce;
- rotation: a small twist of the camera between frames.
It moves each frame as a whole. It cannot fix part of the subject moving relative to the rest (an antenna, a leaf), or the change in perspective when the camera tilts or swings between frames. See Alignment for the settings.
Tripod and focus ring
The simplest method: lock the camera on a tripod, focus on the nearest part of the subject, then turn the focus ring a little between frames until you are past the farthest part.
- Do: use a remote release or the self-timer, magnified live view to check each step, and small, even movements. With the camera on a tripod, an overlap of 30–50% is safer than 25%.
- Watch for: turning the ring moves the camera. Wait a second after touching it. On lenses with electronic manual focus, how far focus moves per turn can depend on how fast you turn, so turn slowly and evenly.
- Expect: magnification changes from the first frame to the last. FocusForge’s alignment absorbs it, but the edges of the frame differ, and the result is cropped to the area every frame covers (Auto-crop).
Tip: To judge the step by eye, magnify live view on a detail at the back edge of the sharp zone. After you turn the ring, that detail should still be sharp, now near the front edge of the new sharp zone.
Tripod and focus rail
A focus rail moves the whole camera forward or backward while the lens focus stays fixed. Magnification stays the same across the stack, and the step is a known distance. Above 1× it is the reliable way to make steps of a few tens of micrometres, and with lenses or objectives that have no focus ring it is the only way.
- Manual rails have a knob and a scale; read your rail’s markings to set steps from the table.
- Motorized rails step and fire the camera on their own, with a pause after each move for vibrations to settle. Set that pause to at least a second at high magnification, more on a light tripod.
- Watch for: play in the mechanism. Before the first frame, turn the rail a little in the direction you will shoot, so the slack is taken up, and never reverse in the middle of a stack.
Because magnification stays constant, a rail stack only needs alignment to remove drift. The faster Translation only mode is often enough.
Camera focus bracketing
Many recent cameras can shoot a stack on their own: you set a number of shots and a step width, and the camera moves the lens focus between frames. The menu item is called focus bracketing, focus shift shooting or similar, depending on the maker.
- Good for: quick stacks outdoors, with nobody touching the camera.
- Limits: it needs a lens the camera can focus electronically. The step width is in the camera’s own units, and on many bodies it also depends on the aperture, so it does not map to the millimetres in the tables. Shoot a test stack and look for gaps before relying on a setting. Magnification changes as with the focus ring.
- Watch for: some cameras use the electronic shutter for bracketing, which brings back the banding described under Avoid flicker.
Handheld
At low magnification you can stack handheld: with flash, shoot a burst while rocking slowly toward the subject, or use the camera’s focus bracketing with a short shutter time.
- Good for: live insects in the field, where setting up a tripod would scare them off.
- Limits: steps are uneven, so take more frames than the table suggests and expect some gaps. Tilting the camera between frames changes the perspective, which alignment cannot remove; it shows as ghosting at edges. Stay at or below about 1×, and keep stacks short.
Stop vibration
At 1× and above, even small vibrations blur a frame:
- Use a remote release, the self-timer or the camera’s interval timer, never the shutter button.
- Use electronic first curtain shutter, or mirror lock-up on a DSLR.
- Put the tripod on a solid floor; on a wooden floor, keep still while shooting.
- After every touch, focus change or rail move, wait for the setup to settle.
- Or use flash as the main light: its short duration freezes what remains.
Keep the subject still
FocusForge aligns whole frames; it cannot put a moving part of the subject back in place. If something moves between frames, the result shows it doubled, smeared or cut off: see the motion example in Common failure images.
A stack takes time. Sixty frames at one every two seconds is two minutes, and a lot can move in two minutes.
- Wind. Shoot early in the morning or late in the evening, when air is calmest. Shield the subject with your body, a reflector or a small tent. Clamp a plant stem out of frame to steady it. Wait for a lull and shoot the whole stack in it.
- Living insects. They are stillest when cool, in the early morning, and when resting or feeding. Keep stacks short, shoot fast with flash, and accept fewer frames at a slightly smaller aperture rather than a long stack the insect walks out of. Stop if the subject starts to move, and start over.
- Plants and cut flowers. They droop as they lose water and turn toward a light over minutes. Shoot fresh, and do not leave them under a warm lamp.
- Specimens. Mount them firmly on a pin or a small blob of adhesive putty. Glued or pinned specimens can still settle; give them a few minutes before the first frame.
- Temperature. A setup carried from a warm room into the cold, or warmed by its own lights, expands and shrinks as it settles, which makes the focus creep. Let the camera, lens and rail reach the room’s temperature first, about a quarter of an hour, and avoid lights that run hot.
Tip: If you need to stop and wait during a stack, for a gust or for an insect, remember that FocusForge tells stacks apart by capture time. Frames taken more than a minute apart are treated as separate stacks when you open the folder: FocusForge says the folder reads as two stacks, and Open as one project puts them back together. A long pause is still worth avoiding, because the subject and the light rarely wait with you.
Choose a file format
FocusForge stacks three kinds of file: camera RAW, TIFF and JPEG. PNG is an export format only: FocusForge does not stack it. A stack is always one kind of file. Whatever the kind, FocusForge reads each frame upright by its orientation tag, so a frame the camera stored sideways stacks like the others.
| RAW files | TIFF files | JPEG files | |
|---|---|---|---|
| What FocusForge reads | Camera RAW files its built-in decoder supports, including DNG and the usual extensions (.cr2, .cr3, .nef, .arw, .raf, .orf, .rw2, .pef and others) | 8-bit or 16-bit TIFF with interleaved colour samples: uncompressed, LZW or Deflate (ZIP) compressed, in strips or tiles | .jpg and .jpeg files |
| Not read | Files the decoder does not support (FocusForge reports them by name) | 32-bit floating-point TIFF, BigTIFF, TIFF compressed with JPEG | |
| Workflow | Copy the RAW files into a folder and open it | Develop the RAW files in your converter first, then export 16-bit TIFFs | Copy the files into a folder and open it |
| Development | Done by FocusForge with its decoder’s standard rendering, using each file’s recorded white balance | Done by you, with full control: lens profiles, noise reduction, colour | Done by the camera, which left 8 bits per colour |
| Disk space | Smaller files | Large: about 270 MB per 16-bit frame from a 45-megapixel camera | Smallest files |
An export from JPEG frames carries their EXIF data, and every export records Orientation 1, because the pixels are already upright.
Recommendations:
- To start, shoot RAW and open the RAW files directly. It is the shortest path, and the files stay small.
- Export TIFFs when you want control over the development, for example to correct chromatic aberration with a lens profile before stacking. Apply exactly the same settings to every frame (synchronise them in your converter), with no per-frame automatic adjustments and no cropping. Export at 16 bits per channel; uncompressed TIFFs open fastest.
- Do not mix RAW and TIFF frames in one stack. FocusForge refuses a stack that mixes them.
- Keep the frames in focus order by file name. FocusForge reads a stack in file-name order and by default aligns each frame to its neighbour, so the names must follow the focus sequence. Camera numbering does this, unless the counter rolls over in the middle of a stack (IMG_9999 followed by IMG_0001); rename the frames if it does. Do not shoot a missed frame again at the end.
- Keep the capture time. FocusForge uses each frame’s recorded capture time to tell stacks apart in one folder. Leave the metadata in when you export TIFFs.
- One stack, one folder is the tidiest layout. When several stacks share a folder, leave more than a minute between them so they are proposed as separate stacks.
Before the first frame: checklist
Run through this list before you press the shutter.
- Support locked. Tripod legs and head tight, rail clamped, nothing resting against the setup.
- Magnification known. Read from the lens scale or measured with a ruler.
- Aperture chosen. From the recommended range for your magnification.
- Step and frame count chosen. From the step table and your subject’s depth, with at least 25% overlap and a frame or two to spare at each end.
- Exposure manual. Mode M, fixed ISO, fixed shutter time; highlights not clipped.
- White balance fixed. A preset or a custom value, not Auto.
- Light steady. Flicker-free light or a flicker-safe shutter time, or flash at a power it recycles from quickly.
- Vibration handled. Remote release or timer, electronic first curtain or mirror lock-up, settling time after each move.
- Subject still. Wind blocked or a lull waited for; specimen mounted and settled; gear at room temperature.
- Start and end set. The first frame in front of the nearest part you want sharp, the last behind the farthest.
- File format chosen. RAW, or a plan to export 16-bit TIFFs with identical settings.
- Test shot reviewed. For a new setup, shoot a short test stack and check it for gaps and flicker before the real one.
When the frames are on your disk, copy them into a folder of their own and continue with Your first stack, which opens them in FocusForge.
Common failure images
Most stacks that go wrong go wrong in one of three ways: a glow along the edges of the subject, doubled or broken outlines, or soft bands between sharp ones. Each has a cause you can name, a way to avoid it next time you shoot, and often a way to repair it in FocusForge.
For each failure this chapter shows an example, then answers four questions: what you see, why it happens, how to avoid it when shooting, and how to repair it.
The examples are crops fused by FocusForge from the eight frames of a praying mantis’s head, numbered 00 to 07 in focus order, that the chapter Depth of field and why stack introduces. They are shown at 1:1 (one image pixel per screen pixel) unless a caption says otherwise. The motion example is simulated by moving frames in software, and its caption says so.
Tip: Judge a composite at 100 %. All three failures are easy to miss in a small preview. In the window, the bottom bar’s Overlay colours the Composite pane by the frame each area came from; it is the quickest way to see where a soft band or a halo was taken from (see Retouching).
Halos at depth edges
The same eight frames fused with default settings by each method. Left: Details. Middle: Soft transitions, with a dark band along the rim. Right: Focus map, with dark blotches beside the antenna and the rim.
A second, quieter form of the same problem sits where the antenna, close to the camera, crosses the rim of the head, further back:
Enlarged 2×. Left: the Details composite, where the sharp rim from frame 03 wins over the antenna in front of it. Right: the same composite after one brush stroke from frame 02 along the antenna.
What you see
A pale or dark fringe, or a soft ghost outline, running alongside an edge where a sharp foreground object stands in front of a more distant background: around antennae, hairs, the edges of legs or petals. The object itself is sharp; the strip of background next to it looks smeared or glowing.
Why it happens
A halo comes from the optics, not from a bug. In the frames focused on the foreground object, the background behind it is blurred. In the frames focused further back, the foreground object is out of focus and its blur spreads out over the background beside it. Next to the edge there is therefore no frame in which the background is both sharp and free of the foreground’s blur. The fusion method has to choose between blurred versions, and a broad, soft edge can score as “detail” too.
The fusion methods handle this differently, as the first example shows. Details works scale by scale and kept the cleanest edges here. Soft transitions blends every frame at every pixel, so the soft spread of the out-of-focus frames is mixed into the strip beside the edge: here a dark band along the rim. Focus map picks one frame per area from a smoothed sharpness map; next to the edges, and in smooth areas where no frame has real detail, it switched between frames whose blur differs in brightness, which leaves dark blotches and patches.
The second example is the same conflict the other way round. Where the antenna, close to the camera, crosses the rim of the head, the rim is the crisper of the two, and its sharp line wins even where the antenna should cover it. The near object then looks transparent, with the far edge drawn across it.
How to avoid it when shooting
- Give the subject distance from the background. The further away the background, the smoother and more even its blur, and the less there is to confuse.
- Prefer a plain, evenly lit background to a busy one.
- Keep the steps between frames small enough to overlap (see Shooting a stack). This does not remove halos, but it keeps the edge itself clean.
How to repair it
- Fuse again with another fusion method and compare at 100 %. The Algorithm picker in the dock’s FUSE settings offers Details, Soft transitions and Focus map; see Stacking settings. Which one is best depends on the scene, so try more than one on a stack that shows halos.
- Retouch what remains: in the editor, choose the frame that shows the area the way it should look and paint it in with the brush. For a halo that is a frame in which the background beside the edge looks clean; for a near object with a far edge drawn across it, the frame in which the near object is sharp. The second example above needed a single stroke from frame 02. See Retouching.
Motion between frames
Simulated camera movement: frames 03 to 07 moved 20 pixels sideways and 12 vertically against frames 00 to 02. Left: fused with alignment off. Right: fused with alignment on (Mode set to Translation only), which puts the frames back in register.
What you see
Outlines that appear twice, a sharp edge with a soft copy just beside it, or a structure that does not line up with itself: an antenna with a kink or a step where one frame takes over from the next. When the whole picture shows it, the camera moved. When only one part does, the subject moved.
Why it happens
Focus stacking assumes that only the focus changes between frames. If the camera moves, every frame after the movement shows the scene in a slightly different place. If the subject moves, a leg, an antenna or a leaf is in a different place in some frames while everything else stays put. Either way, the composite takes each area from its sharpest frame, and areas taken from frames on either side of the movement no longer fit together.
Camera movement comes from knocking the tripod, the shutter, a loose focusing rail, or a support that settles. Subject movement comes from wind, a living subject, or a subject settling on its perch.
How to avoid it when shooting
A steady support, a remote release or self-timer, a pause after every step for vibration to die down, and shelter from wind. Living subjects need short series or calm moments. All of this is covered in Shooting a stack.
How to repair it
- Camera movement: alignment repairs it. It is on by default: FocusForge registers every frame onto a reference frame, shifting, rotating and scaling it as needed, and crops the result to the area every frame covers. When it cannot register a frame, it fuses that frame as it is, and the window asks Keep this fused result?, naming the frames that “could not be aligned”. Look at the result before you choose Keep or Discard. See Alignment.
- If a frame does not register, open More… in the ALIGN settings and set Mode to Translation only, which corrects shifts but not rotation or scale and copes better with frames that hold little detail. In the example above, the default Rotation + Scale could not register frame 02 onto frame 03, because most of that small window is plain blur; Translation only could.
- Subject movement: alignment cannot help, because it moves whole frames
and the rest of the scene did not move. Instead:
- Find the frames in which the subject moved: select them one after the other in the Images panel and compare them in the frame pane beside the Composite pane.
- Exclude them in the Images panel and fuse again. An excluded frame stays in the list and can be included again.
- Repair what is left with the brush, painting the area from one frame in which it is sharp. See Retouching.
- If the movement spans the frames that hold a part of the subject sharp, there is nothing to repair from: shoot that part again.
Focus gaps
Left: all eight frames. Right: the same stack without frame 02, the only frame with the antenna in focus, so the step from frame 01 to frame 03 is twice as large. Alignment is off for both, so the two crops match pixel for pixel.
Note: The eight frames are themselves a thinned series: every eighth or ninth of the 61 frames the photographer took. That is the most likely reason why, in every example on these pages, the face of the mantis below the rim stays soft: none of the eight has it in focus.
What you see
Soft bands or patches between areas that are sharp. On a surface that runs away from the camera, such as a leaf, a wing or the side of a head, they show up as stripes: sharp, soft, sharp, soft.
Why it happens
A focus gap is a slice of the subject that is not sharp in any frame. Either the step between two frames was larger than the depth of field, so their sharp slices did not overlap, or frames are missing from the series: deleted, skipped, or excluded before fusing. Focus stacking can only pick from what the frames contain, so a slice that no frame holds sharp stays soft.
How to avoid it when shooting
Choose a step size smaller than the depth of field, so neighbouring frames overlap, and check the series for missed frames before you pack up. See Shooting a stack.
How to repair it
- If the frames exist but were left out, put them back: Include an excluded frame in the Images panel (or add the missing files) and fuse again.
- If the frames were never taken, no setting or retouch can recover the detail; retouching can only paint from frames you have. Shoot the missing range again, ideally the whole series.
Where to go next
- Shooting a stack: how to avoid all three before they happen.
- Stacking settings: the fusion methods and their settings.
- Retouching: painting areas of the composite from a chosen frame.
Installing FocusForge
FocusForge comes as one package per operating system. Each package holds the
desktop application, which this manual describes, and the focusforge-cli
command-line program, which does the same work from a terminal.
Release packages exist for the systems listed under
What to download. For any other system, or to build
FocusForge yourself, see
CONTRIBUTING.md
in the repository.
What your computer needs
- Free RAM. What counts is the memory that is free when you fuse, not the memory installed. For stacks up to about 26 megapixels plan on 5 GB free; larger frames, such as those of a 45 to 61 megapixel camera, and more frames need more. With less FocusForge works more slowly or refuses the run with a message that says what to do. FocusForge uses more when more is free. The amount each kind of frame needs is in How much free RAM a stack needs.
- Graphics card. Optional. FocusForge uses one when it finds one and gives the same result without, only more slowly (see Machines without a GPU).
- Disk space. Room for your project files and exported images. A camera RAW, JPEG, 8-bit TIFF, or compressed or tiled TIFF stack that does not fit in memory also uses temporary files while it fuses, about 370 MB per frame at 61 megapixels (about half for JPEG). FocusForge checks the free space before a run and tells you if it is too little (Not enough free space). While you edit a camera RAW project, FocusForge also keeps its developed frames on disk so that you can switch between them quickly: about 270 MB per 45-megapixel frame, deleted when you quit. A RAW project stacked at full precision takes twice these amounts.
- Files. FocusForge opens TIFF, JPEG and camera RAW frames and never
changes them. It writes project files (
.ffp), the images you export (TIFF, PNG, JPEG, and DNG for a RAW project) and, in its own folders, its settings, logs and temporary files (see Storage). The full list of readable files is in Which files can FocusForge read?.
What to download
Open the Releases page,
choose a release and download the file for your computer. <version> stands
for the release number, for example 0.1.0.
| Your computer | File | What it is |
|---|---|---|
| Linux (Debian, Ubuntu and relatives), 64-bit Intel/AMD | focusforge_<version>_amd64.deb | A package your system installs, with a menu entry |
| Any other 64-bit Intel/AMD Linux | FocusForge-<version>-x86_64.AppImage | One file that runs without installing |
| Mac with Apple silicon (M1 and later) | FocusForge-<version>-aarch64.dmg | A disk image holding FocusForge.app |
| Windows, 64-bit | FocusForge-<version>-x86_64.msi | An installer |
Note: A release lists only the files it was built with. Nothing in this manual depends on how you installed.
Linux
The .deb package
Install it with your package manager, from the folder you downloaded it to.
Replace <version> with the release number before pasting the command:
sudo apt install "./focusforge_<version>_amd64.deb"
FocusForge then appears in your desktop’s application menu, under
Graphics or Photography. The package installs the window as
/usr/bin/focusforge-gui, the command-line program as
/usr/bin/focusforge-cli, and its shared resources (menu entry, icons,
manual pages, completions) under /usr/share.
The AppImage
An AppImage needs no installation. Make it executable once, then run it:
chmod +x "FocusForge-<version>-x86_64.AppImage"
"./FocusForge-<version>-x86_64.AppImage"
Running the AppImage opens the window. It contains the command-line program
internally at usr/bin/focusforge-cli (visible after extracting the
AppImage); it does not install that path on your system.
macOS
- Open
FocusForge-<version>-aarch64.dmg. - Drag
FocusForge.apptoApplications. - Start FocusForge from Applications or Launchpad.
The command-line program sits inside the app at
/Applications/FocusForge.app/Contents/MacOS/focusforge-cli, and the shared
resources are below /Applications/FocusForge.app/Contents/Resources/share.
macOS releases are signed ad hoc and are not notarized, so macOS checks a
downloaded copy with Gatekeeper the first time it opens. If macOS reports that
“FocusForge” is damaged and can’t be opened, or offers no way to open it, copy
the app to Applications, run this in Terminal and open it normally:
xattr -cr /Applications/FocusForge.app
This removes the quarantine flag the browser set on the download and works on every macOS version. If macOS instead says it cannot verify the developer, open System Settings → Privacy & Security and choose Open Anyway for FocusForge.
Windows
Run FocusForge-<version>-x86_64.msi and follow its prompts; the programs
carry their C runtime, so no Visual C++ redistributable is needed. Afterwards
FocusForge is in the Start menu.
The installer puts everything in $env:ProgramFiles\FocusForge: the window
as focusforge-gui.exe, the command-line program as focusforge-cli.exe
and the shared resources below $env:ProgramFiles\FocusForge\share. It does
not add the folder to PATH, so call the command-line program by its full
path.
Note: If Windows SmartScreen stops the installer, choose More info, then Run anyway.
Machines without a GPU
focusforge-gui tries GPU-backed graphics adapters first and falls back to a
software adapter (for example in a virtual machine or a Remote Desktop
session), logging a warning that names it. It runs there at software speed.
focusforge-cli stack and the stacking in the window never compute on a software
adapter: fusion and alignment run on the CPU, and the log names the adapter.
When no adapter works at all it exits with an error; on Windows, started from
the Start menu, it shows that error in a message box.
focusforge-gui --version prints the program name and its version, for
example focusforge-gui 0.1.0, and exits without opening a window.
On Windows, focusforge-gui --help, --version and argument errors print to
the terminal that started the program, including when its output is
redirected. PowerShell does not wait for a windowed program, so there pipe
the output instead: focusforge-gui --help | Out-File help.txt, or
focusforge-gui --no-such-flag 2>&1 | Out-String to get $LASTEXITCODE.
First launch
Start FocusForge from your application menu, Launchpad or Start menu (or
run focusforge-gui in a terminal). The window opens with no project:
The window on its first start, ready for a stack.
From here, Your first stack walks you through opening your frames, fusing them and keeping the result.
Each start, FocusForge asks the release server once, in the background,
whether a newer release exists, and tells you with a notification if there
is one. Nothing is downloaded or installed. You can switch the check off, or
run it yourself, in Updates; the command
line has focusforge-cli check-update.
Tip: On Linux, when you start FocusForge from a launcher that shows a busy cursor, the window tells the desktop as soon as it has appeared, so the busy cursor ends right away. (It uses the startup token the launcher passes in
DESKTOP_STARTUP_IDorXDG_ACTIVATION_TOKEN.)
For the command line
Everything the window does with a stack can also be scripted with
focusforge-cli. For example, after installing the .deb:
focusforge-cli stack path/to/frames/ --algorithm laplacian
Every package contains 18 manual pages, including focusforge-cli-stack(1),
and completion scripts for Bash, Zsh, Fish and PowerShell. On Linux their
paths are:
/usr/share/man/man1/focusforge-cli*.1.gz
/usr/share/bash-completion/completions/focusforge-cli
/usr/share/zsh/vendor-completions/_focusforge-cli
/usr/share/fish/vendor_completions.d/focusforge-cli.fish
/usr/share/powershell/completions/_focusforge-cli.ps1
For an extracted AppImage, replace /usr/share with usr/share; for macOS,
replace it with /Applications/FocusForge.app/Contents/Resources/share; for
Windows, replace it with $env:ProgramFiles\FocusForge\share.
Read a manual page without changing the system man database:
man -M /usr/share/man focusforge-cli-stack
Load a completion script for the current shell session:
# Bash
source /usr/share/bash-completion/completions/focusforge-cli
# Zsh
fpath=(/usr/share/zsh/vendor-completions $fpath); autoload -Uz compinit; compinit
# Fish
source /usr/share/fish/vendor_completions.d/focusforge-cli.fish
# PowerShell, in an existing pwsh session
. /usr/share/powershell/completions/_focusforge-cli.ps1
# Windows package:
. "$env:ProgramFiles\FocusForge\share\powershell\completions\_focusforge-cli.ps1"
Copy or source only the script for the shell you use, and check the package path on your operating system before you add it to a shell profile. Every command and option is described in the command-line reference.
Your first stack
This chapter is the short way from a folder of frames to a finished image: open, fuse, keep, save, export. It skips every special case. Each step links to the chapter with the details, for when you need them.
If you have not installed FocusForge yet, start with Installing FocusForge.
What you need
- The frames of one stack in one folder: the photographs you shot at different focus distances, all of the same scene. TIFF, JPEG and camera RAW files all work.
- Two or more frames. A single frame has nothing to combine with.
FocusForge never changes or moves your frames. Not shot a stack yet? The pre-shoot checklist lists what to check before you press the shutter.
Open a folder
From the start page
- Start FocusForge. The window shows a start page with an Open… button.
- Click Open…, go to the folder with your frames and select all of them
(
Ctrl+A, orCmd+Aon a Mac). - Confirm. The frames open in a new tab.
You can also drag the folder from your file manager onto the start page.
A freshly opened stack, ready to fuse.
The left pane shows one of your frames, the list on the right shows all of them, and the right pane waits for the result: “Not fused yet”.
More ways to open a stack, folders with several stacks and what to do when a folder will not open: Opening and fusing in detail.
Fuse the stack
Click Fuse stack in the toolbar. The defaults suit most stacks, so there is nothing to set first.
A fuse in progress.
The bottom bar shows how far the run is. The window stays usable while it works: you can pan, zoom and look at the frames.
What each stage means, and how to pause or cancel: Opening and fusing in detail. The settings behind Fuse stack: Stacking settings.
Keep or discard the result
When every frame lined up, the result is kept straight away: it becomes the project’s first checkpoint and the window switches to the editor to show it.
The kept result, shown in the editor.
If some frames could not be lined up, FocusForge asks “Keep this fused result?” first. Look at the result and click Keep if it looks fine, which it often does, or Discard to try again. More: When some frames could not be aligned.
Fix a flaw (optional)
Zoom in and look along sharp edges. If you see a pale fringe (a halo) or a soft spot, you can paint that area from the frame in which it is sharp. Example: fix a halo walks you through it.
Save the project
Your result lives in the tab until you save it; the tab’s UNSAVED chip
reminds you. Press Ctrl+S and choose a name. FocusForge writes one project
file (.ffp) and the chip goes away. The project lets you come back later
and change your mind. More: Checkpoints and saving.
If you close the window first, FocusForge asks whether to save.
Export the image
- Click Export image in the heading of the CHECKPOINTS list.
- Choose a format: TIFF to keep every detail for further editing or printing, JPEG for sharing and the web.
- Click Export, choose the folder and name, and confirm.
The export dialog with the TIFF settings it starts with.
That file is your finished image. Every format and setting: Exporting an image.
Next steps
That is the whole way through. Everything else in this manual is detail for when you want it:
- Opening and fusing in detail: other ways to open, camera RAW, several stacks in one folder, pausing, the queue, failed runs.
- The window: every part of the screen, tabs, panes, zoom and the overlay that shows which frame each pixel came from.
- Stacking settings: the settings behind Fuse stack, and when to change them.
- Retouching: fix halos and other flaws by painting from the right frame.
- Troubleshooting and FAQ: what a message means and what to do about it.
- Stack from Lightroom Classic or darktable: send a selection of photos to FocusForge and get the result back in your catalogue.
Opening and fusing in detail
Your first stack shows the short way from a folder of frames to a finished image. This chapter holds everything that page leaves out: which frames FocusForge reads, every way to open a stack, folders with several stacks, camera RAW frames, every message FocusForge can show when a folder or project will not open, and how to follow, pause, queue or retry a fuse.
Which frames FocusForge reads
- The frames of one stack: the photographs you
shot at different focus distances, all of the same scene. FocusForge reads
TIFF files (
.tif,.tiff; 8-bit or 16-bit), JPEG files (.jpg,.jpeg) and camera RAW files (.dng,.cr2,.cr3,.nef,.arw,.raf,.orf,.rw2and many more). Frames are read upright: a frame stored sideways, as many cameras do, is turned by its orientation tag. - One folder per stack is the easiest way to work. A folder that holds several stacks is fine too; FocusForge asks how to split it (see A folder with several stacks).
- Two or more frames. A single frame has nothing to combine with, so Fuse stack stays greyed out. One TIFF, JPEG or camera RAW file still opens, as a one-frame project (see Camera RAW, JPEG and compressed TIFF).
FocusForge never changes or moves your frames. Everything it makes is kept in the window until you save it as a project file.
Ways to open a stack
There are several ways to open a stack. All of them end the same way: one new tab per stack.
From the start page
When no project is open, the window shows a start page with one button:
The start page, shown whenever no project is open or the + tab is selected.
- Click Open…. Your system’s file chooser opens, titled “Open images”.
- Go to the folder with your frames and select all of them (usually
Ctrl+A, orCmd+Aon a Mac). The chooser can show TIFF frames, JPEG frames or camera RAW files. - Confirm. The frames open in a new tab, sorted by file name.
Open… opens exactly the files you picked, and nothing else from their folder. Pick files of one kind from one folder: a choice that mixes kinds or folders is refused (see When a folder or project will not open).
Drop a folder or frames onto the window
Drag a folder, or a set of frames, from your file manager onto the start page. A folder is read the same way as with New project below, so a folder with several stacks asks how to split it. The caption under Open… reads “Drop a folder or stack”; where your system cannot deliver drops to the window, it reads “Dropping is unavailable on native Wayland” instead.
Note: Dropping onto a tab that already holds a project does not open a second project: it adds the dropped frames to that tab’s stack (see The Images panel). To open a new project while other tabs are open, click the + tab first and drop onto its start page. A dropped project file (
.ffp) always opens as its own tab.
Choose a folder: New project
Press Ctrl+N, or click New project in the side rail of the projects
overview (open it with Projects, the grid button at the left end of the
tab strip). A folder chooser opens, titled “Choose a folder”. Choose the
folder that holds your frames (or a folder of several stacks) and confirm.
Reopen a saved project: Open project…
Press Ctrl+O, or click Open project… in the projects overview’s side
rail, and choose a .ffp file. The project opens with its frames and
every checkpoint you saved. Saving
and the projects overview are explained in
Checkpoints and saving and
Projects, notifications and quitting.
From a terminal
focusforge-gui --open path/to/frames/ starts the window with that folder
or project already open; see Starting from a terminal.
How FocusForge reads a folder
- A folder that holds a
framessubfolder is read through it: the frames inframes/form the stack, other subfolders are not looked at, and loose TIFF files besideframes/(a reference image, for example) are ignored. - Subfolders without frames (notes, sidecar files) are skipped. The window records this as a notification titled “Some images were skipped”, whose message reads, for example, “1 subfolder skipped:” followed by the folder’s path, and lists each skipped folder in the projects overview as a “Not a project” card. The frames themselves open normally.
What you see after opening
A freshly opened stack, ready to fuse.
- The tab is named after the folder. Its UNSAVED chip means the project has not been saved to a file yet.
- The left pane shows the frame selected in the Images list on the right, labelled with its file name; the list header counts the frames (“8 frames · 0 excluded”).
- The right pane, Composite, shows the card “Not fused yet” with the line “Fuse stack builds the composite here.”
- The CHECKPOINTS list reads “None yet — fuse a stack”, and Export image and the Overlay switch stay greyed out until you have a result.
- The bottom bar reads “No job running”.
The window tours every part of this screen.
While a large folder is being read, the window keeps responding and a “Loading…” indicator with a spinner appears over the canvas once the load has taken longer than half a second. It stays until the new tab shows its first frame and the previews in view.
A folder with several stacks
When you open a folder (with New project, by dropping it, or with
--open), FocusForge proposes how its frames split into stacks:
- Every subfolder that holds frames is a stack of its own. A folder you sorted by hand is never mixed up or cut apart.
- Within one folder, a pause of more than a minute between two frames’ capture times starts a new stack. Frames of one stack are usually seconds apart; two subjects are usually minutes apart.
- Camera RAW, JPEG and TIFF files in the same folder always form separate stacks.
If the folder holds exactly one stack, it opens straight away. If it holds more, the window asks first:
A folder with two subfolders of three frames each.
The question counts the frames of each stack: “This folder holds 2 stacks of 3 frames each.”, or “This folder holds 2 stacks (3 and 4 frames).” when the stacks differ in size. Choose one answer:
| Button | What happens |
|---|---|
| Open as one project | All the frames open as one stack in one tab. Use it when FocusForge split a stack you shot in one go (for example after a long pause mid-stack). |
| Open as N projects | Each proposed stack opens in its own tab, named after its subfolder. |
| Cancel (or the x at the top right) | Nothing opens. |
While the question is up, the rest of the window does not react.
Camera RAW, JPEG and compressed TIFF
- Camera RAW frames open exactly like TIFF frames: a folder of RAW files is a stack. One stack is always one kind of file, so RAW, JPEG and TIFF files in the same folder become separate stacks.
- JPEG frames open and fuse like TIFF frames. A JPEG holds 8 bits per colour, which FocusForge widens to its 16-bit range.
- Compressed TIFF files (LZW or Deflate, in strips or tiles, either byte
order) open and fuse like uncompressed ones, and so do 8-bit TIFF files.
Uncompressed 16-bit TIFFs open fastest. A TIFF compressed with JPEG
(
Compression=7) is not read. See Choose a file format. - One file opens as a one-frame project named after the file (
00.tifgives a tab named00). The frame list reads “1 frame · 0 excluded” and Fuse stack is greyed out, so you can look at a frame or check how it is read.
One TIFF file opened as a one-frame project.
When a folder or project will not open
A path that cannot be opened never closes the window and never changes the tab you are on: a dialog says what is wrong, and everything you already had open stays as it was. Dialogs that offer a Cancel (or a Close for an already opened project) also have an x at their top right that does the same.
“No frames here”
A folder without any frames FocusForge can read.
The folder holds no TIFF, JPEG or camera RAW files, so there is nothing to stack. The dialog reads “FocusForge reads TIFF (.tif, .tiff), JPEG (.jpg, .jpeg) and camera RAW files. This folder holds none.”
- Click Pick another folder… to choose a different folder right away.
- Click Cancel, or press
Escape, to close the dialog without choosing.
The projects overview also lists the folder as a “Not a project” card (“LEFT ALONE”, “not read · not changed”): FocusForge did not touch it.
The same dialog appears when files you picked or dropped cannot form one stack, with one of these messages:
| Message | What to do |
|---|---|
| “These files mix camera RAW and TIFF. A stack is one kind of file.” (the kinds named are the ones you picked: “camera RAW and JPEG”, or “camera RAW, JPEG and TIFF”) | Pick files of one kind: only RAW, only JPEG or only TIFF. |
| “These files are in different folders. A stack’s frames share one folder.” | Move the frames into one folder, or open the folder that holds them with New project. |
“These frames cannot be read”
A TIFF frame that FocusForge cannot read is refused when the folder or the files are opened, before any tab exists, instead of failing later at Fuse stack. The dialog has one button, Close, and names the file, never the folder:
| Message | Meaning |
|---|---|
“<name> is a BigTIFF file, which FocusForge cannot read. Save the frames as standard TIFF and open them again.” | The frame is a BigTIFF file (the 64-bit variant of TIFF). |
“<name> uses a TIFF layout FocusForge cannot read. Save the frames as standard 8- or 16-bit TIFF and open them again.” | The frame is stored in a layout other than standard 8- or 16-bit grey or colour TIFF. |
“<name> is not a TIFF file, though its name says so.” | The file ends in .tif or .tiff but does not start like a TIFF file. |
“<name> is damaged: its TIFF header does not read.” | The start of the file is unreadable. |
“<name> could not be read: …” | The file could not be opened or read; the operating system’s reason follows. |
The projects overview lists the folder as a “Not a project” card. Re-export the frames from your raw converter or photo editor as standard TIFF, then open them again.
“A frame is no longer there”
Pressing Fuse stack on a project whose frame has been moved or deleted shows this dialog with the path of the missing file. On a project saved to a file it offers Locate frames…, which asks for the folder that holds the frames now, next to Cancel; on a project that was never saved it offers Close only.
“This project cannot be opened”
A file with the project extension that is not a FocusForge project.
The file you opened ends in .ffp but cannot be read as a project. The
message says why:
| Message | Meaning |
|---|---|
| “This file is not a FocusForge project.” | The file is something else that was given the .ffp name. |
| “The file was cut short — it ends before the project does.” | The file is incomplete, for example after an interrupted copy or a full disk. |
| “The project file is damaged: part of its saved history no longer reads back as it was written.” | The file was changed or corrupted after FocusForge wrote it. |
| “The file could not be read: …” | The system refused to read it; the rest of the message gives the reason (a missing permission, for example). |
Click Close or press Escape. If you still have the frames, open their
folder and fuse again: that makes a new project. A project written by an
older FocusForge that lacks records the current version needs is refused
the same way, and re-fusing its frames makes a current project. A RAW
project saved by an older FocusForge, which kept a clipped result, shows the
“damaged” message too; open the RAW frames and fuse again.
Damaged or moved projects
A project file remembers which frames it was made from: by where they were, and by a fingerprint of their content. When you reopen a project, FocusForge checks both. If the frames have moved or changed since, one of two dialogs appears.
“The frames are no longer there”
A project whose frames were moved or deleted.
The project opens, but some or all of its frames cannot be found where it recorded them. The dialog counts them, for example “A project remembers its frames by path. 3 of 3 cannot be found in this location.”, and explains what still works: “History and Z-Map are complete. Fused results still show; edited checkpoints and re-fusing need the frames.”
- Click Locate frames… and choose the folder the frames are in now.
- Click Close to keep working without them. You can still look at the fused results. In the Images list, each missing frame reads “Source missing”, and the left pane reads “Cannot show this frame:” with the file name. The projects overview shows the project with a “Sources missing” card, whose Locate frames… you can use later.
“The source frames are not the same”
A project whose frames were changed or replaced.
Files with the right names are where the project expects them, but their content is not what the project was made from: they were edited, re-exported or swapped for other frames. The dialog reads “The project was made over 3 frames. The frames in this location give a different fingerprint.” and warns why that matters: the project’s Z-Map records, for every pixel, which frame it came from by that frame’s place in the row. If the row is wrong, every retouch points at the wrong frame.
| Button | What happens |
|---|---|
| Locate frames… | Choose the folder holding the original frames. “Finding the original frames again opens the project unchanged.” |
| Open anyway | Opens the project with the frames as they are now. Use it only if you know the frames still match (for example, you only changed their metadata). |
| Cancel (or the x) | Nothing opens. |
Locate frames…
Locate frames… opens a folder chooser. FocusForge accepts the folder only when its files have the names the project recorded and their content matches the recorded fingerprint, so a folder of different frames with the same names cannot slip in. When the folder fits, the project opens unchanged (or its missing frames come back) and you can retouch and fuse again.
When it does not fit, a dialog titled “These are not the project’s frames”
says why, for example “3 of 3 cannot be found in this folder” or “2 of 3
frames in this folder differ from the ones this project was made over”.
Click Close or press Escape, then try another folder.
Note: If you press Fuse stack on a project whose frames are gone, the fuse does not start. A dialog names the missing file: “… is no longer on disk. This project cannot be fused again until it is back.” Put the frames back, or use Locate frames… on the project’s “Sources missing” card in the projects overview.
The command-line side of damaged projects (accepting changed frames, exit codes) is in Troubleshooting.
What the bottom bar shows during a fuse
While the run is going, the toolbar shows Pause and Cancel, the tab shows a small play mark, and the Images list and Settings tab are dimmed: they apply to the next fuse, not the running one. The bottom bar shows what the run is doing:
| Stage | What happens | Step shown |
|---|---|---|
| Developing | Reads each frame of a camera RAW, JPEG, 8-bit TIFF, or compressed or tiled TIFF stack once, before anything else (RAW frames are developed here). A stack of only uncompressed 16-bit TIFF frames, in strips and without a rotation tag, skips this stage | “3 of 8” (frames done) |
| Preparing | Measures each frame’s brightness and evens out exposure differences between frames | A count that rises to its total (frames for camera RAW, steps for TIFF and JPEG): “3 of 8” |
| Aligning | Alignment: shifts, scales and turns the frames so they line up | “5 of 8” (frames done), or “from cache” when an earlier run’s alignment of the same frames is reused |
| Fusing | Picks the sharpest parts of every frame and blends them into the composite | Pieces of the picture done, for example “12 of 64 tiles” |
| Writing | Stores the finished result | — |
A stage is skipped when its setting is off; Stacking settings and Alignment say which.
Tip: You can pan, zoom and look at frames while a fuse runs. The fuse slows down a little while you do, so the view stays smooth.
When some frames could not be aligned
When every frame lined up, the result is kept straight away. After a fuse in which some frames did not line up, FocusForge still fuses them, as they were shot, and then asks whether the result is worth keeping:
The question after a fuse in which two frames could not be aligned.
The dialog names the frames, for example “00.tif and 02.tif could not be aligned and were fused as they are.” (past five names it counts the rest). A frame that did not line up can leave a double edge or a soft patch where it contributed, but often the result is fine, especially when the frame was barely out of place.
- Click Keep to keep the result. It becomes a checkpoint, the bottom bar reads “fused” with the time (for example “fused 16:34”), and the window switches to the editor so you can look at it closely. A notification records how many frames stayed unaligned, for example “2 frames unaligned” with the message “Kept the fused result with 2 frames unaligned.”
- Click Discard to throw it away. Nothing is added; the tab is back to “No job running” and “Not fused yet”, ready for another try with other settings (see Alignment).
The question belongs to its tab: it shows only while that tab is selected,
and until you answer it, clicking other tabs or Projects does nothing.
It has no x and Escape does not close it; you choose one of the two.
Every fuse you keep adds another checkpoint, so you can fuse again with other settings and compare. A fuse with alignment switched off (the Enabled switch under ALIGN in the Settings tab) is always kept without the question.
Warning: A kept result lives in the tab until you save the project; the tab’s UNSAVED chip reminds you. Save with
Ctrl+Sbefore you close the window; see Checkpoints and saving.
Pause, resume and cancel
You can stop a running fuse at any time from the toolbar.
A paused fuse: Resume takes the place of Pause.
- Pause holds the run at the next frame or step it finishes. The button turns into Resume, the bottom bar reads “Paused”. A paused run keeps everything it has done so far.
- Resume carries on where the run stopped.
- Cancel stops the run, paused or not. A greyed-out Cancelling… button shows for a moment, then Fuse stack comes back. Nothing is written and earlier checkpoints are untouched. The projects overview keeps a “Cancelled” card (“You stopped this one. Nothing was written.”) with a Run again button; see Projects, notifications and quitting.
Fuse several stacks: the queue
FocusForge fuses one stack at a time. If you press Fuse stack on another tab while a fuse is running, that tab waits in line:
- Before you press it, the button on the waiting tab already reads Queued, as a hint that it will not start at once.
- Once pressed, the tab shows a … mark, the bottom bar reads its place in line, for example “Queued (2)” (the running fuse counts as 1), and the toolbar offers only Cancel.
The second tab waits while the first one is fused.
The waiting tab starts on its own as soon as the running fuse has finished, also when the finished one is waiting for its Keep or Discard answer. To stop both, cancel the waiting tab first: cancelling the running one lets the next in line start.
When a fuse fails
A fuse can fail, for example when a frame’s file is damaged. The run then stops and says so:
A fuse that failed because one frame’s file is cut short.
- The bottom bar reads “Failed”, in red.
- Retry takes the place of Fuse stack. It starts the same fuse again.
- A notification names the step that failed: “Setup failed” (the frames or the settings could not be used), “Alignment failed”, or “Preparing failed”, “Fusing failed”, “Developing failed” or “Writing failed”. Its message opens with a sentence naming the unreadable file, for example “02.tif could not be read. It may be damaged, or it changed after the folder was opened.”, followed by the reason on the next line. The project’s card reads, for example, “FAILED WHILE ALIGNING”. The notification shows as a short pop-up message while the window is in front, and stays in the notification center behind the bell, where its full message names the file and the reason.
- The projects overview shows the project with a “Did not stack” card.
A full disk is one cause of “Setup failed”. Before the first stage starts, a
fuse checks that the volumes it writes to have room for the run, and refuses
when one does not. The full message then reads, for example,
“<dir> has N bytes (X GB) free, but the run needs M bytes (Y GB)
there”, with one such sentence per volume, joined by “; “. Free space on that
volume, or choose a folder on a volume with more room, then press Retry.
Retry only helps when the cause was passing (a network drive that was briefly away, for example). For a damaged frame, look for a frame row that reads “Preview unavailable” in the Images list, exclude or remove that frame (see The Images panel) and fuse again.
Note: If the graphics device the window uses disappears (a driver reset, a GPU unplugged), the canvas stops updating and the window closes itself a moment later rather than hanging. See Diagnostics and crash reports for where that is logged.
Starting from a terminal
focusforge-gui opens the window; with --open it opens a folder or a
project straight away:
focusforge-gui --open path/to/frames/
A folder proposes stacks exactly as New project does, and opens each
stack as its own tab (after asking, if there are several); a .ffp path
reopens a saved project. --open can be given more than once: each path is
opened in turn, the next one waiting for the one before it to finish. A path
that fails to open shows the same dialog as in the window, rather than
closing it. Paths without --open are accepted too, so
focusforge-gui frames/ other/ opens like a drop of those paths; this is what
a file manager’s “Open with” passes.
Other options start the window in a chosen state; focusforge-gui --help
lists them all.
| Option | Effect |
|---|---|
--fuse-tabs 0,1 | Selects those tabs in turn and presses Fuse stack on each once --open has loaded, so give one --open <folder> per stack (a folder that reads as several stacks first asks how to split it, and until that is answered no tab exists for the option to select). An index repeated, as in 0,0, waits until the earlier run has settled and its Keep or Discard question is answered. |
--projects-overlay | Opens the projects overview. With --open it stays open after the load lands; with --fuse-tabs it opens once the last run settles. |
--toolbar-state idle|running|paused|cancelling|failed | Shows that transport state in the toolbar until a real run starts. |
--save-folder <DIR> | Writes every project save and image export into this existing folder under its proposed name, with no save dialog. A file appears under its final name only once it is complete; a write cut short leaves a .partial file. Closing the window waits for an export that is still writing. A folder that is missing or not writable refuses the launch (exit 2). Frames given as paths open as one stack, so a program that launches the window can read its results from this folder once the process exits. |
--settings-section <TAB> | Opens the settings window on that tab (performance, appearance, storage, input-map, diagnostics or about); see The settings window. |
--config-dir <DIR> | Reads and writes <DIR>/focusforge/settings.toml instead of the settings file in your user folder; see The settings window. |
The remaining options in --help (screenshots, previews, slowed runs and the
like) exist for checking the window’s own behaviour and are not needed for
everyday work.
The window
This chapter is a guided tour of the FocusForge window: what each area is for, how to move around a picture, how to keep several stacks open at once and how to give one image its own window on a second screen. It assumes you have opened a stack at least once; if not, start with Your first stack.
The frame list on the right has a chapter of its own, The Images panel.
The window at a glance
Two projects open as tabs; the active one has already been fused.
Going round the window clockwise from the top left:
| # | Where | What it is |
|---|---|---|
| 1 | Top left corner | Projects button (four small squares): opens the projects overview, where every open project is a card. |
| 2 | Top edge | The tab strip: one tab per open project, then a + tab for opening another. |
| 3 | Top right corner | Minimize, Maximize and Close for the whole window. |
| 4 | Below the tabs | The toolbar. In stacking it holds Fuse stack and, during a run, Pause and Cancel; in the editor it holds the function bar: the Brush and Pipette chips, undo, redo and Save checkpoint. |
| 5 | Middle left | The Frame pane. Its label shows the file name of the frame you selected, here 02.tif. |
| 6 | Middle right | The Composite pane: the fused result, once there is one. |
| 7 | Right edge, top | The STACKING / EDITOR switch. |
| 8 | Right edge | The CHECKPOINTS list with the Export image button. |
| 9 | Right edge, lower half | The Images and Settings tabs of the dock, with the frame list showing. |
| 10 | Bottom edge | The bottom bar: what the window is doing, the progress of a run, the Overlay switch and the zoom controls. |
| 11 | Left edge, bottom | The Notifications bell and the Settings gear, which opens the settings window. |
The sections below take these areas one at a time.
Tabs: one project each
Every stack you open becomes a project in its own tab. A tab shows the project’s name and, on the right, an x that closes it. Next to the name you may see:
- UNSAVED — the project holds something that is not written to a project file. See Checkpoints and saving.
- A small play mark while that tab’s stack is being fused, and a … mark while it waits in line behind another tab’s run. The UNSAVED chip comes back once the run has finished.
The last box in the strip, +, is a tab of its own, as the screenshot at the top of this chapter shows: click it to get the empty start page with Open…, pictured in Opening and fusing in detail, from which you open another stack. When there are more tabs than fit, arrows appear at the ends of the strip to scroll through them.
The tab strip is also the window’s title bar: drag an empty part of it to move the window.
Work on two projects at once
Each tab keeps its own frames, its own selected frame, its own settings, its own checkpoints and its own zoom. Switching tabs never mixes them up.
- Open the first stack, then open a second one (with + and Open…, or by dropping a folder onto the + tab).
- Click a tab to bring it to the front. The dock, the panes and the bottom bar now show that project only.
- Click the other tab to go back. The frame you had selected there is still selected, and the view is where you left it.
The screenshot above shows the same stack open twice: once as a saved,
fused project (mantis-512-fused) and once freshly opened (frames, still
UNSAVED). The tab title is the project’s name; when two folders have the
same name, the header of the frame list (for example “8 frames · 0
excluded”) is a quick way to tell the tabs apart.
Tip: Fusing runs one tab at a time. If you press Fuse stack on a second tab while the first is still fusing, the second waits in line and starts on its own when the first is done.
For an overview of every open project as cards, and for closing tabs and quitting, see Projects, notifications and quitting.
The toolbar
The toolbar changes with what you are doing:
- In stacking, it holds Fuse stack. While a run is going, the button becomes Pause and Cancel, and Resume once paused; a failed run offers Retry. Opening and fusing in detail walks through a run.
- In the editor, it holds the function bar: the Brush and Pipette chips, which open the brush settings and the pipette, then undo and redo and Save checkpoint. See Retouching.
The two panes
The canvas in the middle of the window shows two images side by side:
- The Frame pane (left) shows one source frame: the one selected in the
Images panel. Its label is the frame’s file name, for
example
00.tif. Click another row in the list to look at another frame. A click on a result in the Images panel’s Results group puts that earlier result here instead. - The Composite pane (right) shows the composite, the fused result. Before the first fuse it shows “Not fused yet” and “Fuse stack builds the composite here.” After a fuse it shows the checkpoint selected in CHECKPOINTS.
While a run is live, the Composite pane shows what it is doing instead of the “Not fused yet” card: “Preparing frames” while frames are developed and aligned, “Alignment reused” when the cached alignment serves, the aligned frame as alignment proceeds, a card named “Fusing” (“The result builds here tile by tile.”) until the first tile is fused, and then the result growing tile by tile with its tile grid. A sharpness inset shows where each frame is sharp as the result grows; it fades out two seconds after the last tile, and the finished result crossfades in. Pause keeps the view, Cancel returns the pane to “Not fused yet”, and Discard removes the run’s view along with its result. Each tab keeps its own view, and a Composite pane in its own window shows the same card. The inset is switched off under Sharpness heatmap in Appearance.
A run in progress; the Composite pane shows the card “Preparing frames” until the first frame is aligned. The growing picture passes in a few seconds on a small stack and is not shown here.
The two panes always show the same part of the picture at the same zoom: pan or zoom in one, and the other follows. That makes it easy to compare a detail in one frame with the same detail in the result.
While you zoom out or pan quickly, each pane first shows a coarse version of the whole image and sharpens it a moment later, so you never see empty edges.
The dock
The dock of a fused project, in stacking.
The dock runs down the right side of the window. From top to bottom:
-
STACKING / EDITOR. The two halves switch between preparing and fusing a stack (STACKING) and retouching its result (EDITOR). EDITOR stays dimmed until the tab holds a fused result. After you keep a fuse the window changes to the editor by itself; click STACKING to get the frame list and the settings back. See Retouching.
-
CHECKPOINTS. Every fused or retouched result you kept, newest first, named after the fusion method and the time. Before the first fuse it reads “None yet — fuse a stack”. Click a row to show that result in the Composite pane. Export image saves the checkpoint selected in CHECKPOINTS as a TIFF, PNG or JPEG file, or as a DNG file for a project stacked from camera RAW files. See Checkpoints and saving and Exporting an image.
-
Images and Settings. Two tabs that share the lower part of the dock:
- Images lists the frames of the stack, below your earlier results once there is a checkpoint. See The Images panel.
- Settings holds everything the next fuse on this tab will use. See Stacking settings.
In the editor, these two tabs give way to a list of results and frames for choosing what the brush paints from (see In the editor).
While a tab’s stack is being fused, its Images and Settings tabs are dimmed: you can look, but changes wait until the run is over. With no project open (the + tab), the dock reads “No project open.”
The bottom bar
The bottom bar while a stack is being aligned.
From left to right:
- Status. “No project open” on the + tab, “No job running” when nothing is happening, the current stage while a stack is fused (for example “Aligning”), and “fused” with the time once a run you kept has finished.
- Progress. During a run: frames done (such as “3 of 8”) and a progress bar. Opening and fusing in detail explains the stages.
- Overlay. A switch and a strength slider for the Z-Map overlay; see See where each pixel came from.
- Zoom. Zoom out, the zoom readout, Zoom in, and Fit; see the next section.
Zoom and pan
The zoom controls sit at the right end of the bottom bar.
| Control | What it does |
|---|---|
| Fit | Shows the whole picture in both panes. The readout then shows the fit zoom, for example “90.2 %”. |
| Zoom in | One step closer, about the middle of the view. |
| Zoom out | One step back, about the middle of the view. |
| Readout | The current zoom in percent; “—” when no project is open. 100 % means one image pixel per screen pixel. |
Zoom moves along fixed steps. Below the fit zoom there is exactly one step, half of it, which shows the picture smaller with dark space around it. Above the fit zoom the steps are 100 %, 150 %, 200 %, 300 %, 400 % and 500 % (those that are larger than the fit zoom). 500 % is the top: Zoom in does nothing more there, and Zoom out does nothing more at half the fit zoom. A very small image that already fits at more than 500 % cannot be zoomed in at all.
Fit, then Zoom in three times: both panes at 300 %, showing the same spot.
With the mouse:
- Scroll wheel: zooms in or out at the pointer, so the spot under the pointer stays put. This is the quickest way to inspect a detail.
- Middle-button drag, or hold Space and drag with the left button: pans the picture. Both panes move together.
- Shift + scroll wheel: pans sideways (in the editor, it changes the brush size instead).
Click Fit at any time to get the whole picture back.
Step through the frames from the canvas
- Ctrl + scroll wheel over the canvas steps to the previous or next row of the Images list and shows it in the Frame pane, without reaching for the list. Earlier results are rows too. A plain scroll over a row of the list does the same.
- Alt + click on the composite selects the frame that pixel came from, so the Frame pane shows the source of that spot. This needs a fused result.
See where each pixel came from
After a fuse, FocusForge knows which frame each pixel of the result was taken from. That record is the Z-Map. The Overlay switch in the bottom bar paints it over the Composite pane, one colour per frame. The colours are the same ones the Images panel shows next to each frame name.
The overlay on at 65 %: each colour marks the frame that part of the result came from.
- Make sure the tab holds a fused result. Before the first fuse, the Overlay switch and its slider are dimmed and do nothing.
- Click the Overlay switch. Its knob moves to the right and the composite is tinted.
- Drag the slider beside it to change how strongly the colours cover the picture. It starts at 65 %; the percentage is shown next to it.
- Click the switch again to turn the overlay off. The slider greys out but keeps its position for next time.
Use it to check a fuse. Along the subject, each colour should cover the part of it that was sharp in that frame. A colour you did not expect on a fine edge points at a frame worth a closer look. Speckled patches in a smooth, blurred background are normal: no frame is sharp there, so the choice between them hardly matters. The overlay only tints the view; it is never part of a saved project’s image or an exported file. The Frame pane is never tinted.
Tip: In the editor the same colours tell you which frame your brush paints from. See Retouching.
Put a pane in its own window
On a second monitor it can help to see the source frame and the result at full size each. Either pane can move into a window of its own.
- Click the small square icon with four corner marks at the top right of a pane (Undock pane; resting the pointer on it shows that name).
- A second window opens with that pane. Its title bar reads “FocusForge — Frame” or “FocusForge — Composite”.
- The other pane now fills the whole canvas of the main window.
The main window keeps the Composite pane; its undock icon is hidden while the other pane is out.
The Frame pane in its own window. The icon at the top right brings it back.
Both windows still show the same part of the picture at the same zoom; when their shapes differ, the spare space stays black. Drag the second window by its title bar, and minimize or maximize it with the buttons at its top right.
To bring the pane back, either click the icon at the top right of its pane (Dock pane, also named when the pointer rests on it) or close the second window with its x. The main window shows both panes again.
Note: Only one pane can be in its own window at a time. While one is out, the other pane’s undock icon is hidden rather than dimmed.
On Linux, the second window uses X11 or XWayland when DISPLAY is set,
otherwise native Wayland when WAYLAND_DISPLAY is set.
Keyboard and mouse bindings
The canvas responds to these inputs by default:
| Input | In stacking | In the editor |
|---|---|---|
| Scroll wheel | Zoom at the pointer | Zoom at the pointer |
| Ctrl + scroll wheel | Previous / next result or frame | Previous / next result or frame |
| Shift + scroll wheel | Pan sideways | Brush size |
| Middle-button drag, or Space + left drag | Pan | Pan |
| Alt + left click | Select the frame under the pointer | Select the frame under the pointer |
| Left drag | — | Paint |
| Ctrl + Z / Ctrl + Shift + Z | — | Undo / redo |
The settings window’s Input map section lists the bindings in effect (see Input map); you can change them in the settings file, as described in Keyboard and mouse bindings.
A few keys are fixed and work anywhere in the window:
| Key | Does |
|---|---|
| Ctrl + N | New project (asks for a folder) |
| Ctrl + O | Open a project file |
| Ctrl + S | Save the project |
| Ctrl + W | Close the project in the active tab |
| Escape | Closes the dialog in front, otherwise the projects overview, the step calculator or Analytics, and closes the settings window |
| Up / Down | Select the previous / next row (results and frames), when the frame list has the keyboard focus (click a row first) |
While the settings window is open, the main window behind it does not react to clicks or zoom; close the settings window first.
Note: The window stays responsive while it loads frames, saves or blends a brush stroke. While you pan, zoom or paint, a running fuse briefly slows down so the view stays smooth, and picks up speed again a quarter of a second after you stop.
Plan a stack with the step calculator
The Step calculator button at the top of the icon bar, on the left edge of the window, opens the calculator over the canvas. It works with or without a project. The toolbar, the dock and the bottom bar stay visible.
The Step calculator with its default values.
The drawing stays centred in the overlay and grows with the window, up to a limit; the boxes keep their size.
The Optics switch at the top left chooses what the lens is described by: Lens (f-stop) or Objective (NA). The boxes on the illustration take the values of your setup:
- Time per frame (s)
- Magnification (x), hidden while Objective (NA) is chosen
- f-stop, or the numerical aperture with Objective (NA)
- Overlap (fraction of the depth of field)
- Depth range (mm)
The plan updates on every keystroke. A comma works as the decimal point. To replace a value, clear the box first, then type the new one. A box holding a value that is out of range or is not a number shows a line of text under it. The calculated values keep the last valid plan until the box is fixed.
The SUMMARY band repeats the plan in two rows. ENTERED lists your values. CALCULATED lists the numerical aperture (with the lens only), the depth of field, the step between frames, the number of frames and the total duration of the shoot.
To close the calculator, click the Step calculator button again, click Close at the top right of the overlay, or press Escape. Only one full-canvas overlay is open at a time: opening the projects overview, the notification center or Analytics closes the calculator.
Count the sharp areas of each frame
The Analytics button sits under the Step calculator button in the icon bar. It opens Analytics over the canvas for the frames of the selected tab. With no project open, Analytics says “No stack loaded” and asks you to load a stack to count its sharp areas; opening a stack starts the count.
Analytics for the eight frames of the mantis stack, with 03.tif selected. This small sample has few sharp areas, so most segments are pale and read 0 %.
At the top, the SHARPNESS OVERLAP bar shows how much neighbouring frames agree on where the sharp areas are; see Check the overlap between neighbouring frames. Below it, the heading SHARP AREAS PER IMAGE is followed by the line “Image areas that are sharpest in this image”. Each frame has one row, in the order of the frame list (excluded frames are listed too):
- the frame’s colour chip,
- its file name,
- a bar, as long as the frame’s count compared with the largest count; all bars stay empty when every count is 0,
- the count itself: the number of image areas where this frame is the sharpest.
While the counting runs, every frame is already listed. A row whose count is not final shows a bar and a turning marker in place of its count: the bar sweeps until the first results arrive, then fills as the counts grow, and the marker stays until the count is complete. If the count fails, the rows give way to the red heading “Counting failed” and the error message. The count starts in the background as soon as a stack is loaded, and closing Analytics does not stop it. It waits while a stacking or export job runs, pauses while you scroll through camera RAW frames in the editor, and starts over when the stack’s frame list changes.
Pick a frame in Analytics
Click a frame’s row, or its number under the SHARPNESS OVERLAP bar (the tick above the number and the gap between two segments work too). The frame is selected as if you had clicked it in the frame list, so in the editor it also becomes the brush source. Analytics stays open; close it to look at the frame. A white line with a small triangle on the bar, and a tinted row, mark the selected frame. A click inside a segment selects nothing, and the bar takes no clicks until the count is complete.
Check the overlap between neighbouring frames
The SHARPNESS OVERLAP bar sits above the rows, with the caption “Share of sharp areas that neighbouring images have in common”. It has one segment for each pair of neighbouring frames in the list, so eight frames give seven segments, with the image numbers 1 to 8 under the bar. A segment’s colour goes from red through amber to green, and a legend at the right of the caption reads 0 %, 5 % and 20 %+. The whole-percent figure on a segment is the share of sharp areas that the two frames have in common.
A low share between two neighbours can mean the focus step between them was too large and nothing is sharp in both: a focus gap that the fused result cannot fill. Shoot the stack again with a smaller step, or add a frame there (see Shooting practice).
- A segment shows “–” and is hollow when neither of the two frames has a sharp area.
- A pale segment means fewer than 10 sharp areas in the two frames together, so the share is not reliable.
Rest the pointer on a segment to read it. The first line names the pair, for example “Images 3 and 4 · 02.tif, 03.tif”, and the second line reads one of:
| Second line | Meaning |
|---|---|
| “N % of their sharp areas overlap” | Normal. |
| “N % – likely a gap in focus here” | The share is under 5 %. |
| “N % – too few sharp areas to be sure” | The pale case above. |
| “No sharp areas in either image” | The hollow case above. |
With a single frame there is no neighbour, and no bar is shown.
The same numbers are available from a terminal. sharp-areas prints the
counts and the overlap of each pair of neighbours:
focusforge-cli sharp-areas path/to/frames/
sharpness-map writes one map per frame, all on one scale, so that the same
value means the same sharpness in every map:
focusforge-cli sharpness-map path/to/frames/ --out maps/
Add --composite <image> to map a fused image on the same scale. See
sharp-areas and
sharpness-map in the command-line
reference.
To close Analytics, click the Analytics button again, click Close at the top right of the overlay, or press Escape. As with the step calculator, opening another full-canvas overlay closes it.
To open Analytics when the program starts, add --analytics to the folder
you open:
focusforge-gui --open <folder> --analytics
Where to find the rest
Earlier versions of this page also described launching, fusing, saving and the settings window. Those topics now have chapters of their own:
Launch options
Opening folders and projects, the empty start page, dropping files and the
focusforge-gui start-up flags: Opening and fusing in detail.
Fusing a stack
Fuse stack, the run’s stages, Pause, Cancel, Retry and the Keep or Discard question: Opening and fusing in detail.
Settings
The dock’s Settings tab (PREPARE, ALIGN, FUSE, FINISH): Stacking settings and Alignment.
Retouching a result
The editor, the brush and the pipette: Retouching.
Saving a project
Checkpoints
The CHECKPOINTS list, Save project and the UNSAVED chip: Checkpoints and saving.
Exporting an image
Export image and its dialog: Exporting an image.
Switching between projects
The projects overview, closing a tab and quitting with unsaved work: Projects, notifications and quitting.
Notifications
The bell, the notification center, pop-up messages and desktop banners: Projects, notifications and quitting.
The settings window
Performance, Appearance, Storage, Input map, Diagnostics and About: The settings window.
The settings file
The settings.toml file behind them, and how to use another one:
The settings file.
The Images panel
The Images panel is the frame list in the lower half of the dock. It shows every frame of the stack in the order FocusForge fuses them, and it is where you decide which frames take part: look at a frame, leave it out of the next fuse, remove it, sort or reorder the list, and add more frames.
To see it, click STACKING at the top of the dock (if the window is in the editor) and then the Images tab. The rest of the dock is described in The window.
The frame list
The List presentation, with 03.tif excluded from the next fuse.
At the top, the header counts the frames and how many of them are excluded, for example “8 frames · 1 excluded” (“1 frame” for a single frame). At its right end are two small icons: Add images (a folder with a plus) and Sort (two arrows, up and down).
Each row below stands for one frame:
- A colour. Every frame gets its own colour, running through the rainbow from the first frame to the last. The same colours mark the frames in the Z-Map overlay and in the editor, so you can tell at a glance which frame a part of the result came from.
- The file name, for example
00.tif. A name too long for the row is cut short; rest the pointer on it to read the whole name. - The capture time recorded by the camera, as a time of day. Frames without a recorded time show “—”.
The frames are listed in fuse order: the top one is the first frame FocusForge fuses. Once the project has a checkpoint, a Results group appears above them (see Look at an earlier result).
Note: A row whose file is no longer on disk is greyed out and cannot be selected. In the presentations with pictures it reads “Source missing”. See Checkpoints and saving for finding moved frames.
Look at a frame
Click a row. The Frame pane on the left of the canvas shows that frame, and its label changes to the file name. The selected row is tinted in its own colour.
Other ways to step through the list, results included:
- With the list focused (click a row first), press Up or Down.
- Scroll the mouse wheel over a row of the list.
- Over the canvas, Ctrl + scroll wheel steps to the previous or next row.
Look at an earlier result
The Results group lists your checkpoints that line up pixel for pixel with the current one, with the same labels and “hidden” line as in the editor.
- Click a result, or step onto it with Up or Down. The Frame pane on the left shows it, and its label reads “Checkpoint · “ with the method and the time. Resting the pointer on the row reads “Show on the left”.
- To see a frame again, click a frame.
An earlier result on the left, the selected checkpoint on the right.
A result often appears soft first and turns sharp a moment later, when its full picture has loaded; your zoom and position stay as they are. Sometimes, for example just after you open a project, the pane is empty for a moment instead. Results you have already looked at stay ready for a quick revisit while the project’s tab is open. FocusForge keeps temporary files for them in the Scratch folder. If the pane reads “Cannot show this checkpoint:” instead, see Troubleshooting.
This only changes what you see. The Composite pane keeps showing the checkpoint selected in CHECKPOINTS, and Export image and the editor keep working on it. A click in CHECKPOINTS leaves the result on the left. To work on the other result, click it in CHECKPOINTS (see Go back to a checkpoint).
The result stays on the left in the editor, where the brush paints from it (see Paint from an earlier result).
Click the Results heading, or the frames heading below it, to fold or unfold that group.
Leave a frame out of the next fuse
A frame that is shaken, overexposed or simply not needed can be excluded. It stays in the list, so you can bring it back at any time.
- Rest the pointer on the row, or click it. In place of the capture time, two icons appear: an eye (Exclude) and a red trash can (Remove).
- Click the eye. The row’s name and colour are dimmed, the icon becomes a crossed-out eye, and the header counts one more excluded frame.
- To bring the frame back, click the crossed-out eye (Include).
The next Fuse stack on this tab leaves excluded frames out. Excluding never asks a question, not even when the project already has checkpoints: it changes nothing until you fuse again.
Remove a frame
Removing takes a frame out of the project entirely. The file on disk is not touched.
- Rest the pointer on the row, or click it.
- Click the red trash can (Remove).
Before the project’s first checkpoint the frame is removed at once, without a question.
When the project already has a checkpoint
Once you have kept a fuse, the project’s checkpoints were made from the current frames. Removing a frame then means fusing the whole stack again, so FocusForge asks first:
Removing a frame from a project that already holds a checkpoint.
| Button | What happens |
|---|---|
| Cancel (or the x at the top right, or Escape) | Nothing changes. The frame stays. |
| New project instead | This project stays exactly as it was and a new tab opens with the same frames and settings but no checkpoints; remove the frame there. |
| Exclude instead | The frame stays in the list but is excluded from the next fuse. No new fuse starts. |
| Remove and re-fuse | The frame is removed and the whole stack is fused again from scratch. When the run ends you get the usual Keep or Discard question; keeping adds a new checkpoint. Your earlier checkpoints all stay. |
Tip: If you only want to try the stack without a frame, Exclude instead is the quick, reversible choice.
Sorting, reordering and adding frames ask the same kind of question once a checkpoint exists; see below.
Sort the frames
Click Sort (the up and down arrows) in the header. A small menu opens:
The sort menu after sorting by name.
- Name sorts the frames by file name.
- Capture time sorts them by the time the camera recorded. Frames without a capture time go to the end, in their current order.
The line you chose last carries a check mark (✓). Click Sort again to close the menu without choosing.
Reorder by dragging
You can put the frames in any order by hand.
- Press on a row’s file name; in the presentations with pictures you can also press on the picture.
- Drag the row up or down. A line between the rows shows where it will land. Near the top or bottom edge, the list scrolls by itself.
- Release. The frame moves to its new place.
A manual reorder clears the check mark in the sort menu, because the list is no longer sorted by name or time. Choose Name again to restore the file name order.
Tip: The colours follow the list order, from red for the first frame to magenta for the last. With the frames in focus order, nearest to farthest, the Z-Map overlay reads like a depth map of your subject. Sorting by Name or Capture time usually gives that order; drag only to fix a frame that is out of place.
Add frames
There are two ways to add frames to the project in the active tab:
- Click Add images (the folder with a plus) in the header. Your system’s file dialog opens, titled “Add frames”; choose one or more TIFF, JPEG or camera RAW frames and confirm.
- Drop a folder or a set of TIFF, JPEG or camera RAW frames onto the window while the tab is open. They are added to this project rather than opened as a new one.
New frames are added at the end of the list, and the sort check mark is cleared. An empty list reads “No source images” and “Add images to begin.”, with an Add images button.
FocusForge compares the files’ contents with the frames already in the project. When a new file is identical to a frame that is already there, it asks “Replace 1 existing image?” (or “Replace 3 existing images?”), names those frames and notes “New images are added either way.”:
| Button | What happens |
|---|---|
| Cancel | Nothing is added. |
| Keep existing | The new, different frames are added; the existing ones stay as they are. |
| Replace | The new frames are added, and each matching frame is replaced by the new file. |
If the project already holds a checkpoint, the add then asks the question in the next section. If the add cannot happen, a notification says why: “No TIFF (.tif, .tiff), JPEG (.jpg, .jpeg) or camera RAW images to add”, “Cannot mix camera RAW and TIFF in one stack” (the kinds named are the ones the tab and your files hold), “Switch to Stacking to add images”, “Adding images waits for the run to finish” or “Still checking the last images added”.
Sorting, reordering or adding after a checkpoint
Like removing, these change the frames that the project’s checkpoints were fused from. With at least one checkpoint, each asks first:
| You did | Title | Buttons |
|---|---|---|
| Chose an entry in the sort menu | “Sort by name and fuse again?” or “Sort by capture time and fuse again?”, after the entry you chose | Cancel, New project instead, Sort and re-fuse |
| Dragged a row | “Reorder and fuse again?” | Cancel, New project instead, Move and re-fuse |
| Added frames | “Add frames and fuse again?” | Cancel, New project instead, Add and re-fuse |
The confirming button applies the change and fuses the whole stack again; your earlier checkpoints stay. New project instead leaves this project exactly as it was and opens a new tab, named after it with “ copy“ added, holding the same frames and the same settings but no checkpoints. Make your change there.
Choose how the list looks
The panel has three presentations. They show the same frames and work the same way; they differ in how much of each frame you see.
| List | Image list | Large previews |
|---|---|---|
List, Image list and Large previews.
- List shows one compact line per frame: colour, name and time. Many frames fit without scrolling.
- Image list (the default) adds a small preview of each frame on the left, with a colour bar above the name.
- Large previews shows each frame as a wide picture, with the colour, name and time on a line below it. Good for spotting a blurred or misframed shot.
While a preview is being made, its row reads “Loading…” or “Loading preview…”; a frame that cannot be shown reads “Preview unavailable”.
To switch, open the settings window with the gear at the bottom left, go to Appearance and pick List, Image list or Large previews under Presentation. The choice is remembered for the next start, and the editor’s frame list follows it too. See The settings window.
In the editor
In the editor the list becomes a legend with a Results group above it.
When you switch to EDITOR, the Images and Settings tabs give way to a version of the list for choosing what the brush paints from:
- The Results group comes first. It lists the earlier results that line up with the one you are editing, as rows of method and time. Clicking one shows it on the left and picks it as the brush source; it does not change the checkpoint you are editing. See Paint from an earlier result.
- The frames follow under a header that reads only the number of frames, for example “8 frames”.
- Each frame row shows the frame’s number in the stack (1, 2, 3 …) instead of its capture time. The colours match the Z-Map, so this list doubles as the legend for the overlay and the brush.
- Clicking a frame row selects that frame: it becomes the frame the brush paints from. See Retouching.
- There is no Add images, no Sort, no eye and no trash can, and rows cannot be dragged.
Click STACKING to edit the frame list again.
While a stack is being fused
During a run the panel is dimmed and its add and sort icons are gone.
While this tab’s own stack is being fused, the panel is dimmed and the Add images and Sort icons are not shown at all. Rows show no eye or trash can and cannot be dragged. You can still click a row to look at a frame. Everything comes back when the run is over.
Stacking settings
The dock’s Settings tab holds everything the next fuse of a project uses: how the frames are repaired and evened out in brightness, how they are lined up, which fusion method combines them and how the result is trimmed. The defaults suit most stacks, so you can fuse without ever opening this tab. When a result disappoints, this page tells you which setting to try and why.
The Settings tab of a freshly opened stack: every section at its defaults.
Open the Settings tab
- Open a folder of frames or a saved project (see Ways to open a stack).
- Make sure the dock’s mode switch at the top right reads STACKING. In the editor the tab is not shown.
- Click Settings next to Images in the dock.
The tab shows the settings of the project tab you are looking at. With no project open, the dock reads “No project open.” instead.
How the tab is laid out
The tab has four sections, in the order a fuse uses them:
| Section | What it does | What it holds |
|---|---|---|
| PREPARE | Repairs sensor defects and evens out the brightness of the frames before anything else | Brightness equalization and sensor defect removal |
| ALIGN | Lines the frames up so that the same detail sits at the same place in every frame | The alignment switch, method and settings |
| FUSE | Combines the frames into one sharp image | The fusion method and its settings |
| FINISH | Trims the result | Auto-crop |
A change applies to the next fuse of this project tab. Results you have already kept stay as they were; fuse again to see the effect (see Checkpoints and saving for how each result is kept).
The DEFAULT badge
A section’s heading carries an orange DEFAULT badge while you have not touched any of its settings. As soon as you change a value in a section, its badge disappears, so you can see at a glance where you have changed something.
- Setting a value back to what it was does not bring the badge back: the section still counts as changed. Only Reset All to Default does.
- In ALIGN, the Enabled switch counts: switching alignment off, or off and on again, removes the badge.
- Choosing another fusion method changes no value, so FUSE keeps its badge.
More…
Settings you rarely need sit behind a More… bar in each section. Click More… to open it; the arrow on the right points up while it is open. Click it again to fold it away. An open More… stays open when you choose another method and when you reset.
At first, PREPARE shows nothing but its More… bar, because all its settings live there.
Sliders, switches and menus
- Sliders. Click anywhere on the track to jump there, or drag the round
handle. The value at the right is plain text, not a field you
can type into; it always shows the step’s decimals (Max brightness gain
reads
1.20, Sharp-source preference4.0). After clicking a slider, the Left and Right arrow keys move it one step at a time (whole numbers step by one, the brightness sliders by their own step). The Epsilon (px) slider in ALIGN spans several powers of ten and has no keyboard steps. - Switches. Click to turn on (orange) or off (grey).
- Menus. Click the field to open the list, then click an entry. The current entry has a check mark; the grey text beside each entry is the name the command line uses for it.
The tab scrolls when it does not fit: use the mouse wheel over it or drag the scrollbar at its right edge. The heading of the section you are in stays at the top while you scroll.
PREPARE: repair defects and even out brightness
PREPARE with its More… bar open, at the defaults: equalization and defect removal are off.
Brightness equalization
The frames of one stack rarely have exactly the same brightness: a flash fires a little stronger or weaker, the lens lets in slightly less light as focus moves closer, mains light flickers. Fused as they are, such differences show as blotches where the result switches from one frame to another. Brightness equalization prevents that. With Equalize brightness on, FocusForge gives every frame one brightness factor (a gain) before aligning, the same on every colour channel, so that every frame reaches the same average brightness. It is off by default: turn it on for a stack whose frames differ in brightness.
| Setting | Range | Default | What it does |
|---|---|---|---|
| Equalize brightness | on / off | off | Gives each frame one gain so that all frames share one average brightness before they are aligned. |
| Max brightness gain | 1.01 to 2.00, in steps of 0.01 | 1.25 | Limits how much a frame may be brightened or darkened. 1.25 allows a frame to be made up to 1.25 times brighter or down to 0.8 times as bright (1 ÷ 1.25), about a third of a stop either way. |
| Target brightness (stops) | −0.5 to +0.5, in steps of 0.1 | 0.0 | Moves the shared brightness the frames are brought to. 0.0 keeps the frames’ average brightness; each stop doubles (+1) or halves (−1) it, so the range covers half a stop up or down. |
While the gains are measured, the bottom bar reads Preparing with a count that rises to its total, frames for camera RAW and steps for TIFF and JPEG, for example “3 of 8”. Fusing the same TIFF or JPEG frames again with the same two brightness settings reuses the measurement and skips this step.
Things to know:
- For camera RAW frames the gain corrects exposure in linear light, the way a change of exposure time would. For TIFF and JPEG frames it scales the pixel values as the files deliver them. Either way it does not touch your source files.
- With Equalize brightness off, the two sliders below it are greyed and have no effect. They keep their values, so switching equalization back on restores them.
- The gains a run used are stored with the project, so an exported image shows the equalized result.
When to change these settings:
- Switch equalization on for a stack whose brightness varies by accident. Small flash-to-flash variation, the slight darkening of a focus-ring stack and mild flicker are exactly what it is for.
- Leave it off when the frames already match, when the brightness change between frames is intended, or when you have matched the frames in another program and want them fused exactly as they are.
- Raise Max brightness gain when FocusForge reports that a frame was held at the limit (see below) and you know that frame is only somewhat darker or brighter. Do not use it to rescue a frame that is far off, such as one whose flash did not fire: leave that frame out with Exclude in the Images panel instead.
Equalization switched on, with the target moved to −0.2.
Set a brightness target
Target brightness (stops) lets you make the whole stack a little brighter
or darker as part of the fuse, for example when every frame came out slightly
underexposed. The slider reads with a sign: −0.2, 0.0, +0.3. It snaps to
tenths of a stop, and the arrow keys move it by 0.1 up to the ends at −0.5
and +0.5.
Tip: The target and the gain limit work together. With the default Max brightness gain of 1.25, no frame can move by more than about a third of a stop, so a target of
+0.5cannot be reached and every frame is held at the limit. To move the stack by half a stop, raise Max brightness gain to about 1.45 or more.
A brightness change made here is modest by design. For larger corrections, adjust the exported image in your photo editor.
When a frame needs more than the limit
A frame that would need a larger gain than Max brightness gain allows is
brightened or darkened only up to the limit. After the run, FocusForge reports
it in a notification titled “Brightness not fully matched”, naming the frame
in the sentence “<file> could not be brought to the same brightness as the
other frames.” The notice names the frame only. See
Projects, notifications and quitting for where notifications
appear.
The result is still usable: only that frame stays a little brighter or darker than the rest. If you see blotches where it contributed, raise Max brightness gain and fuse again, or exclude the frame.
Remove sensor defects
A sensor can have stuck, hot or dead pixels: points that show the same wrong colour in every frame. Because they sit at the same place in each frame, they survive fusing as a fixed speck. With Remove sensor defects on, FocusForge replaces each such pixel with a value worked out from its neighbours, before the frames are aligned. Your source files stay as they are.
| Setting | Range | Default | What it does |
|---|---|---|---|
| Remove sensor defects | on / off | off | Repairs the defective pixels in every frame. |
| Find hot pixels | on / off | on | Looks for pixels that differ from their neighbours at the same position in more than half the frames. Only used with the switch above on. |
| Hot pixel threshold | 2 to 50 | 7 | How far a pixel must stand out to count as hot. A higher value finds fewer. Only used while Find hot pixels is on. |
| Grow defect mask | 0 to 16 pixels | 0 | Widens every spot of a defect mask file by this many pixels. Only used with a defect mask file, which you give on the command line (see Remove sensor defects from the command line). |
For colour camera RAW frames FocusForge also repairs the four neighbours of each hot pixel, because developing the picture spreads the defect to them.
ALIGN: line the frames up
ALIGN moves every frame so that it lines up with one reference frame before fusing, correcting drift and the change in image size as focus moves. It is on by default.
| Setting | Range | Default |
|---|---|---|
| Enabled | on / off | on |
| Algorithm | Pyramidal ECC | Pyramidal ECC |
| Mode (under More…) | Translation only, Rotation + Scale | Rotation + Scale |
| Max Iterations (under More…) | 1 to 1000 | 400 |
| Epsilon (px) (under More…) | 0.000000001 to 1 | 0.0001 |
| Pyramid Depth (under More…) | 0 to 16 | worked out from the frame size |
| Reference Policy (under More…) | Anchor, Chain | Chain |
| Reference Frame (under More…) | First, Middle, Last | Middle |
Switching Enabled off greys out the rest of the section. What each setting does, and when to change it, is explained in Alignment.
FUSE: choose how the frames are combined
The FUSE method menu: three fusion methods.
FUSE decides, for every pixel, which frames the result takes it from. Its Algorithm menu offers three methods; each one brings its own settings, which appear below the menu when you choose it. Every method remembers its own settings while the project tab is open: try Soft transitions with a higher preference, switch to Details and back, and your Soft transitions values are still there.
Details
The default. Details splits every frame into layers from coarse to fine, takes the sharpest frame’s contribution in every layer separately and puts the layers back together.
| Setting | Range | Default | What it does |
|---|---|---|---|
| Levels (under More…) | 1 to the deepest level the frames support | worked out from the image size | How many layers of detail are compared and blended. |
The default of Levels is not a fixed number: FocusForge works it out from the frame size each time (it reads 5 for 512-pixel frames). Leave it there. More layers make every piece of work far larger and slower. The slider ends at the deepest level your frames support, so a run cannot be started with a value that is too deep. A saved project can still hold a deeper value: the slider then shows “Allowed range 1 to N” and Fuse stack waits until you move it back.
Details has one setting, Levels, worked out from the frame size.
Soft transitions
Instead of choosing a winner, Soft transitions blends every frame at each pixel, giving sharper frames more weight.
| Setting | Range | Default | What it does |
|---|---|---|---|
| Sharp-source preference | 1.0 to 8.0, in steps of 0.1 | 4 | How strongly the sharpest frame is preferred where frames overlap. Low values blend smoothly; high values lean towards picking the sharpest frame. |
| Radius (under More…) | 0 to 16 pixels | 16 | How far around itself each pixel looks to judge how sharp it is. |
Raise Sharp-source preference for crisper detail (the result moves towards what Details gives); lower it for gentler transitions. A smaller Radius judges sharpness from a tighter neighbourhood around each pixel.
Soft transitions: Sharp-source preference, and Radius under More…
Focus map
Focus map first builds a map of which frame is sharpest where, smooths that map so that neighbouring pixels agree, and then takes each pixel from the one frame the map names. It produces the most orderly Z-Map (the record of which frame each pixel came from) of the three methods.
| Setting | Range | Default | What it does |
|---|---|---|---|
| Score Radius (under More…) | 0 to 16 pixels | 4 | How far around itself each pixel looks to judge how sharp it is. |
| Smoothing Radius (under More…) | 0 to 16 pixels | 8 | How far the sharpness map is smoothed, so that neighbouring pixels agree on which frame is in focus. |
A larger Smoothing Radius gives larger, calmer areas from one frame; a smaller one follows detail more closely but can switch frames more often.
Focus map: both of its settings sit under More…
Choose a fusion method
The same eight frames of a mantis, fused with each method at its defaults:
The three fusion methods on the sample stack; the lower row enlarges the framed area.
| Method | Wins when | Trade-off |
|---|---|---|
| Details | You want the most fine detail: insects, textures, hair, most subjects. Start here. | At strong depth edges (a near outline against a far background) it can leave a halo. It is also the fastest on a computer with a usable graphics card; the other two always run on the processor. |
| Soft transitions | Details shows seams, halos or harsh edges between frames; smooth subjects such as petals or glossy surfaces, where gentle transitions matter more than the last bit of texture. | Fine detail is softer, because neighbouring frames are mixed in. |
| Focus map | You plan to retouch: each area comes cleanly from one frame, which makes the Z-Map easy to read and paint from. Simple, solid subjects with clear depth. | In smooth areas with no detail in any frame, such as a blurred background, the map has little to go on and the result can show patches, as in the example above. |
A practical approach:
- Fuse with Details.
- If you see halos, seams or blotches, change the method under FUSE to Soft transitions and fuse again. FocusForge reuses the alignment from the first run, so the second fuse is much quicker.
- Compare the two results in the CHECKPOINTS list (see Checkpoints and saving) and keep the better one. Repair what remains by retouching.
Common failure images shows what halos, motion and focus gaps look like and which settings help.
FINISH: trim the edges
| Setting | Range | Default | What it does |
|---|---|---|---|
| Auto-crop | on / off | on | Trims the result to the area that every aligned frame covers. Turn it off to keep the full frame. |
Aligning moves frames by a few pixels, so along the edges some frames leave a strip with no picture. Auto-crop cuts those strips off, so the result has clean edges. Turn it off when you would rather keep every pixel and crop by hand later. The outer strip then includes areas that not every frame covers.
Reset All to Default
Reset All to Default sits at the bottom of the tab, below FINISH (scroll down to reach it). It is greyed until you have changed something.
Clicking it:
- returns every setting of every section on this project tab to its default, and every section’s DEFAULT badge comes back;
- also forgets the values each fusion method remembered for this tab;
- keeps the fusion method you chose: if FUSE reads Focus map, it still does, now with the Focus map defaults;
- leaves open More… bars open.
It does not ask first, and it affects only the project tab you are looking at. It does not change any result you have already kept.
After one change (here: alignment switched off) Reset All to Default becomes available.
Each project tab has its own settings
Settings belong to the project tab, not to the window. When you have two projects open, each keeps its own method and values; click the other tab and the Settings tab shows that project’s settings.
- A project you reopen from its
.ffpfile starts with the settings recorded in it, so the sections show the values that project was fused with rather than DEFAULT badges. - New project instead, offered when you change the frames of a project that already has a result (see the Images panel), opens the new tab with this tab’s settings.
- The values each method remembers while you switch between methods are kept only while the tab is open; the project file records the settings of the runs you keep.
While a fuse is running
During a run the Settings tab is faded and locked.
From the moment you click Fuse stack until the run is over, the Settings tab of that project is drawn faded and does not react to clicks. That holds while the run is paused and while it is being cancelled, too: a run keeps the settings it started with. When the run ends (kept, discarded, cancelled or failed), the tab works again.
The lock applies only to the project that is fusing. Click another project tab and you can change its settings while the first one runs.
Tip: To try a different setting, let the run finish (or Cancel it), change the setting, and click Fuse stack again. See Opening and fusing in detail for Pause, Cancel and the Keep or Discard question.
From the command line
Everything on this tab is also available to focusforge-cli. The window
shows each method’s display name; the command line takes its id:
| In the window | On the command line |
|---|---|
| Details | laplacian |
| Soft transitions | weighted-average |
| Focus map | depth-map |
| Pyramidal ECC | pyramidal-ecc |
focusforge-cli algorithms lists them, and focusforge-cli algorithms <id>
prints every setting a method has, with its id, range, default and a short
description. The command-line reference
has the full listing.
Stack a folder
focusforge-cli stack path/to/frames/ --algorithm laplacian
stack fuses a directory of TIFF or supported RAW frames into a
project; it does not write an image file (export does that, below).
path/to/frames/ is read non-recursively, or from a frames/ subdirectory
when one exists. The project is written beside the frames as
<dir>/<dir-name>.ffp, or into the directory given with -o/--output.
For a folder holding more than one stack, see
Batch runs from the command line. Alignment and
the auto-crop are on by default, as in the window; see
Alignment for their flags.
reference/cli.md lists every flag.
Set any declared setting with --set key=value (repeatable), using the ids
focusforge-cli algorithms <id> prints:
focusforge-cli stack path/to/frames/ --algorithm weighted-average --set weight-exponent=6 --set radius=8
focusforge-cli stack path/to/frames/ --algorithm depth-map --set smoothing-radius=12
focusforge-cli stack path/to/frames/ --algorithm laplacian --set levels=4
Leave levels unset and it is derived from the stack’s resolution, as in
the window.
RAW frames
Put one kind of RAW file in a directory and run the same command as for TIFF;
focusforge-cli info reports camera metadata before a stack run. TIFF, JPEG
and RAW frames form separate stacks, and a group that mixes them is refused.
A RAW file FocusForge cannot read is reported by name.
RAW frames are developed to the camera’s own linear colour and fused without clipping, so highlights above white survive the blend. Saturated highlights come out neutral white, never magenta, on the canvas, in thumbnails and in TIFF, PNG and JPEG exports. The result is clipped once, to 16 bits, when it is exported. A RAW project saved by an earlier version is refused on open; stack its source frames again (see A RAW project saved by an earlier version).
Adding --raw-precision f32 keeps the developed frames at full precision and
doubles the temporary disk space they take (see
stack).
Brightness equalization flags
The PREPARE settings are the project settings equalize,
equalize-max-gain and equalize-target:
focusforge-cli stack path/to/frames/ --algorithm laplacian --set equalize=false
focusforge-cli stack path/to/frames/ --algorithm laplacian --set equalize-max-gain=1.5
focusforge-cli stack path/to/frames/ --algorithm laplacian --set equalize-target=0.2
A frame held at the limit makes the run print a notice naming the frame and
the gain it needed. The gains are recorded in the project, so export writes
the equalized result.
Fusing the same TIFF or JPEG frames again with the same two brightness
settings reuses the measurement. --no-cache measures afresh, and Clear
cache in the settings window
removes what is stored.
Remove sensor defects from the command line
focusforge-cli stack path/to/frames/ --set defect-removal=true
focusforge-cli stack path/to/frames/ --set defect-removal=true --defect-mask path/to/mask.tif
The mask is a grey image the size of the frames in which black pixels mark the defects. To see which pixels FocusForge would find, without fusing:
focusforge-cli hot-pixels path/to/frames/
It prints the number of hot pixels found; the command-line reference has its options.
Getting an image back
focusforge-cli export path/to/frames/frames.ffp -o out.tif --zmap zmap.tif
export reads a project and writes the image (-o), the Z-Map (--zmap),
or both in one invocation. --frame/--frame-output also count; at least
one output is required. The image is rendered from the
project’s stored composite, so it reflects the checkpoint you ask for (the
newest by default; --checkpoint <id> picks another). An unretouched
checkpoint needs no source frames; a retouched one reads them again and checks
them against the hashes recorded when the project was written, and a missing
or changed frame is named with nothing written. export refuses an output
path that names the project itself.
The format follows -o’s extension: .tif, .png or .jpg, each with its
own options:
focusforge-cli export frames.ffp -o out.png --png-bits 8 --png-compression best
focusforge-cli export frames.ffp -o out.jpg --jpeg-quality 90 --jpeg-subsampling 444
focusforge-cli export frames.ffp -o out.tif --tiff-bits 16 --tiff-compression lzw
TIFF and PNG default to 16 bits and JPEG to quality 95 with 4:2:0 chroma
subsampling. EXIF from the alignment reference frame and an ICC profile are
carried into the image by default; --xmp on and --iptc on carry those too
(IPTC is never written to PNG), and --exif off / --icc off leave them out.
In the window, the same choices are in the export dialog: see
Exporting an image. reference/cli.md
lists every flag.
Getting the Z-Map
Every project already carries its Z-Map, a single-channel 16-bit TIFF naming,
per pixel, which source frame contributed. Pass --zmap to export to write
it out. Retouch strokes are not included in an exported Z-Map: it is the one
the fusion produced, so on a retouched checkpoint it does not match the
exported image, while the overlay and the pipette in the window do count the
strokes.
focusforge-cli stack path/to/frames/ --algorithm depth-map
focusforge-cli export path/to/frames/frames.ffp --zmap zmap.tif
Using the GPU
When a usable graphics card is present, stack uses it automatically for
laplacian; weighted-average and depth-map always run on the processor.
--cpu forces the processor. Without a usable card the run continues on the
processor and prints why on stderr. If the card is lost partway through, the
rest of the run finishes on the processor; see
Diagnostics and crash reports for where that is logged. The
result is the same either way, and --json’s backend field says which one
ran. In the window, the same choice is GPU processing in
the settings window.
Reading the result
focusforge-cli stack path/to/frames/ --algorithm laplacian --json
--json reports the frames that were read, the algorithm and settings that
were used and the project path written; see
reference/cli.md for the full report.
--no-progress turns off the progress line printed while a run goes.
Alignment
No two frames of a focus stack line up perfectly. The camera drifts a little on the tripod or between handheld shots, and most lenses change the image size slightly as focus moves, an effect called focus breathing. Fused as they are, such frames give doubled edges and smeared detail. Alignment fixes this before fusing: FocusForge moves every frame so that it lines up with one reference frame. It is on by default and needs no attention for most stacks. This page explains the ALIGN section of the dock’s Settings tab (see Stacking settings for the tab as a whole) and what to do when a frame cannot be aligned.
What alignment does
When you click Fuse stack, alignment runs after the brightness of the frames has been evened out and before they are fused. The bottom bar reads Aligning with the number of frames done (such as “3 of 8”).
For every frame, FocusForge:
- Picks the frame to compare with. By default every frame is compared with its neighbour, step by step, on the way to the middle frame of the stack (see Chain or Anchor).
- Finds the movement. It compares the two frames coarsely first, then improves the result at larger and larger sizes up to full size. It looks for a shift, and with the default Rotation + Scale mode also a change of size and a small rotation.
- Checks the answer. A result that does not hold up across the frame, or whose match is too weak to be trusted, is rejected, and the frame counts as not aligned (see When a frame cannot be aligned).
- Moves the frame into place for fusing. Your source files are not changed.
Finally, Auto-crop in the FINISH section trims the result to the area every aligned frame covers.
The ALIGN settings
The ALIGN section with its More… bar open, at the defaults.
ALIGN shows the Enabled switch and the Algorithm menu; the rest sits under its More… bar. Pyramidal ECC is the only alignment method, so the menu has one entry.
| Setting | Range | Default | What it does |
|---|---|---|---|
| Enabled | on / off | on | Lines every frame up with the reference frame before fusing. Off fuses the frames exactly as they were read. |
| Algorithm | Pyramidal ECC | Pyramidal ECC | The alignment method. |
| Mode | Translation only, Rotation + Scale | Rotation + Scale | Which movements are corrected: a shift only, or a shift plus a change of size and a small rotation. |
| Max Iterations | 1 to 1000 | 400 | The most adjustment steps alignment may take for a frame at each size. |
| Epsilon (px) | 0.000000001 to 1 | 0.0001 | How small, in pixels, an adjustment step must be before alignment counts a frame as settled. |
| Pyramid Depth | 0 to 16 | worked out from the frame size | How many smaller, coarser versions of the frame are compared before the full-size one. |
| Reference Policy | Anchor, Chain | Chain | Whether every frame is compared directly with the reference frame, or step by step through its neighbours. |
| Reference Frame | First, Middle, Last | Middle | Which frame the others are lined up with. |
Choose a mode
| Mode | Use it for |
|---|---|
| Rotation + Scale (default) | Stacks focused with the lens’s focus ring or by the camera’s own focus bracketing, where the image grows or shrinks a little from frame to frame; handheld stacks, which also twist slightly. When in doubt, use this. |
| Translation only | A stack shot on a focus rail with a lens that does not breathe, where the only movement is a small drift. It solves for less, so it is cheaper. Also worth a try when Rotation + Scale reports frames it could not align. |
To change it: open More… under ALIGN, click the Mode field and choose an entry.
Chain or Anchor
Reference Policy decides what each frame is compared with:
- Chain (default) compares each frame with its neighbour, step by step towards the reference frame. Neighbouring frames look alike, so this holds up even when the first and last frames of a long stack look very different (one sharp at the front, the other at the back).
- Anchor compares every frame directly with the reference frame, all at the same time. It is faster than Chain on a machine with many processor cores. Use it for short stacks or stacks whose frames all look similar, when speed matters.
Choose the reference frame
Reference Frame picks the frame that stays where it is; every other frame is moved onto it. The result therefore has the framing and image size of the reference frame, and an exported image carries the camera data (EXIF) of that frame.
- Middle (default) keeps the distance to the farthest frame as small as possible, which suits most stacks.
- First or Last when one end of the stack has the framing you want, for example when the image size changes a lot across a long focus-ring stack and you want the result at the size of the nearest or farthest focus.
Settings you rarely change
Max Iterations, Epsilon (px) and Pyramid Depth control how hard alignment works. Their defaults suit everything from small frames to very large ones; leave them unless you have a reason.
- Max Iterations is the most adjustment steps a frame gets at each size. Frames that settle earlier stop early. A frame that reaches the limit is not rejected: it keeps the best position found so far.
- Epsilon (px) is the precision at full size, in pixels. The default, a
ten-thousandth of a pixel, is already far finer than you can see; a larger
value makes alignment a little faster and less exact. The slider spans
several powers of ten, marked
1e-9to1. - Pyramid Depth is how many coarser versions of the frame are compared before the full-size one. The default is worked out from your frames. A deeper setting can catch larger movements but has less detail to work with at its coarsest step.
Switch alignment off
Alignment switched off: the rest of the ALIGN section is greyed.
Click the Enabled switch under ALIGN to turn alignment off. The rest of the section greys out and keeps its values. The next fuse then uses the frames exactly as they were read, and the result keeps the full frame.
Switch it off when:
- the frames are already lined up, for example because you aligned them in another program and exported them;
- the camera and subject were truly fixed and the lens does not breathe, and you want to save the time alignment takes;
- alignment makes things worse, for example on a subject made of a repeating pattern, and you want to compare.
Switching alignment off (or off and on again) removes the ALIGN section’s DEFAULT badge; Reset All to Default brings it back (see Reset All to Default).
Fusing again is quicker
Aligning is often the slowest part of a fuse, so FocusForge keeps each alignment it computes. When you fuse the same frames again after changing only the fusion method or its settings under FUSE, the bottom bar briefly reads Aligning with “from cache” instead of a frame count, and the fuse is much quicker. The kept alignment is found again even when the files were moved or renamed; frames you reshoot are aligned afresh. To delete it and free the disk space, see Free disk space used by earlier runs.
When a frame cannot be aligned
Two frames of the sample stack could not be aligned.
A frame that cannot be aligned does not stop the fuse. FocusForge uses it unmoved, exactly where it was in the camera, finishes the run and then asks Keep this fused result?, naming the frames it could not align (past five, the rest are counted). The dialog needs an answer: Escape does not close it.
- Keep keeps the result. A notification “N frames unaligned” (or “1 frame unaligned”) records it; see Projects, notifications and quitting.
- Discard throws the result away. The project stays as it was before the fuse.
An unaligned frame only matters where it contributed to the result. Very blurred frames, such as the first frames of a stack focused on the background, often cannot be aligned because they hold little detail, but they also contribute little; that is what happens in the sample stack above, and its result is fine. Before you decide, look at the result for doubled edges or smeared detail, and use the Z-Map overlay to see where the named frames were used (see See where each pixel came from).
If the result shows the problem:
- Click Discard.
- Try one change at a time and fuse again:
- Leave the named frames out with Exclude in the Images panel, when they add nothing the neighbouring frames do not.
- Switch Mode to Translation only when the stack was shot on a rail and does not breathe.
- Switch Reference Policy between Chain and Anchor.
- If the frames are already lined up, switch alignment off.
What alignment cannot fix
Alignment moves each frame as a whole: it shifts, scales and rotates it. It cannot fix:
- part of the subject moving relative to the rest (an antenna, a leaf in the wind);
- a change of perspective when the camera tilts or swings between frames;
- every frame of heavily defocused or very long series (on the order of 64 frames): some may end up not aligned, and on such stacks even a frame that is reported as aligned is worth checking in the result;
- strongly repeating patterns, which can match in more than one position. Such frames are normally reported as not aligned rather than placed wrongly.
Shooting a stack explains how to shoot so that alignment has an easy job, and Common failure images shows what movement looks like in a result.
From the command line
The same aligner runs in focusforge-cli stack, where alignment and the
auto-crop that follows it are both on by default, and on its own in
focusforge-cli align, which reports each frame’s recovered movement without
fusing anything:
focusforge-cli align path/to/frames/
Each row reports the frame’s recovered translation, scale and rotation, the
number of steps taken, and rho, how well the frame matches the reference, from
-1 to 1 (not a pixel distance). The last line is the auto-crop rectangle
stack would apply: the largest axis-aligned rectangle every warped frame
covers.
The ALIGN settings are the pyramidal-ecc parameters mode
(translation, rotation-scale), max-iterations, epsilon-px,
pyramid-depth, reference-policy (anchor, chain) and
reference-frame (first, middle, last). align takes them with
--set, stack with --align-set:
focusforge-cli align path/to/frames/ --set mode=translation
focusforge-cli align path/to/frames/ --set reference-policy=anchor
focusforge-cli stack path/to/frames/ --algorithm laplacian --align-set mode=translation
focusforge-cli algorithms pyramidal-ecc prints every parameter with its
range, default and description. See
reference/cli.md for every align flag and
reference/cli.md for every stack flag.
Frame status
Each frame’s row ends in a status. converged, hit-cap and stalled mean
the frame lined up (the last two stopped before settling fully and keep the
best position found). diverged(<reason>) means it did not line up, for
example weak-match (the best match is too weak to trust) or
validation-failed (the movement found does not hold across the frame); the
other reasons are in reference/cli.md.
A frame that does not line up
A frame that ends diverged is used unmoved and the run continues, with the
frame marked in the report. Pass --strict to make stack or align exit 1
and name every failed frame. --no-align skips the stage when the frames are
already lined up. If the aligned frames share no usable overlap, stack stops
with an error that says so; --no-crop keeps the full frame instead.
Using the graphics card and earlier results
stack keeps each computed alignment, so a repeated run skips it; --no-cache
recomputes it (Batch runs from the command line
describes where it is kept). The graphics card speeds up the largest steps
when a usable one is present; --cpu keeps everything on the processor. The
result is the same either way, and both JSON reports name the one used in
align_backend. --max-vram <SIZE> and --max-host-memory <SIZE> lower the
memory the alignment may use.
Checking a result visually
focusforge-cli align path/to/frames/ --write-warped .scratch/warped/
Writes one warped TIFF per input frame into the given directory, at the
frame’s own source dimensions and uncropped, so the region the auto-crop
would cut is still visible. Use it, or compare each frame’s transform with its
neighbours’, to check stacks where converged alone does not prove a correct
fit.
Skipping it
focusforge-cli stack path/to/frames/ --algorithm laplacian --no-align
--no-align fuses the frames unwarped; --no-crop keeps alignment on but
leaves the output at the full frame extent instead of cropping to the common
region. In the window the same two choices are the Enabled switch under
ALIGN and Auto-crop under FINISH (see
Stacking settings).
Retouching
No fusion method gets every pixel right. A halo beside an antenna, a smeared patch where a leg moved, a spot where the wrong frame won: these are easier to fix by hand than by fusing again. FocusForge’s editor lets you do that with a brush that paints pixels from one of your own frames into the composite.
You are not painting colour. Every stroke takes the pixels of one source (a source frame or an earlier result, whichever you choose in the list) and blends them into the composite where you brush. Painting from a frame in which that area is sharp puts that sharpness back.
A retouch never destroys the fused result. Strokes are kept as a list of edits on top of it: you can undo them one by one, keep them as a checkpoint, and go back to the untouched result at any time (see Checkpoints and saving).
The window in editor mode: the brush in the toolbar, the results and source frames in the dock.
Switch to the editor
The switch at the top of the dock has two halves, STACKING and EDITOR. Click EDITOR to retouch the checkpoint selected in CHECKPOINTS, and STACKING to go back to the frame list and the fusion settings.
When a fuse finishes and its result is kept (if FocusForge asks “Keep this fused result?”, by clicking Keep), the window switches to the editor by itself, as long as you are still looking at that tab. A saved project you open starts in STACKING; click EDITOR to retouch it.
In the editor the window changes in three places:
- The toolbar shows the function bar instead of Fuse stack: the Brush and Pipette chips at the left, Undo, Redo and Save checkpoint at the right.
- The dock’s list stops being the place where you arrange frames. It has no Images and Settings tabs. A Results group lists your earlier results above the frames (see Paint from an earlier result); under the heading with the number of frames (for example “8 frames”) every row shows the frame’s colour and its number. Rows cannot be excluded, removed or dragged here.
- The Composite pane becomes paintable.
EDITOR is greyed out, and cannot be selected, when there is nothing to retouch:
- the tab has no fused result yet;
- a fuse is running or waiting in the queue for this tab;
- the frame list no longer matches the frames the result was fused from, because you added, removed, excluded or reordered a frame since. Fuse again (see Fuse the stack) and the editor is available for the new result.
Switching to STACKING and back keeps your brush settings and any strokes you have not saved yet.
Choose the frame to paint from
The brush paints from the selected source: a frame, or an earlier result (see Paint from an earlier result). The Frame pane on the left shows it, with its file name in the pane’s label, so you can see exactly what the brush will put down.
The source list in the editor: the Results group above the frames. The selected frame (here 01.tif, number 2) is outlined; its colour bar matches its colour in the overlay.
There are four ways to choose it:
- Click a row in the dock’s list.
- Ctrl + mouse wheel over the panes, or the arrow keys, step to the next or previous row: first through the results, then through the frames.
- Pipette: click Pipette in the toolbar, then click a point in either pane. The frame the composite took at that point becomes the source, and the pipette turns itself off. The click paints nothing. The chevron beside Pipette opens a short reminder of the gesture.
- Alt + click on a point does the same as the pipette without arming it first. It works in STACKING mode too.
While the pipette is armed, or while you hold Alt, the cursor shows the colour of the frame under the pointer, so you can see which frame a click will pick before you click.
Tip: The pipette answers “which frame did FocusForge use here?”. To repair an area, you usually want the opposite: a frame in which it is sharp. Pick the frame next to the problem with the pipette, then step through its neighbours with Ctrl + wheel and watch the Frame pane.
How the rows look (a compact list, small previews or large previews) is set by Presentation on the settings window’s Appearance page.
Paint from an earlier result
Besides the frames, the brush can paint from a result you already have, for example to bring back an area from a fuse made with another fusion method, or from an earlier retouch.
The Results group, above the frames in the dock, lists the project’s checkpoints that line up pixel for pixel with the one you are editing. Each row shows the method, the time and, for a retouched checkpoint, “· N strokes” (for example “· 3 strokes”). Click a row to make it the brush source; clicking there changes only the source, not the checkpoint you are editing. The left pane then reads “Checkpoint · “ followed by the method and time, the brush ring turns white and gets a small layers symbol, and the strokes you paint take their pixels from that result.
Paint once the result on the left looks sharp: a stroke you start while it is still soft, or while the pane is empty, paints nothing (see Look at an earlier result).
A row can carry a small label:
| Label | Meaning |
|---|---|
| BASE | The checkpoint you are editing. Painting from it takes an area back to how it was before your strokes. |
| FUSION | The fuse the checkpoint you are editing was made from, when that is another row. |
| UNSAVED | A result that is in the window but not in the project file yet. |
Under the rows, a line such as “2 hidden: different alignment” counts the checkpoints that cannot be used and says why. A result is hidden when it was made from different source frames (“different source frames”), aligned differently (“different alignment”), cropped differently (“different crop”) or has another size (“different dimensions”): its pixels would not line up with the ones you are editing.
Good to know:
- Strokes you have not saved as a checkpoint are never offered as a source. Click Save checkpoint first; the new checkpoint then appears in the list.
- The overlay and the pipette still name frames.
- Alt + click on a point painted from a result picks that result as the source again.
- Deleting a checkpoint that strokes are painted from does not change those strokes; see Delete a checkpoint.
See which frame each area came from
The bottom bar’s Overlay switch colours the Composite pane by the frame each area came from, read from the result’s Z-Map. Each frame has its own colour, the same colour as its bar or square in the dock’s list. The slider beside the switch sets how strongly the colours cover the image (65 % when you first turn it on).
The overlay is off when the window starts and is greyed out until the tab has a result. It works in both modes, and it always shows the current state: an area you painted from frame 3 turns frame 3’s colour.
Use it as a map before you paint. A halo or a smeared patch often shows up as an island of a different colour, and the colours around it tell you which frames hold that area sharp. If a project’s Z-Map cannot be read, the overlay and the pipette are unavailable; the image itself is not affected.
Set the brush
The Brush chip in the toolbar shows a dot as big as the brush, the word “Brush” and the blend mode in use (“Normal” at first). Click its chevron, or the chip itself while the brush is the tool in use, to open the brush’s settings under it. They stay open while you drag a slider or click a mode, and close when you press Esc, click the chevron again or click anywhere outside the bar. The click that closes them does nothing else: it paints no stroke.
The Brush settings with their starting values.
| Setting | What it sets | Range | Starts at |
|---|---|---|---|
| Size | The brush’s diameter, in pixels of the image (not of the screen). The slider is logarithmic, so small sizes are easy to set precisely. | 1 to the shorter side of the result | 64 |
| Softness | How much of the brush’s edge fades out. | 0 % to 100 % | 30 % |
| Opacity | How strongly a stroke covers the result, in every mode. | 1 % to 100 % | 100 % |
| Mode | How the stroke blends, see Blend modes. | Normal, Lighten, Darken, Detail | Normal |
| Preview | Shows the source inside the brush circle, see Preview before you paint. | on / off | off |
Your size, softness, opacity, mode and the Preview switch are remembered when you quit.
The toolbar after one stroke: Undo and Save checkpoint are now available.
Softness decides how a stroke blends in. The inner part of the brush paints the source fully; from there to the outer edge it fades out evenly to nothing. Softness is the share of the radius that fades: at 0 % the brush has a hard edge, at 30 % the outer 30 % of the radius fades, at 100 % the fade starts at the centre.
The brush cursor draws both parts: a solid circle for the part that paints fully, and a dashed ring for the outer edge of the fade. A hard brush (0 %) shows only the solid circle. Because Size is in image pixels, the cursor grows and shrinks with the zoom. A small letter on the cursor names the mode: N for Normal, L for Lighten, D for Darken and T for Detail.
Tip: Keep Softness at 30 % or more for most repairs. A soft edge hides the seam between the painted area and the composite around it; a hard brush leaves a visible outline unless both frames match exactly there.
Shift + mouse wheel over the image changes Size without opening the settings. The keys and wheel gestures can be changed on the settings window’s Input map page.
Blend modes
Choose the mode in the settings or press its key while the editor has focus.
| Mode | Key | What a stroke does |
|---|---|---|
| Normal | 1 | Paints the source over the result. |
| Lighten | 2 | Changes a pixel only where the source is brighter than the result there. |
| Darken | 3 | Changes a pixel only where the source is darker than the result there. |
| Detail | 4 | Keeps the result’s own brightness and takes only the source’s fine detail. |
Lighten and Darken compare brightness over all colours together, so they never shift a colour: use Lighten to bring back a bright edge, or Darken to remove a bright halo, without touching the rest of the brushed area. Detail is for sharpness: it moves detail from a frame in which an area is sharp without carrying over that frame’s brightness, so the patch shows no blotch from a different exposure or vignetting.
Opacity lowers the strength of a stroke in every mode: at 50 % the result shows through half. A stroke keeps the mode and opacity it started with, even if you change them before you release the button.
Preview before you paint
With Preview on, the inside of the brush circle on the Composite shows the selected source at about 80 % over the result, so you see what the stroke would put down before you paint it. The circle on the Frame pane follows the pointer too and drives the same preview. The preview is hidden outside the image and while the pipette is armed. The p key switches it on and off, and the setting is the same for every project tab.
Paint a stroke
- Choose the source frame.
- Set Size, Softness, Opacity and the mode.
- Drag across the Composite pane over the area to repair. A single click paints one round dab.
A short stroke painted from 01.tif with the overlay on: the painted band turns that frame’s yellow. The cursor shows at the same point in both panes.
Some things to know while painting:
- You can paint in either pane. Both show the same part of the image, so a stroke on the Frame pane paints exactly where it would on the Composite pane. The cursor is echoed in the other pane at the same point, which makes it easy to aim at a detail you can only see in the source frame.
- A stroke keeps the source, size, softness, mode and opacity it started with, even if you change them before releasing the button.
- Panning (middle-button drag, or Space + left drag) and zooming (mouse wheel) work as usual and do not paint; see The window.
- Dragging in STACKING mode paints nothing.
Undo and redo
| Action | Toolbar | Keys |
|---|---|---|
| Undo the last stroke | Undo | Ctrl+Z |
| Redo the stroke you undid | Redo | Ctrl+Shift+Z |
Each tab keeps its own stroke history. Undo steps back one stroke at a time; Redo puts back what you undid, in order. A new stroke after an undo discards everything Redo was holding, so redo first if you want it back.
Both buttons are greyed out when there is nothing to undo or redo. The keys work in editor mode only; you can change them on the settings window’s Input map page.
Keep your strokes: Save checkpoint
Save checkpoint, at the right end of the toolbar, keeps every stroke you have made as a new checkpoint at the top of the CHECKPOINTS list; the new row flashes briefly. The button is available as soon as there is at least one stroke that is not in a checkpoint yet.
After saving, Undo and Redo are greyed out: those strokes now belong to the checkpoint. To take them back, click the checkpoint you started from in the CHECKPOINTS list.
A new checkpoint is held in the tab until you save the project. Strokes you have not saved as a checkpoint are not dropped silently: fusing again, choosing another checkpoint, closing the tab or quitting each ask first. Both are explained in Checkpoints and saving.
Example: fix a halo
A halo is a pale or smeared fringe on the background right next to a sharp edge (see Halos at depth edges). The repair is to paint the strip beside the edge from a frame in which the background there is clean.
- Keep the fused result. The window switches to the editor. Zoom in on the edge with the mouse wheel until you see the fringe clearly; judge it at 100 %.
- Turn Overlay on. The fringe usually sits in a band of one colour along the edge: the frame focused on the foreground, whose blur spread over the background.
- Find a better frame. Click a few rows, or use Ctrl + wheel, and watch the Frame pane: you want the frame in which the background beside the edge is clean and free of the foreground’s blur. It is usually a frame focused behind the subject.
- Set Size a little wider than the fringe and Softness to 30–50 %.
- Paint along the edge, on the background side, keeping the dashed ring off the sharp subject. With the overlay on, the painted band takes the new frame’s colour, so you can see exactly what you covered.
- Painted over the subject? Press Ctrl+Z and paint again.
- Turn Overlay off and look at the result at 100 %. When it is right, click Save checkpoint, then save the project (Ctrl+S) or export an image.
Note: Retouching can only paint from frames you have. If no frame holds an area sharp, the brush cannot create that detail; see Focus gaps.
On a RAW project the result holds unclipped 32-bit float samples: a live stroke blends in 32-bit float, and the canvas, the saved view and every export clip the result once, to 16 bits.
From the command line
focusforge-cli retouch applies strokes without the window. It takes an op
list, a JSON array of brush strokes, and appends each op to the project as a
new checkpoint, each the previous one’s child:
focusforge-cli retouch path/to/frames/frames.ffp --ops ops.json
[
{"brush-stroke": {"source": {"frame": 2}, "path": [{"x": 10, "y": 10}, {"x": 40, "y": 12}], "radius": 8.0, "softness": 0.3, "mode": "normal", "opacity": 1.0}}
]
sourceis{"frame": n}, the 0-based frame index to paint from (the window’s frame number minus one), or{"checkpoint": "<id prefix>"}, which paints from that checkpoint’s result. A checkpoint must line up with the one you edit, as in Paint from an earlier result."source_id": nis still read as frame n.pathis a list of{x, y}points in image pixel coordinates.radiusis half the stroke’s width in pixels (the window’s Size is the diameter).softnessis in[0, 1]: the stroke is fully opaque withinradius * (1 - softness)and fades linearly to nothing atradius.modeisnormal,lighten,darkenordetail, as in Blend modes; it defaults tonormal.opacityis above 0 and at most 1; it defaults to 1.
Every op is checked before anything is written; an invalid one is refused by
its 0-based position. The ops go on the project’s current head, or on another
checkpoint with --from <id>, which starts a branch; --name <text> names
the last one. To see the result, export it:
focusforge-cli history list path/to/frames/frames.ffp
focusforge-cli export path/to/frames/frames.ffp --checkpoint <checkpoint-id> -o retouched.tif
Every flag is in the command-line reference.
Checkpoints and saving
Every result you keep in FocusForge becomes a checkpoint: a version of the image you can go back to. Each fuse you keep adds one, and each set of strokes you keep with Save checkpoint adds one on top of the checkpoint it was painted on. Any checkpoint can be shown again, exported, or used as the starting point for new strokes, so trying something never costs you the version you already liked.
Checkpoints are stored in the project file (.ffp) when you save the
project. A retouched checkpoint stores its strokes, not a second copy of the
image, so it adds very little to the file.
The CHECKPOINTS list
The CHECKPOINTS list sits in the dock, under the STACKING / EDITOR switch, in both modes. It lists the active tab’s checkpoints, newest first. Each row shows the fusion method and the time the checkpoint was made. A retouched checkpoint reads “Retouch on” followed by the fusion method of the result it was painted on, for example “Retouch on Details”. When the list spans more than one day, the rows are grouped under day headings: TODAY, YESTERDAY, then the date.
Two checkpoints: a fused result (bottom) and a retouched version of it (top, selected). The pointer is over the top row, so its trash icon shows.
The selected row has a raised background and an accent bar at its left edge. Before the first fuse, the list reads “None yet — fuse a stack”.
The Export image button in the list’s heading writes the selected checkpoint as an image file; see Exporting an image.
Go back to a checkpoint
Click a row. The panes show that checkpoint, and Export image and the editor now work on it.
If you have strokes that are not in a checkpoint yet, the window asks first (see Fusing or restoring over unsaved strokes).
Branch from an older checkpoint
Checkpoints form a tree, not a single line. To try a different repair without losing the one you made:
- Click the older checkpoint you want to start from, for example the plain fused result.
- Paint in the editor (see Retouching).
- Click Save checkpoint.
The new checkpoint is built on the row you clicked, not on the newest one. Both versions stay in the list, newest first, and each can be shown, exported or painted on again.
Keep strokes as a checkpoint
In the editor, Save checkpoint (at the right end of the toolbar) keeps the strokes you have made as a new checkpoint at the top of the list. The new row flashes briefly. The button is available while there are strokes that are not in a checkpoint yet, and greyed out otherwise. See Keep your strokes: Save checkpoint.
Delete a checkpoint
- Point at the row. A red trash icon appears at its right edge.
- Click the trash icon.
- The dialog “Delete this checkpoint?” names the checkpoint by fusion method and time and says what stays. Click Delete.
Deleting one of two checkpoints. Cancel, the close button at the top right and Escape all delete nothing.
- If strokes in another checkpoint were painted from this one, the dialog instead says “This checkpoint is the source of” followed by the number of strokes and where they are, then “It is hidden and kept in the project, so those strokes keep their pixels.” The checkpoint leaves the list but stays in the project file.
- The last remaining checkpoint cannot be deleted: with only one row in the list, the trash icon does not appear.
- If you delete the selected checkpoint, the newest remaining one is selected, unless you have unsaved strokes on screen.
- Like a new checkpoint, a deletion is written into the project file when you save the project. Until then the project file on disk still holds the checkpoint.
Fusing or restoring over unsaved strokes
Strokes that are not in a checkpoint yet are never dropped silently. Two actions would drop them, and both ask first. Each question also has a close button at its top-right corner; it, Cancel and Escape all leave everything as it was: your strokes, the list and the checkpoint you are looking at.
Fusing again: “Save your edits first?”
You switched to STACKING and clicked Fuse stack while strokes were unsaved. The question names the tab (“Fusing mantis-512-fused”) and how many strokes would be lost.
The question before fusing again over one unsaved stroke.
| Button | What happens |
|---|---|
| Cancel | Nothing is fused. Your strokes stay. |
| Save and fuse | Your strokes are kept as a new checkpoint first, then the stack is fused again. |
| Fuse anyway | The stack is fused again without keeping the strokes. If you then keep the new result, the strokes are lost; if you discard it, they are still there. |
Choosing another checkpoint: “Save this state first?”
You clicked another row of the CHECKPOINTS list while strokes were unsaved. The question names the checkpoint you clicked (“Restoring Details” and its time) and how many strokes have happened since the last checkpoint.
The question before going back to an older checkpoint over one unsaved stroke.
| Button | What happens |
|---|---|
| Cancel | Nothing changes. You stay on the checkpoint you were on, with your strokes. |
| Save first, then restore | Your strokes are kept as a new checkpoint at the top of the list, then the row you clicked is shown. |
| Discard and restore | Your strokes are thrown away and the row you clicked is shown. |
Neither question writes the project file: a checkpoint kept here is held in the tab like any other until you save the project.
Note: Closing a tab or quitting the window with unsaved work asks a similar question, also titled “Save this state first?”, with the buttons Save and close and Close anyway. It is explained in Projects, notifications and quitting.
Saving a project
A fuse in the window writes nothing next to your frames. A kept result, a checkpoint you saved and a checkpoint you deleted are all held in the tab until you save the project.
The UNSAVED chip: this tab holds work that is not in its project file yet.
- A tab that holds anything the project file does not contain yet shows an
UNSAVEDchip beside its name in the tab strip. A tab whose project has never been saved shows it too. - Save project writes everything the tab holds into one
.ffpfile, in order, and the chip goes away. Press Ctrl+S, or use Save project in the projects overlay’s rail (the grid button at the left end of the tab strip; see Projects, notifications and quitting). - Strokes you have not kept as a checkpoint yet are kept as one when you save the project, so they are in the file too.
- The first save of a tab opens the system save dialog, proposing
<frames folder>/<stack name>.ffp, for examplemantis-512/frames/frames.ffp. A name without the.ffpextension gets it added. The tab is then named after the file. - Later saves, and saves of a project you opened from a
.ffp, write back to that same file without asking. - A failed save (a full disk, a folder you cannot write to) keeps everything held in the tab and tells you why in a “Save failed” notification: “Could not save” followed by the path and the reason. Nothing is lost; fix the cause and save again.
Tip: Save the project before you export, close or experiment further. The project file is what lets you come back later and change your mind; an exported image is only one finished version.
Damaged or moved projects
When a project cannot be opened, or its frames were moved or changed since it was saved, the window explains what is wrong and offers Locate frames… to point it at the frames’ new folder. What each message means and what to do is in Damaged or moved projects in Opening and fusing in detail; the command-line side (accepting changed frames, exit codes) is in Troubleshooting.
From the command line
focusforge-cli history lists and deletes checkpoints without the window;
retouch and export work on any checkpoint by id:
focusforge-cli history list frames.ffp
focusforge-cli retouch frames.ffp --ops ops.json --from <checkpoint-id>
focusforge-cli export frames.ffp --checkpoint <checkpoint-id> -o result.tif --zmap zmap.tif
focusforge-cli history delete frames.ffp --checkpoint <checkpoint-id>
focusforge-cli history compact frames.ffp
history listprints every visible checkpoint, newest first, with its parent. Ids can be shortened to any unique prefix everywhere.history deletehides a checkpoint and drops it from the file once no visible checkpoint is built on it. The last remaining visible checkpoint is refused.history compactrewrites the file to its live checkpoints and reports the bytes reclaimed.retouchappends an op list (its shape is in Retouching) to the head, or to the checkpoint--fromnames, which starts a branch.export --checkpoint <id>writes any checkpoint as an image, and with--zmapits Z-Map. Retouch strokes are not included in an exported Z-Map: it is the one the fusion produced.
Every flag and exit code is in the command-line reference.
Exporting an image
A project keeps your result as checkpoints, which only FocusForge can read. To print, publish or keep editing the result in another program, export it as an image file: TIFF, PNG or JPEG, or DNG for a project stacked from camera RAW files.
An export writes the checkpoint selected in CHECKPOINTS (or your editor strokes). Choose the checkpoint first in the CHECKPOINTS list (see Checkpoints and saving), then export it. Exporting changes nothing in the project.
Open the export dialog
- Fuse a stack and keep the result, or open a saved project.
- Click the checkpoint you want in the CHECKPOINTS list, or stay in the editor with the strokes you are working on.
- Click Export image in the heading of the CHECKPOINTS list.
Export image is greyed out until the tab has a result, for example while the first fuse is still running or its “Keep this fused result?” question is open.
The dialog opens with two lines under its title, “Export image”. The first, greyed line names the project and the version; the second says in a sentence what will be written:
| The sentence | When you see it |
|---|---|
| “Exporting the saved checkpoint you selected.” | A checkpoint that is already in the project file. |
| “Exporting the unsaved fuse result held in this tab.” | A fused result you kept but have not saved in a project yet. |
| “Exporting the unsaved retouch checkpoint held in this tab.” | A checkpoint you made with Save checkpoint that is not in the project file yet. |
| “Exporting your current unsaved retouch edits.” | Strokes you have painted and not kept as a checkpoint. The image includes them. |
You do not have to save the project or keep your strokes as a checkpoint before exporting: the dialog writes the selected checkpoint plus any unsaved strokes.
The export dialog for a saved checkpoint, with the TIFF settings it starts with.
Choose a format
Click TIFF, PNG, JPEG or DNG in the Format row. The settings below it change to that format’s own.
| Format | Choose it for | Keeps every detail? |
|---|---|---|
| TIFF | Further editing, archiving, printing. The safest choice. | Yes (at 16-bit) |
| PNG | Lossless files that web browsers and most programs open. | Yes (at 16-bit) |
| JPEG | Sharing, the web, e-mail. Small files. | No: always 8-bit, compressed with some loss |
| DNG | A stack of camera RAW files that you want to develop in a raw converter. | Yes (see A DNG of a RAW project) |
TIFF settings
| Setting | Choices | Starts at | What it does |
|---|---|---|---|
| Bit depth | 16-bit, 8-bit | 16-bit | 16-bit keeps every sample of the result image; 8-bit rounds each sample, the same way JPEG does. |
| Compression | None, LZW, Deflate | None | None writes the file uncompressed. LZW and Deflate make it smaller and are both lossless. |
Click a field to open its list, then click a choice. Escape closes an open list without closing the dialog.
PNG settings
PNG has the same two settings as TIFF, with different compression choices.
| Setting | Choices | Starts at | What it does |
|---|---|---|---|
| Bit depth | 16-bit, 8-bit | 16-bit | As for TIFF. |
| Compression | Fast, Default, Best | Default | PNG is always lossless; this only trades writing time for file size. |
JPEG settings
JPEG trades a little quality for a much smaller file.
| Setting | Choices | Starts at | What it does |
|---|---|---|---|
| Quality | 1 to 100 | 95 | 1 is the smallest and worst file, 100 the largest and best. JPEG is always 8-bit. |
| Chroma subsampling | 4:4:4, 4:2:0 | 4:2:0 | 4:4:4 keeps colour at full resolution; 4:2:0 halves it in both directions for a smaller file. |
Tip: For a JPEG that will be looked at closely, such as a print proof or a large web image, choose 4:4:4. Fine coloured detail (iridescent scales, thin coloured hairs) survives it better. For a small web image 4:2:0 is fine.
DNG settings
DNG has no settings. Under DNG SETTINGS the dialog says “No settings: 16-bit, uncompressed, in the camera’s own colour.” It is for a project stacked from camera RAW files; A DNG of a RAW project says what the file holds.
Metadata
The METADATA section has one switch, Metadata, and it starts turned on.
- On: the image carries the camera information (EXIF: make, model, exposure and capture time) of the frame the stack was aligned to, with the exported image’s own size, the program and the export time written in. It also embeds the colour profile (ICC) of the source frames; for RAW frames, a built-in sRGB profile.
- Off: the image carries no metadata and no colour profile.
Note: Keep Metadata on unless you have a reason not to. Without the colour profile, other programs have to guess the image’s colours. Turn it off when you want to share an image without the camera details.
Other metadata of the source frames, such as keywords and captions written by another program (XMP and IPTC), is not carried from the window: it describes the frame, not the stacked result. The command line can carry it when you ask for it (see From the command line).
Write the file
- Click Export.
- The system’s save dialog, titled “Export image”, opens. It proposes the
tab’s name with the format’s extension (
.tif,.pngor.jpg), in the project’s folder, or in the frames folder for a project that was never saved: for examplemantis-512-fused.tifnext tomantis-512-fused.ffp. - Choose the folder and name and confirm. A name without the format’s extension gets it added.
If you cancel the save dialog, you are back in the export dialog with your choices as they were.
While the file is written, the dialog shows “Writing image…” with the file’s name. A small image is written in a moment; a large stack can take a few minutes.
Writing a large image. The project name and file name in this picture are examples.
When the file is written, the dialog closes by itself. Closing the dialog while it writes (with its close button or Escape) does not stop the export: the file is still written.
The format and its settings are remembered once an export succeeds: the next export, in this or a later session, starts with the same format, settings and Metadata switch.
Cancel without exporting
Cancel, the close button at the dialog’s top-right corner, and Escape all close the dialog without writing anything. They also discard the choices you made in it: the next time you open the dialog, it starts again with the remembered choices of your last successful export (TIFF, 16-bit, no compression and Metadata on, if you have never exported).
When an export is refused
Sometimes an export cannot be written. The dialog then turns into a red “Can’t export this position” with one line per reason, instead of writing a damaged or wrong file.
An export refused because two source frames are gone or changed. The names in this picture are examples.
Missing or changed frames. A fused result is stored in the project and can always be exported. A retouched one is rebuilt from your source frames, because the strokes paint their pixels; FocusForge reads those frames again and checks that they are the same files. If one was moved, deleted or edited since, the dialog lists each one as “— missing” or “— changed since this checkpoint was fused”.
- Locate frames… lets you choose the folder the frames are in now. It is accepted only if the files in it are the ones the project recorded; the export is then retried to the same file name without asking again.
- Close closes the dialog without exporting.
Other reasons close only with Close:
| The dialog says | What to do |
|---|---|
| “JPEG can’t be bigger than 65,535 pixels on a side. This image is …” | JPEG cannot store larger images. Export as TIFF or PNG. |
| “PNG and JPEG can only save grey or colour (RGB) images; this one has extra channels.” | Export as TIFF. |
| “DNG needs a project stacked from camera RAW files; this one was stacked from TIFF or JPEG images.” | Export as TIFF, PNG or JPEG. |
| “DNG can’t describe this image’s colour: …” followed by the reason | The first source frame has no camera colour description, for example a monochrome sensor. Export as TIFF. |
| “Can’t write …” followed by the path and the reason | Choose another folder or free some disk space, then export again. |
| “Some export settings aren’t valid: …” | Close the dialog, open it again and choose the settings again. |
From the command line
focusforge-cli export writes any checkpoint of a project as an image,
without the window. It takes the same formats and settings as the dialog, as
flags:
focusforge-cli export frames.ffp -o result.tif
focusforge-cli export frames.ffp --checkpoint <checkpoint-id> -o result.jpg --jpeg-quality 90 --jpeg-subsampling 444
focusforge-cli export frames.ffp -o result.png --png-bits 8 --zmap zmap.tif
- Without
--checkpointit exports the project’s head, the checkpoint the project currently ends on;focusforge-cli history listprints every id. - The format follows the extension of
-o, or--format tiff|png|jpeg. - Metadata is chosen piece by piece:
--exifand--icc(on by default),--xmpand--iptc(off by default; IPTC is never written to PNG). --zmapwrites the Z-Map as an image as well. Retouch strokes are not included in it: it is the fusion’s own map.- Exporting a retouched checkpoint of a camera RAW project writes temporary
files to
.scratch/in the folder you run the command from, so that folder must be writable.
A DNG of a RAW project
For a project whose sources are all camera RAW, -o result.dng (or
--format dng) writes a linear DNG:
focusforge-cli export frames.ffp -o result.dng
The file holds the fused result in the camera’s own colour space, with the camera’s colour matrices and as-shot white balance, and with the highlights above white kept as they are. A raw converter opens it and develops it with exposure, white balance and highlight recovery all adjustable. A DNG has no format options. The window’s export dialog offers DNG too, in the Format row.
export refuses a DNG it cannot write, before any pixel is rendered, and
writes nothing:
error: line | Cause |
|---|---|
<path>: a DNG holds camera RAW data, and this project's sources are not camera RAW | The project was stacked from TIFF or JPEG frames. Export TIFF, PNG or JPEG instead. |
<path>: cannot write a DNG: <reason> | The first source frame cannot describe a camera colour space, for example a monochrome sensor or a file without a colour matrix or an as-shot white balance. |
--format tiff conflicts with out.dng's extension, which names dng | --format names one format and the extension of -o another. Drop one of the two. |
Every flag is in the command-line reference.
Projects, notifications and quitting
FocusForge keeps every stack you open as a project in a tab of its own, so you can work on several at once. This chapter shows how to keep track of them in the Projects overview, what happens when you open a folder that holds several stacks, how to fuse several projects one after another, what the cards of a failed or cancelled run mean, where the window keeps its messages, and what it asks before you close a project or quit with unsaved work.
The Projects overview
The overview lists every open project as a card and holds the file actions: new, open, save and close.
The Projects overview: one card per open project, the file actions and the recent list on the left.
Open and close the overview
- Click Projects, the square-grid button at the left end of the tab strip. The overview covers everything below the tab strip.
- To close it, click Projects again or press Escape. The header says so too: “The same button closes it again; Esc does too.”
While the overview is open, the toolbar, the canvas and the dock are hidden behind it. The tab strip stays usable: you can still select or close a tab. The overview does not open while a dialog, such as the Keep this fused result? question, is waiting for an answer.
Read a project card
Each card shows a picture of the project, its name and a second line with the number of frames and checkpoints, for example “8 frames · 1 checkpoint” or “8 frames · no checkpoint yet”. While the project is fusing, the second line names the stage instead, such as “8 frames · aligning, 6 of 8”, and a thin progress bar runs along the bottom of the picture.
Two small labels can sit beside the name:
| Label | Meaning |
|---|---|
| UNSAVED | The project has no project file yet, or holds work that is not in its file: a checkpoint, brush strokes or a deletion you have not saved. A folder you have just opened always carries it. The tab shows the same label. |
| CURRENT | This is the project of the selected tab. |
Above the cards, the heading reads “Open projects” with a count such as “2 open”. Once a folder could not be opened as a project at all (see Cards that need attention), the heading reads “Projects” and the count names both, for example “4 · 1 did not open”.
Switch to another project
Click a project’s card. FocusForge selects its tab and closes the overview. Clicking a tab in the tab strip does the same without the overview.
Close a project from its card
Rest the pointer on a card: a close button (Close, an ×) appears at its top-right corner. Click it to close that project. Close project in the rail closes the current project the same way. The overview stays open, so you can close several projects in a row.
A project that would lose work asks first, with the question described in Close a project; anything else closes at once. When the last project is closed, the overview reads “No projects open”, and the window behind it shows “No project open” with an Open… button.
New, open, save and close
The rail on the left of the overview holds four file actions. Their shortcuts work anywhere in the window, also while the overview is closed:
| Action | Shortcut | What it does |
|---|---|---|
| New project | Ctrl+N | Asks for a folder of frames and opens it as a new project. A folder that holds several stacks asks how to split it first. |
| Open project… | Ctrl+O | Asks for a saved project file (.ffp) and opens it in a new tab. |
| Save project | Ctrl+S | Saves the current project. Dimmed while the current project has nothing to write. See Saving a project for where a first save goes. |
| Close project | Ctrl+W | Closes the current project, asking first if it would lose work. |
These four shortcuts are fixed: they are not part of the keyboard bindings you can change in the settings window (see Default bindings), and they do nothing while a question or the settings window is open.
Reopen a recent project
Under RECENT, the rail lists the last five projects you saved or opened from a project file, newest first. Each row shows the project’s name, when you last used it (“today”, “yesterday” or a date such as “21 Aug”) and its folder. Click a row to open that project, or to switch to its tab if it is already open; the overview closes. The list is kept between sessions.
Cards that need attention
A card that could not do its job shows a coloured headline, a short reason and, where there is something to do, a button.
A failed run, a project whose frames moved, and a subfolder that holds no stack.
| Headline | Second line on the card | What happened | Button |
|---|---|---|---|
| Did not stack | FAILED WHILE ALIGNING (or the stage it failed in) | The last fuse of this project failed. The card shows the error. | Run again |
| Cancelled | STOPPED WHILE FUSING (or the stage you stopped in) | You cancelled the fuse: “You stopped this one. Nothing was written.” | Run again |
| Sources missing | NOTHING TO SHOW | The saved project cannot find its frames: “A project remembers its frames by path. 3 of 3 cannot be found in this location.” | Locate frames… |
| Not a project | LEFT ALONE | A folder that holds no stack, such as a subfolder with notes in it: “This folder holds something else. Nothing was read and nothing was changed.” | none |
“Did not stack”, “Cancelled” and “Sources missing” belong to an open project: the card still switches to its tab when you click it. A “Not a project” card has no project behind it; clicking it does nothing, and it disappears once the same folder opens successfully.
Locate frames… asks for the folder where the frames are now and checks that they are the same frames before the project uses them; see Locate frames… in Opening and fusing in detail.
Run a stack again
Run again on a “Did not stack” or “Cancelled” card starts that project’s fuse again, from the beginning, with the frames and settings of the run that stopped. It does not continue where the earlier run stopped, but alignment already worked out for the same frames is reused from the cache, so the second run is often quicker. When it finishes, the usual Keep this fused result? question appears.
- Run again does nothing while any fuse is running, in this project or another one. Wait for that run to end, or cancel it, then click again.
- If the project holds brush strokes that are not in a checkpoint yet, the window first asks “Save your edits first?” with Save and fuse and Fuse anyway, because a new fuse would lose them (see Fusing again).
- The card keeps its headline until a run of this project succeeds.
Several stacks at once
A folder with several stacks
When you open a folder that holds more than one stack, the window asks how to split it, for example “This folder holds 2 stacks of 3 frames each.” The question and its answers are explained in A folder with several stacks.
If you answer Open as 2 projects (the number follows your folder), each stack opens as a project of its own: one tab and one card per stack. A stack that sits in its own subfolder takes that subfolder’s name. Open as one project keeps every frame in a single project instead.
One folder, two stacks: each opens as its own project.
You can also open several folders one after another. Each becomes a tab of its own, and the last one you opened is the current one.
Fuse several projects one after another
Only one fuse runs at a time. While one project is fusing, Fuse stack on any other tab reads Queued: click it and that project waits in line, with its place shown in the bottom bar (“Queued (2)”). The tab strip marks the fusing tab with a small play triangle and a waiting tab with three dots. How the line works, and how to take a project out of it, is explained in Fuse several stacks: the queue.
Each project asks its own Keep this fused result? question when its fuse ends, and only while its tab is selected, so you can let several projects fuse one after another and answer the questions afterwards, in any order. Use the overview to see which projects are done: a card that gained a checkpoint reads “1 checkpoint” once you have kept its result.
Stop a run: the Cancelled card
Cancel in the toolbar stops a running fuse (see Pause, resume and cancel). Nothing is written and the project stays as it was before the run. Its card in the overview then reads “Cancelled”, with the stage you stopped in and a Run again button.
A fuse cancelled while fusing. Run again starts it again.
Notifications
Anything the window has to tell you outside a dialog is kept as a notification: a failed fuse (“Setup failed”, “Alignment failed”, “Preparing failed”, “Fusing failed”, “Developing failed” or “Writing failed”) or a failed save (“Save failed”), a notice from a run such as “Brightness not fully matched” for each frame whose brightness could not be fully matched, “3 frames unaligned” when you keep a result with frames that could not be aligned, “Some images were skipped” when an opened folder held something else, and the crash notice described below. Notifications last for the session; closing the window clears them.
The bell and its number
The bell sits at the bottom of the narrow icon bar on the left edge of the window, just above the Settings gear. A number on the bell counts the notifications that arrived since you last opened the notification center; it disappears once you open the center.
Read the notification center
- Click the bell (Notifications). The notification center slides in beside the icon bar and lists every notification of the session, newest first.
- Click a row to select it. The selected row has an orange outline and shows the full message; the other rows show only their title and context line.
- To close the center, click the bell again, click the × at its top right (Close notifications), or press Escape.
Each row has an icon for its kind (information, warning, failure or crash), a title and a context line: where it came from (“Import”, “Save” or “Startup”; nothing for a fuse), the project, the frame or file it concerns, and the time, for example “Import · 00:19”.
The notification center, newest first, with the selected row showing its full message.
Opening the center marks every notification as read. Reopening it keeps the row you selected last. With no notifications yet, it reads “No notifications yet” and “Messages will remain here for this session.”
You can also use the keyboard once you have clicked a row: Up and Down move the selection, Return or Space shows or hides the selected row’s message, and Escape closes the center. The bell and the center work with no project open.
The center and the Projects overview do not show together: opening the overview closes the center, and clicking the bell while the overview is open closes the overview and opens the center.
Pop-up messages
When a new notification arrives while the window is in front and neither the center nor the overview is open, it also appears as a pop-up message at the top left of the canvas, under the toolbar:
- Pop-up messages appear one at a time, oldest first. Each stays 6 seconds, a crash notice 10 seconds. Resting the pointer on one keeps it up.
- Click the pop-up message or its Open notification text to open the center with that notification selected.
- Click the × (Dismiss notification) to close only the pop-up; the notification stays in the center and on the bell’s number.
While the center or the overview is open, no pop-up message appears. What arrives meanwhile is counted on the bell and is not shown as a pop-up later.
The update notice
Once per start, in the background, FocusForge asks whether a newer release
exists (see Updates). A newer one adds a
notification titled “FocusForge <version> is available” with the context
line “Startup · <time>” and the message “FocusForge <version> has been
released. Download page: <link>”. It also appears as a pop-up message with the link
Open download page:
The update notice as a pop-up message.
Click Open download page (or the pop-up) to open the release page in your browser; the pop-up then closes and the notification stays in the center. The notice appears at most once per start and never when the check finds nothing newer, fails or is switched off.
Banners while the window is in the background
When every FocusForge window is behind other applications, a new notification appears once as a banner from your operating system instead of a pop-up message. The banner carries only the title and a short context line; the full message stays in the center. Moving between the main window and a detached image window does not count as leaving, and no banner is shown while the Projects overview is open. Dismissing a banner changes nothing in FocusForge.
On Linux the banners go through the desktop’s notification service. They are
credited to FocusForge when assets/focusforge.desktop is installed as
~/.local/share/applications/focusforge.desktop. Without a notification
service there are no banners, and everything else works as usual.
The crash notice
If FocusForge stopped unexpectedly last time and left a crash report, the next start adds a notification titled “Previous session stopped”, with the context line “Startup · 1 crash report”. Select it to read the message and its two buttons.
The crash notice. Reading it does not mark the report as dealt with; the two buttons do.
| Button | What it does |
|---|---|
| Acknowledge | Marks the crash report as dealt with, so the notice does not come back at the next start. The row then reads “Acknowledged” and the button is dimmed. |
| Diagnostics | Acknowledges the report the same way and opens the settings window on its Diagnostics section, where you can package a bundle to send with a bug report. See After a crash. |
Reading the notice, letting its pop-up run out or closing the center does not acknowledge anything: “Reading or closing this notice does not acknowledge the report.” Until you acknowledge it, the notice returns at every start.
If the report cannot be marked, the row says “Could not acknowledge report. Evidence remains unreported. Try the explicit action again.” If the folder with the crash reports cannot be read at all, the notice is titled “Crash reports unavailable”, and Diagnostics still works.
Close a project
You can close a project in four ways: the × on its tab, the × on its card in the overview, Close project in the overview’s rail, or Ctrl+W for the current project.
A project that would lose nothing closes at once. That includes a folder you opened but never fused (its frames stay where they are) and a project with nothing changed since you last saved it.
A project with work that is not in a project file asks “Save this state first?”. The dialog names the project (“Closing frames”) and what would be lost, for example “1 unsaved checkpoint.” or “2 unsaved brush strokes”. For a project that was never saved it adds “Saving asks where to write the project file.”; for one opened from a file it names that file.
Closing a fused project that has not been saved yet.
| Button | What it does |
|---|---|
| Cancel | Keeps the project open with everything in it. |
| Save and close | Saves the project, asking where for a first save, then closes it. If you cancel the file dialog, the project stays open. |
| Close anyway | Closes the project. Everything that was not saved is gone. |
The × at the dialog’s top-right corner (Close dialog) and the Escape key do the same as Cancel. While the question is open, the rest of the window does not respond.
Quit FocusForge
Quit with the × (Close) at the right end of the tab strip, or the way your desktop closes windows (for example Alt+F4). If no project would lose work, the window closes at once.
Otherwise FocusForge asks “Quit without saving?” (“Quitting FocusForge”) and says how many projects would lose work, for example “2 projects have unsaved work. Quitting now loses all of it.” A project counts when it holds an unsaved checkpoint, brush strokes, an unsaved deletion, or a fused result still waiting for your Keep or Discard.
Quitting with two projects that hold unsaved work.
| Button | What it does |
|---|---|
| Cancel | Keeps the window and every project open. |
| Save all and quit | Asks where to save each project that has never been saved, then saves every project with unsaved work in turn; a project opened from a file is saved back to that file. The window closes after the last save. If you cancel a file dialog or a save fails, quitting is called off and what was already saved stays saved. |
| Quit without saving | Closes the window. Everything that was not saved is lost. |
Warning: Quit without saving cannot be undone. A fused result you have not kept and saved is gone, and so are unsaved brush strokes.
As with the close question, the corner × (Close dialog) and Escape act as Cancel.
Tip: Before a long break, open the Projects overview: every card that carries UNSAVED after you have fused or retouched it holds work that only exists in memory. Save it with Save project (Ctrl+S).
From the command line
focusforge-cli stack can fuse a whole folder of stacks in one go, with
presets, re-runs of single stacks, resuming and a review of the results. That
material is in the appendix:
Batch runs from the command line.
Presets
Bundling the algorithm and its parameter values into a TOML file for
--preset: see Presets.
The stage cache
How alignment results are kept and reused between command-line runs: see The stage cache.
Reviewing the results
Reading the outcome of every stack in a batch with focusforge-cli review:
see Reviewing the results.
The settings window
The settings window holds the preferences that apply to FocusForge as a whole, not to one stack: whether to use the graphics card, how much memory FocusForge may use, whether it looks for a newer release, how the Images panel looks, where FocusForge keeps its files, which mouse and key gestures do what, and the diagnostics bundle you attach to a bug report.
Note: The Settings tab in the dock on the right is a different thing: it holds the fusion parameters of the open stack. It has its own chapter, Stacking settings.
Everything you change here is saved at once in the settings file; there is no OK or Apply button.
Open and close the window
- Click Settings, the gear at the bottom of the narrow icon bar on the left edge of the window, just below the notification bell.
- The window opens on Performance. Click a section in the list on its left to switch: Performance, Appearance, Storage, Input map, Diagnostics or About.
- To close it, click Close settings (the × in its top-right corner) or press Esc, from any section, also right after typing in one of its fields.
The settings window in front of the main window. The gear that opens it is at the bottom-left corner.
While the settings window is open, the main window behind it does not react: clicks on the toolbar or the canvas do nothing, and window shortcuts such as Ctrl+S are ignored until you close it. A fuse that is already running keeps running.
Open a section at start-up
focusforge-gui --settings-section <SECTION> opens the window on one section
as soon as FocusForge starts. <SECTION> is one of:
| Section | Value |
|---|---|
| Performance | performance |
| Appearance | appearance |
| Storage | storage |
| Input map | input-map |
| Diagnostics | diagnostics |
| About | about |
Any other value is refused and FocusForge does not start; the message names the accepted values.
Performance
Performance decides how FocusForge uses your computer while it fuses: on the graphics card or on the processor only, and how much memory it may take.
Performance before the first fuse of the session. The Host memory number depends on your computer.
| Setting | Values | Default | What it does |
|---|---|---|---|
| GPU processing | on / off | on | Fuses on the graphics card (GPU) when the fusion method supports it. Off fuses on the processor only. |
| Backend | text | empty | What the last fuse actually ran on, and why. |
| Host memory | a number and a unit (MiB or GiB) | the amount FocusForge works out for itself | The most of the computer’s own memory (RAM) a fuse may use. |
| VRAM | a number and a unit (MiB or GiB) | “Not probed yet” until a fuse has used the graphics card, then the amount FocusForge works out for the card | The most of the graphics card’s memory a fuse may use. |
Use the graphics card
GPU processing governs fusing only. How the window itself is drawn is separate: on a machine without a GPU the window draws on a software adapter whatever this switch says (see Machines without a GPU).
With GPU processing on, FocusForge tries the graphics card for every fuse whose fusion method has a GPU version, and uses the processor when that is not possible. The result is the same either way; the GPU is usually faster. Switch it off if a graphics driver misbehaves or the card is busy with other work. The switch applies to the next fuse you start, never to one already running, and it is remembered after you quit.
Backend stays empty until a fuse has run in this session. Then it says
what that fuse used, gpu or cpu (the processor), followed by the reason.
For example:
- “cpu — GPU processing is off”: you switched GPU processing off.
- “gpu — …”: the fuse ran on the graphics card named there.
- “cpu — the GPU device was lost earlier in this session”: the graphics card failed earlier, so FocusForge stays on the processor until you restart it.
- “cpu — … has no GPU implementation”: the chosen fusion method only runs on the processor.
If a fuse finds no usable graphics card at all, the switch keeps its setting but cannot be changed for the rest of the session, and the VRAM row reads “Unavailable”.
Limit the memory a fuse may use
FocusForge decides on its own how much memory a fuse may use: from the RAM that is free when the run starts, and from the memory of the graphics card. Each row under LIMITS shows the amount in effect. You can set a lower one, for example when the graphics card is shared with your display. A limit can only lower what FocusForge would use, never raise it. A lower limit can make a fuse slower but never changes the result. It is not a ceiling: FocusForge can still take more memory than the limit while it fuses TIFF frames (see How much free RAM a stack needs).
- Host memory applies from the next fuse you start. A retouch or edit session stays within it too, and a limit below what one frame needs refuses the session and names the limit. A changed limit reaches an open session at once: if it is too small for that session’s frames, the session keeps the frames it has and a warning names the limit. On camera RAW frames, Lighten and Darken strokes read the session’s own developed frames, so they need no extra memory.
- VRAM shows “Not probed yet” until a fuse has used the graphics card, and you can enter a number before that. Once the card’s memory is known, a changed VRAM limit counts from the next start of FocusForge, and the line “Caps only lower the probed budgets. Changes apply from the next start.” appears under the rows.
On the command line, the same two limits are the --max-host-memory <SIZE>
and --max-vram <SIZE> options of stack and align.
Set a limit
Click the number of a row, type a whole number and pick MiB or GiB in the menu beside it.
- The number counts when you confirm it: press Return, click out of the field, click another section in the list or close the window. A unit you pick counts at once, with the number as shown.
- To remove a limit, empty the number and confirm. The row then shows the amount FocusForge works out for itself again.
- The number accepts digits only, so a unit cannot be left half-typed.
A number above what the computer can give stores no limit and names the maximum; the figure is that of the computer the picture was taken on.
A Host memory number above what the computer can give stores no limit: the
row shows FocusForge’s own amount again and a red line “Max <size> possible.”
names the largest value. The line stays until you confirm the row again, click
another section or close the window. VRAM accepts a number above the
graphics card’s maximum the same way once that is known.
Appearance
Appearance has three settings: Presentation under SOURCE IMAGES, Sharpness heatmap, and Reduce motion under MOTION. The tab scrolls when its content is taller than the window. Presentation chooses how the Images panel shows the frames of a stack:
| Choice | Shows |
|---|---|
| List | one compact row per frame, names only |
| Image list (default) | a small preview of each frame beside its name |
| Large previews | a large preview of each frame |
The Presentation menu, with the two other settings below it. The panel changes as soon as you pick a choice.
Click the menu and pick a choice, or use the Up and Down keys and Return; Esc closes the menu without changing anything. The previews always show your original frames as they are on disk, not an aligned or brightness-adjusted version, and in the editor the frame rows can be looked at but not changed. What each presentation looks like is shown in The Images panel.
Sharpness heatmap (on by default) shows the sharpness inset in the Composite pane while a run fuses; see The window. Reduce motion makes every transition instant: the projects overview, the step calculator, Analytics, the settings window and its sections, dialogs, pop-up messages, the mode switch and the Composite pane’s crossfades.
The choices are saved in the [appearance] table of the settings file and
used at every start. If one cannot be saved, the section shows the reason and
“The selected view is active for this session.”: the new view stays until you
quit, and the next start uses the one saved before.
Storage
Storage shows where FocusForge keeps its files on this computer, and lets you free the disk space used by earlier runs.
Storage on a computer that has not fused yet. Your paths follow the tables in The settings file and Diagnostics and crash reports.
| Location | What is kept there |
|---|---|
| Settings file | settings.toml, everything the settings window and the main window remember (see The settings file) |
| Logs | the log of every session (see The log) |
| Crash reports | the evidence of earlier crashes (see Crash reports) |
| Scratch | temporary files of a fuse (including the results kept for fusing again), of the editor and of the earlier results you look at |
Paths inside your home folder start with ~. A long path is cut off at the
end with “…”. “· not created yet” after a path means that folder does not
exist yet; FocusForge creates it the first time it needs it (the crash folder
only after a crash). “Unavailable” means FocusForge could not work out that
location on this system.
Free disk space used by earlier runs
When FocusForge fuses, it keeps the results of its slowest steps, above all the alignment and the brightness measurement of TIFF and JPEG frames, in the scratch folder. Fusing the same frames again, for example with another fusion method, can then skip those steps. This stored material is the Stage cache row, and it can grow over time. Clear cache deletes it to free disk space. Nothing else in the scratch folder is touched, and your projects, checkpoints and exported images are not affected. The next fuse of each stack simply does those steps again.
Click Clear cache. The line under the row then reads, for example, “Cleared 12 stage entries.”, or “Could not clear the cache: …” with the reason. While any fuse is running, the button is unavailable and the line reads “A run is active.”, because the running fuse uses the stored results.
The command-line equivalent is focusforge-cli cache clear; see
Batch runs from the command line.
Input map
Input map shows which mouse and key gestures are in effect and what each does in the two modes of the main window: STACKING and EDITOR. The INPUT column names the gesture, the other two columns the action; “—” means the gesture does nothing in that mode.
The gestures are grouped by what they are for, each group under its own heading: PROJECT (new, open, save and close a project), VIEW (zoom and pan), FRAMES (choose the source frame), BRUSH, HISTORY (undo and redo), SEARCH and WINDOW (Esc). A gesture sits in the group of what it does in stacking mode, or in the editor if it does nothing in stacking mode, so a gesture you rebind moves to the group of its new action. A gesture that does nothing in either mode is listed last, under OTHER. The SEARCH group shows only while the editor’s function bar is too narrow to show all its tools.
The default bindings, as the Input map shows them.
The line at the top says where the bindings come from: “Built-in bindings.”
when FocusForge uses the shipped defaults, or “Read from <path>: <n> bindings
differ from the built-in ones.” when it read your settings file. If it refused
your [input] table, one red line per problem appears under the line, naming
the file, the line and the problem (see
When FocusForge refuses your bindings).
The list is longer than the window: scroll it with the mouse wheel or drag its scrollbar. It is read-only: clicking a row changes nothing. To change a binding, edit the settings file as described in Keyboard and mouse bindings, then restart FocusForge. The table always shows the bindings that actually took effect at start-up.
Diagnostics
Diagnostics packages FocusForge’s log, any crash reports and a short description of your system into one ZIP file, the diagnostics bundle, for a bug report. Nothing is sent anywhere; you attach the file yourself.
Diagnostics, once its file list has been gathered.
The section shows:
- the list of files the bundle will hold, with their sizes (“Collecting…” while FocusForge gathers it);
- Include minidumps, off by default, which adds the memory snapshots of crashed sessions and warns that they cannot be cleaned of personal data;
- Save to, the path of the ZIP file, a new dated name by default;
- Create bundle, which writes the file, and the line under Save to that reports the result or asks before overwriting an existing file.
Every step, what each file holds and what the bundle strips out (your home folder path and user name, and never any image data) are in Diagnostics and crash reports.
About
About shows which FocusForge you are running and under which terms.
About. The version number depends on the build you installed.
- Version: the version of this build. Quote it in a bug report.
- License: GPL-3.0, the GNU General Public License, version 3.
- UPDATES: see Updates.
- NOTICE: “Copyright © 2026 Johannes Sood”, the statement that FocusForge is
free software you may redistribute and modify under the GNU General Public
License version 3, and that it comes with ABSOLUTELY NO WARRANTY. The full
licence text is in the
LICENSEfile that comes with FocusForge. - Source: where the source code lives,
github.com/jjjsood/FocusForge.
Updates
FocusForge can tell you when a newer release exists. The check never downloads or installs anything: it only reports the newest final release (never a pre-release or draft) and links to its download page.
- Check for updates at start (on by default): once per start, FocusForge
asks the release server in the background whether a newer release exists.
A newer one raises a notification, “FocusForge
<version>is available”, with the link Open download page; clicking it opens the page in your browser. Being up to date, having no network or a failed request shows nothing. With the switch off, FocusForge makes no request at start. - Check now asks the same question at once, whatever the switch says,
and shows the answer beside the button: “Checking for updates…”, then
“FocusForge is up to date.”, or, under the row, “FocusForge
<version>is available.” with Open download page and Skip this version. A failed check reads “Could not check for updates: “ followed by the reason. - Skip this version remembers that release: the check at start no longer
announces it, and the line reads “FocusForge
<version>is available (skipped).” A later release is announced again. Check now still shows a skipped version.
The result of Check now for a newer release.
The request carries only the program’s name and version, no identifier,
setting or file data. It waits at most five seconds. The same check is
available on the command line as focusforge-cli check-update; see the
command-line reference. If the choice
cannot be saved, the section shows the reason and “The change is active for
this session.”
Keyboard and mouse bindings
Default bindings
These are the keys and mouse gestures FocusForge ships with, in the groups the Input map section shows. The window lists sixteen rows, one more while the SEARCH group shows; painting with the left mouse button in the editor works the same way as the other gestures but is not listed in the window.
| Input | In stacking mode | In the editor | Name in the settings file |
|---|---|---|---|
| PROJECT | |||
| Ctrl + N | choose a folder of frames to open as a new project (see New project) | the same | fixed |
| Ctrl + O | open a saved project file | the same | fixed |
| Ctrl + S | save the current project (see Checkpoints and saving) | the same | fixed |
| Ctrl + W | close the current project (see Projects, notifications and quitting) | the same | fixed |
| VIEW | |||
| Mouse wheel | zoom in or out at the pointer | zoom in or out at the pointer | wheel |
| Shift + wheel | pan left and right | make the brush larger or smaller | shift+wheel |
| Middle-button drag | pan | pan | middle-drag |
| Space + left-button drag | pan | pan | space+left-drag |
| FRAMES | |||
| Ctrl + wheel | step to the previous or next result or frame in the left pane | the same; what you step to is also the brush source | ctrl+wheel |
| Alt + left-click | select the frame that supplied the sharp detail under the pointer | the same, which also makes it the brush source | alt+left-click |
| BRUSH | |||
| Left-button drag | — | paint with the brush | left-drag |
| 1, 2, 3, 4 | — | choose the brush mode Normal, Lighten, Darken or Detail | 1, 2, 3, 4 |
| P | — | switch the brush preview on or off | p |
| HISTORY | |||
| Ctrl + Z | — | undo the last stroke | ctrl+z |
| Ctrl + Shift + Z | — | redo | ctrl+shift+z |
| SEARCH | |||
| Ctrl + K | — | search the editor’s tools by name, while the function bar is too narrow to show them all | ctrl+k |
| WINDOW | |||
| Esc | close the front-most dialog or refusal, the Projects overview, the step calculator or Analytics, or the settings window | the same | fixed |
The rows marked “fixed” are not part of the [input] table and cannot be
changed. Ctrl + N, O, S and W work anywhere in the main window, but not while
the settings window or another question is open.
How these gestures are used is explained in The window and Retouching.
In lists and menus, Up and Down move the selection; on a focused slider, Left and Right move it by one step.
Rebind a gesture
The window has no editor for bindings. You change them by editing the
[input] table of the settings file in a text editor:
- Quit FocusForge.
- Open
settings.toml(the Settings file row in Storage shows where it is). - Find the
[input]table. FocusForge writes it on its first start, with the default bindings and a comment that lists the accepted actions. - Change the
stackingoreditoraction of the gesture you want. Delete thestackingoreditorline to make the gesture do nothing in that mode. - Save the file and start FocusForge. Check the Input map section.
For example, to make Shift + wheel change the brush softness instead of its size in the editor:
[[input.bindings]]
trigger = "shift+wheel"
stacking = "pan-horizontal"
editor = "brush-softness"
Each [[input.bindings]] entry names one trigger, one of the names in
the last column of the table above. Entries you leave out keep their default.
The accepted actions are:
| Action | What it does |
|---|---|
zoom-at-cursor | zoom in or out at the pointer |
step-source-frame | step to the previous or next result or frame |
pan-horizontal | pan left and right |
pan | pan in any direction |
brush-size | make the brush larger or smaller |
brush-softness | make the brush edge softer or harder, 5 points per wheel step |
undo | undo the last stroke |
redo | redo |
pick-source-under-pointer | select the frame that supplied the detail under the pointer |
paint | paint with the brush |
brush-mode-normal, brush-mode-lighten, brush-mode-darken, brush-mode-detail | choose that brush mode |
toggle-brush-preview | switch the brush preview on or off |
An action only works with a matching kind of gesture: the zoom, stepping,
horizontal pan, brush-size and brush-softness actions need a wheel trigger,
pan and paint a drag, and the other actions a key or a click.
You can only give the shipped gestures new actions; you cannot add a new
gesture such as alt+wheel or ctrl+y. (Alt is not a wheel modifier in
FocusForge; it only belongs to the pipette, Alt + left-click.)
When FocusForge refuses your bindings
FocusForge checks the whole [input] table at start-up. If anything in it is
wrong, it refuses the table as a whole and starts with the default bindings,
so you never end up with half your changes applied. A table is refused when:
- the file is not valid TOML;
- a
triggeris not one FocusForge knows, or is not one of the shipped gestures (alt+wheel, for example); - an action is not one of the actions listed above;
- the same
triggerappears twice.
The window does not show the problem. It is written as a warning to the log
(focusforge.jsonl in the Logs folder shown in Storage; see
The log) and, if you started focusforge-gui from a
terminal, there too. The warning names the file, the line and the problem,
for example:
settings.toml:<line>: trigger "shift+wheel" duplicates the one already read at line <first line>
FocusForge leaves the refused table in the file as you wrote it. Fix the line it names and restart.
The settings file
FocusForge keeps everything it remembers between sessions in one text file,
settings.toml, in your user configuration folder:
| System | Settings file |
|---|---|
| Linux | ~/.config/focusforge/settings.toml (or $XDG_CONFIG_HOME/focusforge/settings.toml) |
| macOS | ~/Library/Application Support/focusforge/settings.toml |
| Windows | %APPDATA%\focusforge\config\settings.toml |
The Settings file row in Storage shows the exact path. The file is in TOML format, one table per topic:
| Table | Holds | Changed by |
|---|---|---|
[recent] | the projects in the RECENT list of the Projects overview, up to five, each with its path | opening and saving projects |
[appearance] | presentation = "list", "image-list" or "large", sharpness_heatmap = true or false, reduce_motion = true or false | Appearance |
[input] | the key and mouse bindings | editing by hand, see Rebind a gesture |
[export] | the export dialog’s last format and its settings | Exporting an image |
[updates] | check_on_start = true or false, and skipped_version, the release version you chose to skip | Updates |
[editor.brush] | the brush’s size, softness, opacity and mode, and the preview switch | the Brush settings |
[performance] | gpu = true or false, and the optional size strings max-host-memory and max-vram | Performance |
For example, after switching GPU processing off and typing a host memory limit, the file holds:
[performance]
gpu = false
max-host-memory = "8GiB"
The file has no version number. When FocusForge saves one table it leaves the
others, and any comments you wrote in them, exactly as they were. A file that
is not valid TOML is never overwritten: FocusForge then starts with the
defaults, cannot save changes until you fix or delete the file, and says why
in the log. A single wrong entry in [performance], such as an unparsable
limit, falls back to its default alone, also with a warning in the log.
To start from scratch, quit FocusForge and delete settings.toml. The next
start writes a fresh one with the default bindings.
Use another settings file
focusforge-gui --config-dir <DIR> makes the window read and write
<DIR>/focusforge/settings.toml instead (the whole file: recent projects,
appearance, input map, export choice, performance and update settings), for example to try settings
without touching your usual ones, or to keep one set per project folder. Only
the settings file moves: the log, the crash reports and the scratch folder
stay in the data folder.
Diagnostics and crash reports
FocusForge keeps a record of what it does, and if it ever crashes, it keeps evidence of that too. All of it stays on your own computer: nothing is sent anywhere, ever. When you ask someone for help, for example in a bug report, you package that record into one ZIP file, the diagnostics bundle, and attach it yourself.
This page explains what FocusForge keeps, what happens after a crash, and how to make a bundle from the Diagnostics section of the settings window. The command-line way to make the same bundle is at the end.
What FocusForge keeps
The log
Every session of the window, and every run of focusforge-cli, adds to one
log file, focusforge.jsonl, in the logs folder of FocusForge’s data
folder. It holds one line per event: every warning and refusal, what a fuse
did and at which stage, which graphics adapter was used, and why a setting
fell back to its default. When the file reaches 8 MiB it is renamed to
focusforge.1.jsonl and a new one starts; at most five old files are kept,
so the log never takes more than about 48 MiB.
The data folder depends on your system:
| System | Data folder |
|---|---|
| Linux | ~/.local/share/focusforge (or $XDG_DATA_HOME/focusforge) |
| macOS | ~/Library/Application Support/focusforge |
| Windows | %APPDATA%\focusforge\data |
The Storage section of the settings window shows the exact folders on your computer; see Storage.
Tip: When the settings window tells you a problem is “named in the log” (a refused key binding, a memory limit in the settings file that does not parse), search
focusforge.jsonlforWARN. If you startfocusforge-guifrom a terminal, the same warnings also appear there.
Crash reports
If FocusForge fails in a way it can catch itself, it writes a crash report
into the crashes folder next to logs: the error message, where in the
program it happened, and a short recording of the most recent log activity,
so a crash you cannot repeat still comes with context.
A harder crash, one the program cannot catch (a segmentation fault, an abort), is recorded differently. Before doing any work, FocusForge starts a small watcher process beside itself. If the main process dies, the watcher writes a minidump (a snapshot of the crashed program’s memory) and a small file naming the program, its version, the process number and the signal that ended it.
Either way, the evidence stays in the crashes folder until you package it.
After a crash
The next time you start the window after a crash, FocusForge tells you once, as the notification Previous session stopped, for example “A previous session stopped unexpectedly. One crash report was detected at startup.” It appears as a pop-up message at the top left of the canvas and stays in the notification center for the session. How the notification center works, and the notice’s two actions, is in Notifications. In short:
- Acknowledge marks the listed crashes as reported, so the notice does not come back.
- Diagnostics does the same and opens the settings window on the Diagnostics section, ready to make a bundle.
- Reading the notice, letting its pop-up message expire or closing the notification center does not mark anything: the notice comes back at the next start.
Creating a bundle also marks every crash it packaged as reported. If the crash folder cannot be read, the notice reads Crash reports unavailable instead; you can still make a bundle.
focusforge-cli prints a one-line reminder before doing anything else
instead, for example:
1 earlier run crashed -- run focusforge-cli diagnostics to package the evidence
Make a diagnostics bundle
- Click Settings (the gear at the bottom of the icon bar on the left
edge of the window), then Diagnostics. Or start FocusForge with
focusforge-gui --settings-section diagnostics. - Wait until the file list has filled in (see below).
- Leave Include minidumps off unless someone asks for minidumps.
- Check the Save to path, or type another one.
- Click Create bundle.
- Attach the ZIP file to your bug report or e-mail.
The Diagnostics section once the file list has been gathered.
Read the file list
The list at the top shows exactly the files the bundle will hold, each with its size: in whole bytes below a kilobyte (a small file reads “312 B”), in whole kilobytes below a megabyte, with one decimal above. The list scrolls inside its box when it holds more rows than fit.
FocusForge gathers the list in the background, from the moment it starts, so the section may show “Collecting…” for a moment before the list fills in. It gathers the list again when you switch Include minidumps. Create bundle stays unavailable until the list is complete; the switch and the Save to field can be used meanwhile.
| Entry | What it holds |
|---|---|
adapter.json | the graphics adapter FocusForge last selected and its limits, read from the log |
configuration.json | the settings a new run would use right now, and where each value came from, including which settings.toml was read (the one under --config-dir when you gave it) |
system.json | the operating system, processor cores and memory figures |
version.json | the FocusForge version and build, the creation time, and any files left out |
logs/… | focusforge.jsonl and its older rotated files |
crashes/… | the crash reports and crash records, if there are any |
If FocusForge finds neither a log nor a crash report, the list says “No logs or crash evidence were found.” The four generated entries are still included.
Include minidumps
Minidumps are left out by default, because they cannot be cleaned of personal information (see What the bundle leaves out). Switch Include minidumps on only when the person helping you asks for them. FocusForge then gathers the list again, adds every minidump in the crash folder, and marks each one “· not redacted” after its size. A warning appears under the switch: “Not redacted — binary memory contents. Marked in the list above.”
With Include minidumps on, every minidump is marked “not redacted”.
Choose where to save
Save to proposes a new file named after the current date and time, such
as focusforge-diagnostics-20261104T093015Z.zip, in a diagnostics folder
inside the data folder. The field is narrower than the path; click into it
and press End to see the file name. You can type any other path, for example
one on your desktop. FocusForge creates missing folders when it writes.
Create the bundle
Click Create bundle. The button reads Writing… and a progress bar runs while the file is written in the background; the window stays usable. Then the line under Save to says what happened:
- “Bundle created successfully.” — the ZIP is at the path shown. FocusForge already proposes a new dated name for the next bundle, so clicking Create bundle again never overwrites the one you just made.
- “Could not write the bundle. Nothing was written.” — the path could not be written (a folder you may not write to, a full disk, a path without a file name). Nothing is left behind; choose another path and try again.
If the path you typed already exists, FocusForge says so before writing anything: the field turns amber, the line reads “This file already exists. Creating the bundle will overwrite it.” and the button becomes Overwrite and create. Click it to replace the file, or change the path to keep the old one.
A path that already exists: the button changes to Overwrite and create.
Note: After a bundle is written the field shows the next dated name in the data folder, also when you typed a path of your own. Type your path again if you want the next bundle there.
What the bundle leaves out
FocusForge builds the bundle from a fixed list: the log files, the crash folder’s reports and, only when you ask, its minidumps, plus the four generated entries. Nothing else from the data folder goes in, and no image data is ever included, whatever else lies in those folders.
Every text entry is cleaned on the way in: your home folder’s path is
replaced by [home] and your user name by [user], wherever they occur.
A minidump is binary memory from the crashed program. It can hold file and module paths, and fragments of whatever the program was handling, so it cannot be cleaned that way. That is why it is off by default and marked “not redacted” when you include it.
From the command line
focusforge-cli diagnostics makes the same bundle without the window:
focusforge-cli diagnostics [-o out.zip] [--include-minidumps] [--force]
It prints the planned file list first, then writes the ZIP: by default a
dated focusforge-diagnostics-….zip in the current folder, or the path given
with -o. --include-minidumps adds the minidumps with a warning. A path
that already exists is refused unless you add --force. Like the window, it
marks the crashes it packaged as reported. All flags are in the
command-line reference.
Troubleshooting and FAQ
This chapter starts from what you see: a dialog, a notification, a red “Failed”, a line on the terminal. Find the message (your browser’s search works well here), read what it means, and follow the fix. Each entry links to the section of the manual that explains the function behind it.
Messages are quoted exactly as FocusForge shows them. Where a message names a
file or a number, this page writes it as <path>, N or “…”.
Opening a folder or project
“No frames here”
The refusal for a folder that holds nothing FocusForge can stack.
FocusForge reads TIFF (.tif, .tiff), JPEG (.jpg, .jpeg) and camera RAW files. This folder holds none.
Cause: the folder you opened holds no frames FocusForge can read. PNG files are not stacked; neither are documents or sidecar files.
Fix: click Pick another folder… and choose the folder that holds the
frames, or click Cancel or press Escape. If your frames are PNG files, export TIFFs or JPEGs
from your raw converter instead, or open the camera RAW files directly.
The same dialog title appears with other messages:
| Message | Cause and fix |
|---|---|
“<path>: not a folder of frames or a FocusForge project” | You opened a single file that is neither a frame nor a project file. Open the folder of frames or the .ffp file instead. |
“<name> is a BigTIFF file, which FocusForge cannot read. Save the frames as standard TIFF and open them again.” (titled “These frames cannot be read”) | A frame is BigTIFF, or uses a TIFF layout other than standard 8- or 16-bit TIFF (“<name> uses a TIFF layout FocusForge cannot read. Save the frames as standard 8- or 16-bit TIFF and open them again.”). Re-export the frames as standard TIFF. The same title also carries “<name> is not a TIFF file, though its name says so.” (the file is not a TIFF despite its .tif or .tiff name: restore or re-export it), “<name> is damaged: its TIFF header does not read.” (the start of the file is damaged: restore or re-export it) and “<name> could not be read: …” (the operating system’s reason follows: check that the file is there and readable). |
“<path> is no longer on disk. This project cannot be fused again until it is back.” (titled “A frame is no longer there”) | You pressed Fuse stack on a project whose frames were moved or deleted. On a saved project, Locate frames… chooses the folder that holds them now; an unsaved one offers Close. See The frames are no longer there. |
See: “No frames here” in Opening and fusing in detail.
“These images are not one stack”
The dialog title for a set of files that cannot form one stack:
| Message | Cause and fix |
|---|---|
| “These files mix camera RAW and TIFF. A stack is one kind of file.” | Pick files of one kind. The message names the kinds you mixed: “camera RAW and JPEG”, “JPEG and TIFF” or “camera RAW, JPEG and TIFF”. |
| “These files are in different folders. A stack’s frames share one folder.” | Move the frames into one folder, or open the folder with New project. |
“The selected images must all have one size” (Lightroom Classic or darktable)
The selected images must all have one size. Most are 512x340, but odd.tif is 365x364. Deselect it and try again.
The selected images must all have one size, but no size is shared by most of them: <list>. Keep only images of one size and try again.
Cause: the photos you sent from Lightroom Classic or darktable are not all the same size in pixels, so they cannot form one stack. The sizes and file names shown here are examples; the message names yours. An image that is the result of an earlier FocusForge run is marked as such in the list.
Fix: deselect the images the message names (or, in the second message, keep only images of one size) and send the selection again. See Use FocusForge from Lightroom Classic and darktable.
“This project cannot be opened”
A file named .ffp that is not a FocusForge project.
| Message | Cause |
|---|---|
| “This file is not a FocusForge project.” | The file was given the .ffp name but is something else. |
| “The file was cut short — it ends before the project does.” | The file is incomplete: an interrupted copy or download, or a full disk while saving. |
| “The project file is damaged: part of its saved history no longer reads back as it was written.” | The file was changed or corrupted after FocusForge wrote it, or it was written by an older version that lacks records the current one needs. |
| “The file could not be read: …” | The system refused to read the file; the rest of the message says why, for example a missing permission. |
Fix: click Close. Try a backup copy of the project if you have one. Otherwise open the folder of frames and fuse again: that makes a new project (retouching you did in the damaged one is lost).
See: “This project cannot be opened”.
A RAW project saved by an earlier version
A RAW project saved by an earlier version stored a clipped 16-bit result. FocusForge keeps a RAW result unclipped, so it refuses the old project. The window shows the damaged-history message of “This project cannot be opened”. The command line names the cause:
error: <path>: is a RAW project saved by an older version, which stored a clipped 16-bit result; stack its source frames again to open it
Fix: open the RAW frames and fuse again; that makes a project in the current form. Exit status 1. See: “This project cannot be opened”.
“The frames are no longer there”
A project remembers its frames by path. N of N cannot be found in this location.
Cause: the project opened, but its source frames are not where it recorded them: the folder was moved, renamed or deleted, or the project file was copied to another computer without its frames. History and Z-Map are intact, and fused results still show.
Fix: click Locate frames… and choose the folder the frames are in now. If you click Close, you can still look at and export fused results, but not retouched checkpoints, and you cannot fuse again until the frames are back. The project’s card in the projects overview reads “Sources missing” and offers Locate frames… later.
See: “The frames are no longer there”.
“The source frames are not the same”
The project was made over N frames. The frames in this location give a different fingerprint.
Cause: files with the right names are where the project expects them, but their content changed: they were edited, re-exported from the raw converter, or replaced by other frames with the same names. Retouching paints from frames by their place in the row, so wrong frames would put wrong pixels into the result.
Fix: click Locate frames… and choose the folder with the original frames. Use Open anyway only when you know the pictures themselves did not change (for example, you only edited their metadata). Cancel opens nothing.
See: “The source frames are not the same”.
On the command line, see
source frame(s) changed since this project was written.
“These are not the project’s frames”
Cause: the folder you chose with Locate frames… does not hold the project’s frames. The message says why, for example “3 of 3 cannot be found in this folder” or “2 of 3 frames in this folder differ from the ones this project was made over”.
Fix: click Close and use Locate frames… again with another folder. FocusForge accepts a folder only when both the names and the content of the files match, so renaming other frames does not help.
See: Locate frames….
“This folder holds N stacks of M frames each.”
This is a question, not an error (“This folder holds 2 stacks (3 and 4 frames).” when the stacks differ in size). The folder holds frames from several sessions, in subfolders or shot more than a minute apart.
Fix: choose Open as N projects to get one project per stack, or Open as one project if it really is one stack (for example, you paused during a long stack). See A folder with several stacks.
“Some images were skipped”
N subfolder(s) skipped:
Cause: the folder you opened has subfolders without frames, such as notes or sidecar files. They were left alone; the frames opened normally. Each one also shows as a “Not a project” card in the projects overview.
Fix: nothing to do. If a skipped subfolder does hold a stack, open it on its own. See How FocusForge reads a folder.
A frame reads “Preview unavailable”
In the Images list a row reads “Preview unavailable”, and the Frame pane reads “Cannot show this frame:” with the file name.
Cause: FocusForge cannot decode that file: it is damaged or cut short. A fuse of the stack will fail; see the next section. (A TIFF layout FocusForge does not read is refused when the folder is opened instead; see “These frames cannot be read”, under “No frames here”.)
Fix: exclude or remove the frame in the Images panel, or restore or re-export it. See Which files can FocusForge read? and The Images panel.
“Cannot show this checkpoint:”
You click an earlier result and the Frame pane reads “Cannot show this checkpoint:” with the result’s name.
Cause: FocusForge cannot build that picture. A retouched checkpoint needs your source frames, and one may be missing or changed; or the disk that holds the Scratch folder cannot take the temporary file.
Fix:
- Put the frames back, or locate them.
- Free space on the disk of the Scratch folder, listed under Storage.
- Click the result again.
Fusing
“Failed”: “Setup failed”, “Alignment failed”, “Preparing failed” or “Fusing failed”
A failed fuse: Retry in the toolbar, “Failed” in the bottom bar, one notification on the bell.
The bottom bar reads “Failed” in red, Retry replaces Fuse stack, the bell shows a new notification, and the project’s card in the projects overview reads “Did not stack”. The notification’s title names the step that failed (“Writing failed” and “Developing failed” are the other two); its full message (click the bell, then the row) opens with a sentence naming the file, for example “02.tif could not be read. It may be damaged, or it changed after the folder was opened.”, and the line below gives the reason, for example:
| Full message | Cause |
|---|---|
“<path>: IFD value for tag 273 runs past end of file” | The frame’s file is cut short, for example by an interrupted copy. |
Fix: Retry runs the same fuse again, which only helps when the cause was passing (a network drive that was briefly away). For a damaged frame, exclude or remove it, or replace it with an intact copy of the file, and fuse again. A TIFF layout FocusForge cannot read is refused when the folder is opened, see “These frames cannot be read”.
See: When a fuse fails and Cards that need attention.
Not enough free space
<dir> has N bytes (X GB) free, but the run needs M bytes (Y GB) there
Cause: before it starts, a fuse measures the room on every volume it
writes to and refuses when one is too small. In the window this is a “Setup
failed” notification and the bottom bar reads “Failed”; on the command line
the line above follows error: and the exit status is 1. Nothing is written.
With several volumes, one such sentence per volume is joined by “; “.
Fix: free space on the volume named, or write to a volume with more room
(-o on the command line), then Retry or run the command again.
See: When a fuse fails.
“Not enough disk space for fast frame switching”
<folder> has N.N GB free; keeping this project's RAW frames developed needs M.M GB. Switching frames develops each one on the way.
Cause: the editor keeps the developed frames of a camera RAW project in temporary files, and the disk that holds the folder named is too full for them. You can go on working; switching between frames is slower.
Fix:
- Free space on that disk; the Scratch folder is listed under Storage.
- Save the project, close it and open it again.
“Not enough free RAM to read this file”
<file>: not enough free RAM to read this file. It needs 820 MB of working memory, which takes about 42 MB more free RAM. Close other programs, or convert the frames to TIFF.
<file>: needs 136 MB of working memory, but the memory limit allows 134 MB for it. Raise the memory limit to at least 542 MB or close other programs, or convert the frames to TIFF.
Cause: one frame needs more memory than is free now (first message) or
than the Host memory limit you set allows (second message). Camera RAW and
JPEG frames meet these messages; TIFF frames are refused only by a limit far
below anything you would set. On the command line the line follows error:
and the exit status is 1; in the window it is the message of the failed run,
see
“Failed”.
Fix:
- Close other programs and start the fuse again. The first message says how much more free RAM it needs.
- For the second message, raise or remove the limit: Host memory under
Limit the memory a fuse may use,
or
--max-host-memoryon the command line. The message names the smallest limit that works. - Convert camera RAW or JPEG frames to TIFF, which needs the least.
How much free RAM each kind of frame needs is in How much free RAM a stack needs.
“The host-derived memory budget cannot hold the alignment’s shared reference data”
the host-derived memory budget of 465140457 B cannot hold the alignment's shared reference data and one registration (607693354 B); free memory on this machine or align fewer or smaller frames
Cause: not enough RAM is free to line the frames up. The numbers are bytes: the memory FocusForge may use and the memory the alignment needs; they differ with your frames and your computer. TIFF, JPEG and camera RAW frames can meet this message. Nothing is processed.
Fix: close other programs and start the fuse again. The amounts to free per kind of frame are in How much free RAM a stack needs.
“Keep this fused result?”
00.tif and 02.tif could not be aligned and were fused as they are.
Cause: the fuse finished, but some frames could not be aligned and were used unmoved. Very blurred frames at the ends of a stack often cannot be aligned and contribute little anyway.
Fix: look at the result. If it shows no doubled edges or smeared
detail, click Keep. Otherwise click Discard and try one change at a
time: exclude the named frames, switch Mode to Translation only, or
switch Reference Policy. The question needs an answer; Escape does not
close it.
See: When a frame cannot be aligned.
“N frames unaligned”
Kept the fused result with N frames unaligned.
A record, not an error: you kept a result with frames that could not be aligned. Nothing to do. See When some frames could not be aligned.
“Brightness not fully matched”
<file>could not be brought to the same brightness as the other frames.
Cause: brightness equalization needed a larger change for the named frame than Max brightness gain allows, so the frame stays a little brighter or darker than the rest. A Target brightness (stops) beyond about a third of a stop causes one such notice per frame at the default limit.
Fix: if you see blotches where that frame contributed, raise Max brightness gain and fuse again, or exclude the frame.
See: When a frame needs more than the limit.
“Processing notice”
A record, not an error: the fuse had to take another route and still finished normally. The message says which, for example that alignment or fusing moved from the graphics card to the processor (a card with too little memory, or one that failed during the run), or that the alignment kept for fusing again could not be written, so the next fuse of these frames aligns them afresh. The result is the same; only the time it took changes. If such notices keep coming, see The graphics card is not used below.
Fuse stack waits and Levels reads “Allowed range 1 to N”
A saved project can hold a Levels value deeper than its frames support. The slider then keeps the stored number, the line “Allowed range 1 to N” appears under it, and Fuse stack does nothing until the value is back in range.
Fix: move the Levels slider (it ends at the deepest level the frames support), or click Reset All to Default. See Details.
Run again does nothing
Run again on a “Did not stack” or “Cancelled” card does nothing while any fuse is running, in this project or another. Wait for that run to end, or cancel it, then click again. See Run a stack again.
The window closed by itself during a fuse
Cause: the graphics device the window draws with disappeared (a driver reset, an external graphics card unplugged). Rather than hang, the window closes itself a moment later.
Fix: start FocusForge again; if it left a crash report, the next start says so (see “Previous session stopped”). If it happens again, update the graphics driver and make a diagnostics bundle for a bug report.
See: When a fuse fails and Diagnostics and crash reports.
The graphics card is not used (“cpu — …”)
The Backend line in the settings window’s Performance section says
what the last fuse ran on, gpu (the graphics card) or cpu (the processor).
A fuse on the processor gives the same result as one on the graphics card,
only more slowly.
| Backend line | Cause and fix |
|---|---|
| “cpu — GPU processing is off” | You switched GPU processing off. Switch it on for the next fuse. |
| “cpu — the GPU device was lost earlier in this session” | The graphics card failed during an earlier fuse; that fuse finished on the processor. Restart FocusForge to use the card again. |
| “cpu — … has no GPU implementation” | The chosen fusion method only runs on the processor. Use Details for GPU speed. |
When no usable graphics card is found at all, the VRAM row reads “Unavailable” and the switch cannot be changed for the session.
See: Use the graphics card.
“STOPPED WHILE DEVELOPING” and “FAILED WHILE DEVELOPING”
The project’s card in the projects overview names the stage a run ended in. For a camera RAW, JPEG, 8-bit TIFF, or compressed or tiled TIFF stack that can be the first stage, Developing: “STOPPED WHILE DEVELOPING” after you cancelled, “FAILED WHILE DEVELOPING” after a failure whose message names the file.
Cause and fix: a frame that cannot be read fails the run here, before anything is fused; exclude or remove that frame and fuse again. See: Projects, notifications and quitting.
The window is slow on a machine without a GPU
The log holds the warning:
no GPU-backed adapter works; rendering on the software adapter <name>
Cause: none of the graphics adapters in the computer can draw the window, as in a virtual machine or a Remote Desktop session, so FocusForge draws it on a software adapter. Panning, zooming and the live view are slower there. Fusing never computes on a software adapter: it runs on the processor.
Fix: nothing is required. For a faster window, run FocusForge on the machine itself, or install a graphics driver. The GPU processing switch does not change this. See: Machines without a GPU.
Adding frames
“No TIFF (.tif, .tiff), JPEG (.jpg, .jpeg) or camera RAW images to add” and similar
| Notification | Cause and fix |
|---|---|
| “No TIFF (.tif, .tiff), JPEG (.jpg, .jpeg) or camera RAW images to add” | What you dropped or picked holds no TIFF, JPEG or camera RAW frames. |
| “Cannot mix camera RAW and TIFF in one stack” | The project and the files you added hold more than one kind of frame; the message names the kinds (“camera RAW and JPEG”, “camera RAW, JPEG and TIFF”). Add files of the project’s kind. |
| “Switch to Stacking to add images” | The tab is in the editor. Click STACKING first. |
| “Adding images waits for the run to finish” | This project is being fused. Wait, or cancel the fuse. |
| “Still checking the last images added” | The previous add is still being compared with the frames already there. Wait a moment. |
See: Add frames.
Saving and exporting
“Save failed”
Could not save
<path>: …
Cause: the project file could not be written: a full disk, a folder you may not write to, a drive that went away. Everything stays held in the tab; nothing is lost.
Fix: fix the cause the message names (free some space, choose another
folder), then save again with Ctrl+S.
See: Saving a project.
“Can’t export this position”
An export refused because two source frames are gone or changed.
Cause: a retouched checkpoint is rebuilt from your source frames, and one of them is “— missing” or “— changed since this checkpoint was fused”. Other lines name other causes:
| The dialog says | Fix |
|---|---|
| “JPEG can’t be bigger than 65,535 pixels on a side. This image is …” | Export as TIFF or PNG. |
| “PNG and JPEG can only save grey or colour (RGB) images; this one has extra channels.” | Export as TIFF. |
| “Can’t write …” | Choose another folder or free some disk space. |
| “Some export settings aren’t valid: …” | Close the dialog, open it again and choose the settings again. |
Fix for missing or changed frames: click Locate frames… and choose the folder with the original frames; the export then runs. A plain fused checkpoint always exports, because it is stored in the project.
See: When an export is refused.
Settings and diagnostics
“Max … possible.” under a memory row
Max 17.4 GiB possible.
Cause: the number you confirmed in Host memory (or VRAM) is above what the computer can give, so FocusForge stored no limit and shows its own amount again.
Fix: enter a number at or below the maximum the line names, or leave the row as it is.
See: Set a limit.
“Could not check for updates: …”
The Check now button in About reports this when the release server
could not be reached or its answer could not be read; the reason follows the
colon. Nothing else is affected: the check only reports, and the window never
installs anything. Try again when the network is back. The same check on the
command line is focusforge-cli check-update, which exits 1 in this case.
To stop the check at start, switch off Check for updates at start. See Updates.
My key bindings are ignored
Cause: something in the [input] table of settings.toml is wrong, so
FocusForge refused the whole table and started with the default bindings.
The window does not show the problem; the log names the file, the line and
the reason.
Fix: search the log for WARN, correct the line it names, and restart.
See: When FocusForge refuses your bindings.
“Could not clear the cache: …” or “A run is active.”
Clear cache in Storage cannot run while a fuse is using the results it would delete (“A run is active.”); wait for the fuse to finish. “Could not clear the cache: …” gives the system’s reason. See: Free disk space used by earlier runs.
“Could not write the bundle. Nothing was written.”
The Save to path of a diagnostics bundle could not be written: a folder you may not write to, a full disk, or a path without a file name. Choose another path and click Create bundle again. See: Create the bundle.
“Previous session stopped”
The crash notice in the notification center.
A previous session stopped unexpectedly. One crash report was detected at startup.
Cause: FocusForge stopped unexpectedly last time and left a crash report. The notice comes back at every start until you deal with it; reading it is not enough.
Fix: click Diagnostics to open the settings window ready to package a bundle for a bug report, or Acknowledge if you do not want to report it.
See: After a crash and The crash notice.
“Crash reports unavailable” or “Could not acknowledge report.”
“Crash reports unavailable” means the folder holding the crash reports could not be read. “Could not acknowledge report. Evidence remains unreported. Try the explicit action again.” means marking it failed. In both cases Diagnostics still makes a bundle; check that the data folder shown under Storage in the settings window is readable and writable. See: The crash notice.
Command line
focusforge-cli prints its errors on stderr, starting with error:, and
exits with a non-zero status; warnings start with warning: and do not stop
the run. Paths in the messages are the ones you typed.
no TIFF frames found
error: <path>: no TIFF frames found
Cause: the folder you passed to stack or info holds no frames
FocusForge can read. The message says “TIFF” but a folder of camera RAW
files is read too, and so is a folder of JPEG files. Exit status 1; nothing is written.
Fix: pass the folder that holds the frames (for a folder with a frames
subfolder, the parent works too).
See: stack.
is not a FocusForge project
error: <path>: is not a FocusForge project
Cause: the file you passed is not a project file. history exits with
status 3 and refuses other damaged projects with their own status: 4 a file
cut short, 6 a missing entry, 7 a damaged entry, 8 a broken link between
checkpoints. export prints the same message and exits 1.
Fix: pass the right .ffp file, or stack the frames again to make a new
project. See history and
Damaged or moved projects.
source frame(s) changed since this project was written
error: N source frame(s) changed since this project was written: #1 <path>, #2 <path> -- pass --accept-changed-sources to proceed anyway; its Z-Map indices would select pixels from frames it was not stacked from
Cause: the frames at the recorded paths are not the ones the project was
made from (see “The source frames are not the same”
for the window’s version). history list and history delete refuse with
exit status 9 and name each changed frame.
Fix: put the original frames back. If you know the pictures did not
change, add --accept-changed-sources; the command then runs and prints a
warning instead, with exit status 0:
warning: N source frame(s) changed since this project was written: #1 <path>, #2 <path> -- its Z-Map indices may select pixels from frames it was not stacked from
history compact never accepts the flag. See
history.
source frame(s) unresolved
warning: N source frame(s) unresolved -- the history and Z-Map are intact; viewing an edited checkpoint's image or re-fusing needs them
Cause: the project’s frames are not at their recorded paths. This is a warning only: the command runs and exits 0. Fused checkpoints export normally; a retouched checkpoint needs the frames back. See: Damaged or moved projects.
Unsupported TIFF layouts
stack refuses a frame it cannot decode and exits 1, naming the file:
error: <path>: BigTIFF (magic 43) is not supported, only classic TIFF (magic 42)
error: <path>: Compression=7 is not supported by the decoded TIFF reader
info shows the reason without refusing, for example Compression=7, only uncompressed (1) is supported for a TIFF compressed with JPEG.
Fix: export the frames from your raw converter as TIFF (classic, not BigTIFF; uncompressed, LZW or Deflate), or stack the RAW files directly. See Which files can FocusForge read?.
DNG export refusals
export writes a DNG for a camera RAW project (-o out.dng or
--format dng; see From the command line)
and refuses, before any pixel is rendered and with nothing written, in
these cases:
error: <path>: a DNG holds camera RAW data, and this project's sources are not camera RAW
error: <path>: cannot write a DNG: <reason>
error: --format tiff conflicts with out.dng's extension, which names dng
Cause: the project was stacked from TIFF or JPEG frames; or the first
source frame has no camera colour space to write (a monochrome sensor, no
colour matrix, no as-shot white balance); or --format names one format
while the extension of -o names another.
Fix: export TIFF, PNG or JPEG for a project that is not camera RAW;
otherwise drop --format or make it agree with the extension.
A damaged frame
error: <path>: IFD value for tag 273 runs past end of file
Cause: the named frame’s file is cut short or damaged. stack exits 1.
Fix: copy the frame again from the card or backup, or move it out of the
folder and stack again.
no usable GPU adapter
no usable GPU adapter; continuing on the CPU path
A notice, not a failure: no usable graphics card was found, so the run continues on the processor with the same result, only more slowly. The driver’s own message goes to the log. The exit status is that of the run.
Fix: nothing is required. To use the graphics card, install or update its
driver. To skip the attempt, pass --cpu.
See: Using the GPU.
The graphics device is lost during a run
If the graphics card stops working partway through a stack run (a driver
reset, for example), the rest of the run continues on the processor and the
run completes; the log records the loss. See
Using the GPU and
The log.
failed to register and fell back to identity
warning: N frame(s) failed to register and fell back to identity
Some frames could not be aligned and were fused
unmoved, the command-line counterpart of the window’s Keep this fused
result? question. Check the result for doubled edges. Pass --strict to
make the run fail instead. See
A frame that does not line up.
--algorithm is required
error: --algorithm is required (or an `algo` key in the preset); known algorithms: depth-map, laplacian, weighted-average
stack needs a fusion method. laplacian is the window’s Details,
weighted-average is Soft transitions and depth-map is Focus map.
See stack.
is not an existing directory
error: -o names the directory this run's projects are collected into -- <path> is not an existing directory. Point -o at a directory, or omit it to write each project beside its own frames.
Create the output folder first, or leave out -o.
earlier runs crashed
N earlier runs crashed -- run focusforge-cli diagnostics to package the evidence
An earlier run of FocusForge left crash reports
that have not been packaged yet. The current command still runs. Run
focusforge-cli diagnostics to package them into a
diagnostics bundle; the notice then stops.
See: diagnostics and
After a crash.
Frequently asked questions
Where are my projects and exported images saved?
- Projects: a fuse in the window writes nothing next to your frames.
When you first save a project (
Ctrl+S), the save dialog proposes<frames folder>/<stack name>.ffp; you can choose any other place. Later saves write back to the same file. See Saving a project. - Exports: the save dialog proposes the project’s folder (or the frames folder for a project not saved yet) and the tab’s name. See Write the file.
- Command line:
stackwrites each project beside its frames, or into the folder named with-o. Seestack. - Temporary files (including the alignments kept for fusing again) go to the scratch folder shown under Storage in the settings window.
Why is the result smaller than my frames?
Auto-crop is on: alignment moves frames by a few
pixels, so along the edges some frames leave a strip with no picture, and the
crop cuts those strips off. Switch Auto-crop off under FINISH in the
Settings tab to keep the full frame; on the command line, pass
--no-crop (--no-align alone still trims a small border). See
FINISH: trim the edges.
Does FocusForge ever change my original frames?
No. FocusForge only reads your frames. Alignment moves copies in memory, retouching paints into the project, and every result lives in the project file and the images you export. Because a project checks its frames’ content, editing a frame afterwards makes the project ask about it (see “The source frames are not the same”).
Do the GPU and the processor give the same result?
Yes. The graphics card only makes a fuse faster. Only Details has a GPU version; Soft transitions and Focus map always run on the processor. See Use the graphics card and Using the GPU.
How many frames can I stack, and how much memory does it need?
There is no practical limit on the number of frames. For stacks up to about 26 megapixels plan on 5 GB of free RAM; with less, FocusForge works more slowly or tells you what to do. The amounts per kind of frame are in How much free RAM a stack needs. To keep memory free for other programs, set a lower limit under Host memory (see Limit the memory a fuse may use). How many frames a subject needs is worked out in Count the frames. Plan disk space too: a 16-bit TIFF from a 45-megapixel camera is about 270 MB.
Which files can FocusForge read?
| Reads | Does not read |
|---|---|
8-bit and 16-bit TIFF (.tif, .tiff), uncompressed, LZW or Deflate compressed, in strips or tiles, either byte order | 32-bit floating-point TIFF, BigTIFF, TIFF compressed with JPEG |
JPEG (.jpg, .jpeg) | PNG (an export format only) |
Camera RAW files its built-in decoder supports, including DNG and .cr2, .cr3, .nef, .arw, .raf, .orf, .rw2, .pef | RAW files the decoder does not support (reported by name) |
One stack is always one kind of file: RAW, JPEG and TIFF frames in one folder become separate stacks. Every frame is read upright by its orientation tag. RAW files are developed with each file’s recorded white balance. Results export as TIFF, PNG or JPEG, and as DNG for a project stacked from camera RAW files. See Choose a file format and Camera RAW, JPEG and compressed TIFF.
Can I script FocusForge?
Yes. focusforge-cli does everything the window’s processing does, without
a window: stack a folder (or a folder of many stacks), list and delete
checkpoints, apply brush strokes from a file, export images and Z-Maps, and
package diagnostics. Start with
For the command line, then the
command-line reference and
Batch runs from the command line.
Glossary
The words this manual uses, in alphabetical order. Each entry says in a sentence or two what the word means in FocusForge and links to the section that explains it properly. Labels you click in the window are in bold.
Alignment
Moving every frame of a stack so that it lines up with one reference frame before the frames are fused. It undoes camera drift and focus breathing; it is on by default, and your frame files are never changed. See: What alignment does.
Auto-crop
The FINISH setting that trims the result to the area every aligned frame
covers, so the edges are clean. It is why a result is usually a few pixels
smaller than the frames. On the command line, --no-crop keeps the full
frame.
See: FINISH: trim the edges.
Batch run
A command-line run that stacks a whole folder holding several stacks in one go, one project per stack. See: Batch runs from the command line.
Branch
A checkpoint built on an older checkpoint rather than on the newest one. Checkpoints form a tree, so you can try a second repair without losing the first. See: Branch from an older checkpoint.
Brightness equalization
The PREPARE step that gives every frame one brightness factor (a gain), so all frames share the same average brightness before they are aligned and fused. It is off by default; with it on, Max brightness gain limits how far a frame may be changed. See: Brightness equalization.
Brightness target
Target brightness (stops): an optional shift, up to half a stop, that makes the whole stack a little brighter or darker during the fuse. It works within the Max brightness gain limit. See: Set a brightness target.
Brush stroke
One drag of the brush in the editor. A stroke paints the pixels of the chosen source frame over the composite where you brush. Strokes are kept as a list of edits, so you can undo them and the fused result itself is never destroyed. See: Paint a stroke.
Camera RAW
The unprocessed files a camera records (.cr3, .nef, .arw, DNG and
many more). FocusForge opens a folder of RAW files like a folder of TIFF
files and develops them once into the camera’s own linear colour, using each
file’s recorded white balance. The developed frames, the fused result and a
RAW project’s saved composite stay unclipped, so highlights above white
survive until the result is exported. One stack is always one kind of file.
See: Camera RAW, JPEG and compressed TIFF
and Choose a file format.
Checkpoint
A version of a project’s result you can go back to. Every fuse you keep adds one, and so does every set of strokes you keep with Save checkpoint. Checkpoints are listed under CHECKPOINTS in the dock and stored in the project file. See: Checkpoints and saving.
Circle of confusion
The largest blur disc that still counts as sharp. It is a convention: the classic full-frame value of 0.03 mm describes a whole picture viewed at a normal size, and the depth of field chapter uses it. Shooting a stack uses 0.015 mm, because a stack is usually judged at 100 % on screen; its depth of field and step figures are therefore half the classic ones. See: What depth of field is and The model behind the numbers.
Composite
The single image a fuse makes from the frames of a stack: the result you retouch and export. The window shows it in the Composite pane. See: What focus stacking does and The two panes.
Crash report
The evidence FocusForge writes when it stops unexpectedly: the error, where it happened and the most recent log activity, or a snapshot of the program’s memory after a hard crash. It stays on your computer; the next start tells you about it with the notice “Previous session stopped”. See: Crash reports.
Depth of field
The zone in front of and behind the plane of focus in which the blur stays smaller than the circle of confusion, so the picture looks sharp. At macro distances it is a fraction of a millimetre, which is why stacks exist. See: What depth of field is.
Developing
The first stage of a fuse of a camera RAW, JPEG, 8-bit TIFF, or compressed or tiled TIFF stack: each frame is read once, and the later stages work on that copy. Camera RAW frames are converted here from the camera’s recorded data to linear colour. The bottom bar reads Developing with the number of frames done. A stack of only uncompressed 16-bit TIFF frames, in strips and without a rotation tag, skips this stage. See: What the bottom bar shows during a fuse.
Details
The default fusion method (laplacian on the command
line). It splits every frame into layers from coarse to fine and takes the
sharpest frame’s contribution in each layer. It keeps the most fine detail and is the fastest, but can leave a
halo at strong depth edges.
See: Details.
Diagnostics bundle
One ZIP file holding FocusForge’s logs, any crash reports and a description of your system, with your home folder and user name replaced. You make it yourself, from the settings window’s Diagnostics section, and attach it to a bug report; nothing is ever sent automatically. See: Make a diagnostics bundle.
Diffraction
The softening of fine detail that grows as you stop the lens down. At macro magnifications it sets in earlier than the f-number on the lens suggests, because of the effective aperture. See: Diffraction and Why stopping down is not the answer.
Dock
The panel down the right side of the window: the STACKING / EDITOR switch, the CHECKPOINTS list and, in stacking, the Images and Settings tabs. See: The dock.
Editor
The window’s EDITOR mode, in which you retouch a fused result with the brush. It becomes available once a project holds a fused result. See: Switch to the editor.
Effective aperture
The f-number a lens behaves like when it focuses close: about N × (1 + m), for the marked f-number N and the magnification m. At 1:1, f/8 on the lens works like f/16. See: Effective aperture.
Exclude
Leaving a frame out of the next fuse without removing it from the project, with Exclude in the Images panel. See: Leave a frame out of the next fuse.
F-number
The number that names how far a lens is opened, written f/8: the focal length divided by the diameter of the opening. A larger number is a smaller opening, which gives a deeper zone of sharpness and lets in less light. Each stop changes it by a factor of about 1.4. See: What makes it deep or shallow.
.ffp
The extension of a FocusForge project file. One .ffp file holds
the list of source frames and every checkpoint; it does not
contain the frames themselves.
See: Which frames FocusForge reads and
Checkpoints and saving.
Focus breathing
The slight change in image size many lenses show as the focus moves. Left alone it doubles edges in a stack; alignment’s default Rotation + Scale mode corrects it. See: What alignment absorbs and Alignment.
Focus gap
A slice of the subject that is sharp in none of the frames, because the step between two frames was larger than their depth of field. It shows as a soft band across the result and cannot be repaired from the frames you have. See: Focus gaps.
Focus map
A fusion method (depth-map on the command line). It
builds a map of which frame is sharpest where, smooths it, and takes each
pixel from the one frame the map names, giving the most orderly
Z-Map.
See: Focus map.
Focus stacking
Taking several photographs of a subject, each focused at a different depth, and combining the sharp parts of all of them into one image that is sharp from front to back. See: What focus stacking does.
Frame
One photograph of a stack. The frames of one stack sit in one folder and are read in file-name order. See: Which frames FocusForge reads.
Fuse
To combine the frames of a stack into one composite: click Fuse stack. A fuse runs through preparing, aligning and fusing; the result it keeps becomes a new checkpoint. See: Fuse the stack.
Fusion method
The rule that decides, for every pixel, which frames the result takes it from. The window offers three: Details, Soft transitions and Focus map. See: Choose a fusion method.
GPU processing
Fusing on the graphics card. It is usually faster and gives the same result as the processor. When no usable graphics card is found, FocusForge uses the processor instead. See: Use the graphics card.
Grouping
How FocusForge splits a folder into stacks: by subfolder, and within a folder by a gap of more than a minute in the frames’ capture times. The window asks before it opens a folder as several projects. See: A folder with several stacks.
Halo
A pale or smeared fringe along a depth edge, where a near outline stands against a far background. It comes from the optics, not from a bug, and can be reduced by the choice of fusion method or painted away in the editor. See: Halos at depth edges and Example: fix a halo.
Magnification
The size of the subject’s image on the sensor divided by its real size. 1:1 (“life size”) is a magnification of 1. In macro work it is the factor that shrinks the depth of field most. See: What makes it deep or shallow and Know your magnification.
Motion
Movement of the camera or the subject between frames. It shows as doubled outlines or structures that do not meet; alignment repairs camera movement, not a subject that moved. See: Motion between frames.
Notification
A message the window keeps for the session in the notification center behind the bell: a failed fuse or save, a notice from a run, skipped folders, a crash. A new one also shows briefly as a pop-up at the top left of the canvas, or as a desktop banner when the window is in the background. See: Notifications.
Overlap
The share of one frame’s depth of field that its neighbour covers as well. An overlap of 25 % is a good default; it keeps small focusing errors from opening a focus gap. See: Step and overlap.
Pane
One of the two image areas of the window: Frame on the left, showing one source frame or an earlier result, and Composite on the right, showing the result. Either can move into a window of its own. See: The two panes.
Project
One stack with everything you did to it: its frames, settings and
checkpoints. Each open project has its own tab;
saved, it is one .ffp file.
See: Which frames FocusForge reads and
Projects, notifications and quitting.
Projects overview
The grid of project cards that opens from the button at the left end of the tab strip. It shows every open project, the ones that need attention, and the recent ones. See: The Projects overview.
Reference frame
The frame the others are aligned to. By default it is the middle frame of the stack. See: Choose the reference frame.
Soft transitions
A fusion method (weighted-average on the command line,
which prints it as “Soft transitions”). Instead of picking one frame per pixel
it blends all of them, giving sharper frames more weight.
See: Soft transitions.
Source frame
One of the original frames a project was made from. In the editor, it is the frame you choose to paint from. A project recognises its source frames by their location and a fingerprint of their content. See: Choose the frame to paint from and Damaged or moved projects.
Stack
The series of frames of one subject, each focused a little deeper than the last. In FocusForge one stack becomes one project. See: Which frames FocusForge reads and Shooting a stack.
Step
The distance the focus moves between two frames. A step no larger than the depth of field minus the overlap keeps the stack free of focus gaps. See: Step and overlap and Step size.
Stop
One step on the aperture scale (f/2.8, f/4, f/5.6, f/8, f/11, f/16). Moving one stop doubles or halves the light that reaches the sensor, and changes the f-number by a factor of about 1.4. See: Effective aperture.
Tab
Each open project has a tab in the strip across the top of the window, with its name, an x to close it and, when needed, the UNSAVED chip. See: Tabs: one project each.
TIFF
An image file format FocusForge stacks besides camera RAW and JPEG: 8-bit or 16-bit TIFF, uncompressed or LZW or Deflate compressed. 32-bit floating-point TIFF, BigTIFF and TIFF compressed with JPEG are not read. Uncompressed 16-bit TIFFs open fastest. See: Choose a file format and Camera RAW, JPEG and compressed TIFF.
Z-Map
The record, for every pixel of the composite, of which frame it came from. The Overlay switch shows it in colour over the result; the editor and retouching depend on it, which is why a project checks that its frames are still the same ones. See: See where each pixel came from and See which frame each area came from.
How much free RAM a stack needs
What counts is the RAM that is free when you start a fuse, not the RAM installed. FocusForge takes what it finds free and works faster with more; with less it works on less at a time, takes longer and gives the same result. Only below a minimum does it refuse to run.
The least free RAM that works
These are the smallest amounts of free RAM at which a fuse still finished, each at one stack size:
| Frames | Stack measured | Free RAM needed |
|---|---|---|
| 16-bit TIFF | 20 frames of 15 megapixels | 2.5 GB |
| JPEG | 20 frames of 15 megapixels | 2.8 GB |
| Camera RAW | 20 frames of 26 megapixels | 2.9 GB |
| Compressed TIFF (Deflate) | 10 frames of 17.5 megapixels | 3.1 GB |
| 8-bit TIFF | 20 frames of 15 megapixels | 4.7 GB |
For stacks up to about 26 megapixels, plan on 5 GB free. The RAW figure comes from copies of one camera file; a stack of different frames can take more. Larger frames, such as those of a 45 to 61 megapixel camera, and more frames need more free RAM.
With plenty of free RAM a fuse takes much more than the minimum, and what it takes grows with the number of frames and their size.
If memory is short and your frames already line up, switching alignment off lowers what a fuse takes by about two thirds at 20 frames of 15 megapixels. The fusion method and the graphics card change it little.
When there is too little
A run below the minimum is refused with a message, before any frame is processed:
- With TIFF, JPEG and compressed TIFF frames you can meet “the host-derived memory budget of N B cannot hold the alignment’s shared reference data and one registration”. See the message.
- With camera RAW frames you meet “not enough free RAM to read this file”, which says how much more free RAM it needs. That figure is right: the runs at the amount it named finished. See the message.
Close other programs and start the fuse again.
8-bit TIFF is the exception. On Linux, with 2.8 to 4.3 GB free, the system ended the run without any message at all; from 4.7 GB it finished. If a fuse of 8-bit TIFF frames disappears without a word, free more RAM.
The Host memory limit
The Host memory setting in the settings
window (or
--max-host-memory on the command line) lowers what a fuse may use. It slows
a fuse down, and it is not a ceiling on what FocusForge takes: with TIFF
frames the fuse still took several GB at a limit of one byte. Do not rely on it
to keep memory free for another program.
A limit too low for one frame is refused. The smallest limit that works for these stacks:
| Frames | Smallest Host memory |
|---|---|
| JPEG, 15 megapixels | 542 MB |
| Camera RAW, 26 megapixels | 820 MB |
| TIFF | no limit you would set is refused |
The message then names the limit, for example “needs 820 MB of working memory, but the memory limit allows 800 MB for it. Raise the memory limit to at least 820 MB or close other programs, or convert the frames to TIFF.”
Command-line reference
focusforge-cli does from a terminal everything the window does with a
stack. This page lists every command, its options, the settings you can pass
with --set, the exit codes and example invocations. Installing the command
line and its shell completion is covered in
For the command line; photographers
working in the window can start with Your first stack.
focusforge-cli [OPTIONS] <COMMAND>
| command | does |
|---|---|
stack | fuses the frames of a folder into one project per stack |
align | reports how each frame has to move to line up, without fusing |
export | writes a project’s image, its source map or a single frame to a file |
retouch | adds brush strokes from a list file to a project as new checkpoints |
history | lists, deletes and compacts a project’s checkpoints |
info | prints what a project, a frame or a folder of frames contains |
review | reports the outcome of every stack in a folder of projects |
algorithms | lists the stacking and alignment methods and their settings |
step-plan | plans a focus bracket: step, frame count, duration, disk need |
sharp-areas | counts the sharpest areas per frame |
hot-pixels | finds pixels that stay out of line with their neighbours across the frames |
sharpness-map | writes the focus score of each frame, and of a composite, as maps on one scale |
cache | clears the saved alignment and brightness results |
diagnostics | packs logs and crash reports into one ZIP |
check-update | tells you whether a newer release exists |
focusforge-cli <command> --help prints the same options on the terminal.
Options every command takes
| option | meaning |
|---|---|
-v | more detail on stderr; repeat it for still more |
-q, --quiet | errors only; wins over -v |
-h, --help | print help |
-V, --version | print the version |
Most commands also take --json, which prints the result as one JSON
document on stdout instead of readable text.
Every run also writes a log file in your user data folder, whatever -v and
-q say. If an earlier run crashed, the next run prints a one-line notice
pointing at diagnostics.
Exit codes
| code | meaning |
|---|---|
0 | success |
1 | the command failed or refused to run; the reason is on stderr |
2 | wrong usage: unknown option or missing argument |
130 | a stack run was cancelled, with Ctrl-C or a cancel file |
Commands that open a project (export, history, info, retouch) refuse a
damaged project by name, with these codes:
| code | meaning |
|---|---|
3 | not a FocusForge project |
4 | the file is truncated or incomplete |
6 | a part the project refers to is missing |
7 | a part of the project no longer matches its recorded check value |
8 | the checkpoints no longer link up, or the project does not match its recorded source frames |
9 | history list and history delete: a source frame has changed since the project was written; --accept-changed-sources goes ahead with a warning |
A project saved by a newer FocusForge, and a RAW project saved by an earlier
version (stack its frames again to open it), exit 1. A source frame that
cannot be found only prints a warning.
Two more codes are specific: info exits 5 after printing a folder report
when some files could not be read, and check-update exits 3 when a newer
release exists.
stack
focusforge-cli stack [OPTIONS] <DIR>
Fuses the TIFF, JPEG or camera RAW frames in <DIR> (or in <DIR>/frames
when that folder exists; subfolders are not searched) into one project per
stack. It writes projects, not images: use export for the image.
A stack holds one kind of frame; TIFF, JPEG and RAW cannot be mixed.
Frames are aligned first and the result is trimmed to the area every frame
covers. When <DIR> holds several stacks, stack prints the proposed split
before it starts.
RAW, JPEG and compressed TIFF frames are read in full once each, in a
develop stage before alignment, and every later step works from that copy.
--json reports where the copy was kept (developed_store: memory or
scratch_file) and how often each frame was read (develop_counts). A
compressed TIFF stack whose memory limit is too small for that copy skips the
stage and reads each part of a frame as it is needed.
| option | meaning |
|---|---|
-o, --output <DIR> | folder to collect the projects in; it must exist. Without it each project is written beside its frames |
--algorithm <ALGO> | stacking method; required unless a preset names one. focusforge-cli algorithms lists them |
--set <KEY=VALUE> | set a method setting or a project setting; repeatable, the last value of a key wins |
--no-align | do not align; frames are fused as they are |
--no-crop | keep the full frame instead of trimming to the area all frames cover |
--defect-mask <PATH> | repair the pixels this mask marks in every frame: a grey image the size of the frames in which black pixels mark defects. Needs --set defect-removal=true |
--strict | refuse the run when a frame cannot be aligned. Without it such a frame is left where it is and reported |
--align-algorithm <ALGO> | alignment method; the only one available is the default |
--align-set <KEY=VALUE> | set an alignment setting; repeatable |
--groups <PATH> | split the frames into stacks as this TOML file says |
--write-groups <PATH> | write the proposed split to this file, in the format --groups reads, and carry on |
--only <NAME> | run only the named stack; repeatable. The other stacks and their projects are left alone |
--preset <PATH> | read the method and settings from a preset file |
--write-preset <PATH> | write a preset that reproduces this run |
--resume | continue a run of the same stack that was cancelled |
--dry-run | show what would happen and exit without computing or writing anything |
--json | print the report as JSON |
--status <PATH> | append one JSON line per stack to this file: its name, outcome, outputs and error |
--cancel-file <PATH> | cancel the run when this file appears, like the first Ctrl-C. The file must not exist when the run starts; the run never creates or deletes it |
--progress-file <PATH> | write progress to this file as JSON lines, one per stage start and at most two per second while a stage counts; the file is emptied when the run starts (see Progress file) |
--no-progress | print no progress line |
--no-cache | align and measure brightness afresh and do not store the results for later runs |
--cpu | use the processor only, not the graphics card (only in builds with graphics-card support) |
--max-host-memory <SIZE> | upper limit on the RAM the run may use, for example 8GiB or 512MiB; it can only lower what FocusForge would use. It bounds what the stacker plans to hold in flight, not resident memory: memory-mapped TIFF pages are not counted, so peak memory can exceed it; see How much free RAM a stack needs |
--max-vram <SIZE> | the same limit for graphics-card memory (only in builds with graphics-card support) |
--tile-size <PX> | work on the image in blocks of this many pixels; by default the largest size both memory limits allow, never fewer blocks in flight than the method’s usual size |
--raw-precision <f16|f32> | the sample width a RAW stack’s developed frames are kept at: f16 (the default) rounds them to half precision, f32 keeps them unrounded and takes twice the space, about 537 MB per 45 MP frame instead of 269 MB. The project remembers the choice and info reports it; a TIFF or JPEG stack ignores it |
--trace-accounting | add extra counters to the --json report; costs a little time |
An unknown method, a setting outside its range, a missing -o folder and
--defect-mask without defect-removal are refused before any frame is read.
A mask file that is missing, has another size than the frames or leaves no
pixel to repair from also stops the run, before any frame is developed or
fused. With alignment and trimming on and no area
common to all frames, stack stops and names --no-crop.
Project settings
--set, and a preset’s [stack] table, also take these settings of the whole
run:
| id | values | default | meaning |
|---|---|---|---|
align | true / false | true | align the frames before fusing; --no-align is the same as align=false |
auto-crop | true / false | true | trim the result to the area every frame covers; --no-crop is the same as auto-crop=false |
equalize | true / false | false | give each frame one brightness gain so that all frames reach the same average |
equalize-max-gain | 1.01 to 2.0 | 1.25 | the largest gain a frame may get |
equalize-target | -0.5 to 0.5 | 0.0 | the shared brightness target in stops from the frames’ average |
defect-removal | true / false | false | replace stuck, hot and dead sensor pixels in every frame from their neighbours before alignment; the source files are not changed. The report counts the replaced pixels (defects= in the text report, defects in --json) |
hot-pixels | true / false | true | with defect-removal on, find the hot pixels of the frames automatically (see hot-pixels); on a colour RAW stack every pixel found is replaced together with its four direct neighbours, which developing the colour filter array may have tinted, and detected= counts them all |
hot-pixel-threshold | 2.0 to 50.0 | 7.0 | how many times its neighbourhood’s spread a pixel must differ from the neighbourhood’s median to count as a hot pixel; higher finds fewer |
defect-grow-radius | 0 to 16 | 0 | widen every pixel painted in the --defect-mask file by this many pixels |
The text report has one defect line: defects=off while defect-removal is off
(the result is then identical to a run without the feature), otherwise
defects=on repaired=N detected=D file=F, with the pixels replaced, the ones
found automatically and the ones the mask file marks (- where that source is
not in use).
Cancel, pause, resume
Ctrl-C stops the run cleanly and prints the command that resumes it; the
process then exits 130. A second Ctrl-C ends it at once. On Linux and macOS,
kill -USR1 <pid> pauses a running stack and a second one continues it.
A program that cannot send a signal cancels the same way by creating the file
named by --cancel-file: the run ends like the first Ctrl-C, the frames in
flight finish, the resume state is kept, the exit code is 130 and the
--status record’s outcome is cancelled. The file must not exist when the
run starts, and the run never creates or deletes it.
--resume continues the cancelled run of the same stack, and refuses when
there is nothing to resume or the inputs differ.
Progress file
--progress-file <PATH> writes one JSON object per line while stack runs, so
another program can follow the run without reading the text on stderr. A record
is written when each stage (develop, prepare, align, fuse, seal)
starts, and at most twice a second while a stage counts. When a counting stage
ends, its last count is written before the next stage’s record.
{"stage":"fuse","done":12,"total":64,"identity":"IMG_9801-9802","group":1,"groups":2}
| field | meaning |
|---|---|
stage | develop, prepare, align, fuse or seal |
done, total | frames (develop, align), strips or frames (prepare) or tiles (fuse) finished and in all; null for a stage that counts nothing, such as seal |
identity | the stack’s name, the same as in its --status record |
group, groups | this stack’s position among the stacks the run processes, from 1, and their number |
The file is emptied once when the run starts, and the records of every stack
follow one another in order. It never holds the outcome: the exit status and
--status do. --dry-run writes no file. The path is refused before any work
starts when its directory does not exist, when the file cannot be written, or
when it is the same file as --status or --cancel-file. --no-progress
silences stderr only.
Dry run
--dry-run prints the resolved method and settings, the alignment settings and
the projects it would write, then exits 0:
dry run -- resolved only, nothing computed and nothing written
...
would write: .scratch/out/mantis-64.ffp
crop: not computed -- --dry-run stops before alignment
output size: not computed -- it follows from the crop
--dry-run cannot be combined with --resume.
Examples
focusforge-cli stack frames/ --algorithm laplacian
focusforge-cli stack frames/ --algorithm weighted-average --set radius=8 -o projects/
focusforge-cli stack sessions/ --algorithm laplacian --write-groups groups.toml --dry-run
focusforge-cli stack frames/ --preset macro.toml --set equalize=true
Grouping, presets, re-running one stack and reviewing a batch are on Batch runs from the command line. When a frame cannot be aligned, see A frame that does not line up.
align
focusforge-cli align [OPTIONS] <DIR>
Reports, for each frame of <DIR>, how far it has to move, scale and turn to
line up with the reference frame, and the area that would be kept. Nothing is
fused.
| option | meaning |
|---|---|
--algorithm <ALGO> | alignment method; the only one available is the default |
--set <KEY=VALUE> | set an alignment setting; repeatable |
--strict | refuse the run when a frame cannot be aligned |
--write-warped <DIR> | write each frame as moved into this folder, uncropped, for a visual check |
--preset <PATH> | read the alignment method and settings from a preset file |
--write-preset <PATH> | write a preset that reproduces this run |
--status <PATH> | append one JSON line for this run to this file |
--json | print the report as JSON |
--no-progress | print no progress line |
--cpu | as for stack |
--max-host-memory <SIZE> | as for stack |
--max-vram <SIZE> | as for stack |
focusforge-cli align frames/
focusforge-cli align frames/ --write-warped .scratch/warped/
Each frame’s row shows its shift (tx, ty), scale, rotation (rot), a
status and a match value rho between -1 and 1 (higher is better). The
reference frame is marked (reference) and a frame left in place is marked
[fallback]. The last line is the area that stack would keep.
export
focusforge-cli export [OPTIONS] <PROJECT>
Writes an image from a project. It is the only command that writes an image.
Give at least one of -o, --zmap and --frame. The output must not be the
project file itself.
| option | meaning |
|---|---|
-o, --output <FILE> | write the image to this file |
--zmap <FILE> | write the source map (which frame each pixel came from) as a TIFF; retouching is not included |
--checkpoint <ID> | the checkpoint to write: an id or a unique start of one; the latest by default |
--format <FORMAT> | tiff, png, jpeg or dng (a linear DNG, for RAW projects). Taken from the extension of -o when omitted; no extension means TIFF |
--tiff-bits <BITS> | 16 (default) or 8 |
--tiff-compression <NAME> | none (default), lzw or deflate |
--png-bits <BITS> | 16 (default) or 8 |
--png-compression <NAME> | fast, default (default) or best |
--jpeg-quality <N> | 1 to 100, default 95 |
--jpeg-subsampling <SPEC> | 420 (default) or 444 |
--exif <on|off> | carry over the camera metadata; default on |
--icc <on|off> | embed the colour profile; default on |
--xmp <on|off> | carry over the XMP data; default off |
--iptc <on|off> | carry over the IPTC data; default off; never written to PNG |
--frame <INDEX> | write source frame number INDEX (counting from 0) as it was fused: aligned and trimmed like the result. Needs --frame-output |
--frame-output <FILE> | where to write the frame --frame names |
--json | print the report as JSON |
An option for another format than the one written (--png-bits with a JPEG)
is refused by name, and so is a value out of range. PNG and JPEG hold grey or
RGB images only.
A retouched checkpoint needs its source frames; when one is missing or has
changed since the project was written, the export refuses and names it, and
nothing is written. --zmap alone reads no source frame.
A retouched checkpoint of a RAW project develops each frame its strokes paint
from once, and keeps those frames under .scratch/ in the working directory
while the command runs. When .scratch/ cannot be written, the export fails
and writes nothing.
focusforge-cli export mantis-64.ffp -o out.jpg --jpeg-quality 90
focusforge-cli export mantis-64.ffp -o out.tif --tiff-compression lzw --zmap zmap.tif
focusforge-cli export mantis-64.ffp --checkpoint 5b71 -o out-5b71.png
retouch
focusforge-cli retouch [OPTIONS] --ops <FILE> <PROJECT>
Adds a list of brush strokes to a project. Each stroke becomes a new
checkpoint, each the child of the previous one, under the latest checkpoint or
under --from. See Retouching for the stroke list.
Write the result with export --checkpoint.
| option | meaning |
|---|---|
--ops <FILE> | the list of strokes, a JSON file; required. Every stroke is checked before anything is written, and an invalid one is named by its position counting from 0 |
--from <ID> | the checkpoint to add under: an id or a unique start of one; the latest by default |
--name <NAME> | name the last checkpoint added |
--json | print the report as JSON |
A stroke takes its pixels from a source frame, "source": {"frame": 3}, or from
a checkpoint’s own picture, "source": {"checkpoint": "5b71"}: an id or a unique
start of one, naming a visible checkpoint of the same pixel size and sample type
as the checkpoint being edited. "source_id": 3 reads as frame 3.
A stroke may carry two more fields. mode is normal (the default), lighten,
darken or detail: lighten changes a pixel only where the source’s sum over
all samples exceeds the image’s there, darken only where it is smaller, and
detail keeps the image’s brightness and takes only the source’s fine detail.
opacity, 0 < x <= 1 (default 1.0), scales the stroke’s coverage. An
opacity outside that range refuses the run; one too small to register still
records a checkpoint but changes no sample. A project that holds a stroke with
another mode than normal or another opacity than 1.0 is refused by builds
that predate those fields.
focusforge-cli retouch frames.ffp --ops stroke-list.json --name "halo fixed"
history
focusforge-cli history [OPTIONS] <COMMAND>
Reads and changes a project’s checkpoints without opening the window. A checkpoint is given by its id or a unique start of it; an ambiguous start is refused and names every match.
| option | meaning |
|---|---|
-h, --help | print help |
| subcommand | does |
|---|---|
list | prints every visible checkpoint, newest first |
delete | hides a checkpoint, and removes it from the file once no visible checkpoint builds on it. The last visible checkpoint cannot be deleted |
compact | rewrites the project to what is still visible and reports the space freed |
history list
focusforge-cli history list [OPTIONS] <PROJECT>
| option | meaning |
|---|---|
--json | print the result as JSON |
--accept-changed-sources | go ahead with a warning when a source frame has changed since the project was written (see exit code 9) |
history delete
focusforge-cli history delete [OPTIONS] --checkpoint <CHECKPOINT> <PROJECT>
| option | meaning |
|---|---|
--checkpoint <CHECKPOINT> | the checkpoint to delete: an id or a unique start of one |
--json | print the result as JSON |
--accept-changed-sources | go ahead with a warning when a source frame has changed since the project was written (see exit code 9) |
history compact
focusforge-cli history compact [OPTIONS] <PROJECT>
| option | meaning |
|---|---|
--json | print the result as JSON |
Examples
focusforge-cli history list mantis-64.ffp
focusforge-cli history delete mantis-64.ffp --checkpoint 5b71
focusforge-cli history compact mantis-64.ffp
info
focusforge-cli info [OPTIONS] <PATH>
| option | meaning |
|---|---|
--json | print the result as JSON |
--binned-preview <OUT> | also write a Bayer RAW or linear DNG file’s 2x2-binned read as a 16-bit RGB TIFF |
Prints what is stored in a project file, a TIFF, JPEG or RAW frame, or every
frame directly inside a folder (or its frames subfolder). Only file headers
are read, so it answers at once even for large stacks. --json prints the
report as JSON.
For a folder, the report ends with the number of frames, their total size and
whether all frames share one layout; if not, it names the odd one out. A file
that cannot be read is reported with its reason; the rest of the folder is
still listed and the command exits 5. A single file that cannot be read
exits 1; a folder without frames also exits 1.
--binned-preview <OUT> takes a single RAW file and also writes it read
through 2x2 binning: half its width and height, the same levels, crop, white
balance, colour matrix and transfer curve as a full develop, without
developing the frame at full resolution. A Bayer mosaic bins each 2x2 cell into one RGB pixel;
a linear DNG (three samples per pixel) averages each 2x2 block of its RGB
pixels. This is the read the image list’s previews use for large Bayer RAW and
linear DNG frames. A folder, a non-RAW file, or a RAW file that cannot be
binned (X-Trans, monochrome, four-colour, a linear DNG with one sample per
pixel, or rotated) is refused with exit 1.
focusforge-cli info frames/
focusforge-cli info mantis-64.ffp
focusforge-cli info IMG_0001.dng --binned-preview preview.tif
review
focusforge-cli review [OPTIONS] <DIR>
| option | meaning |
|---|---|
--json | print the result as JSON |
Prints one line per stack found in <DIR>: the output folder of a stack run
or a plain folder of .ffp projects. Each line has the stack’s name, its
outcome, the sharpness ratio, the number of source frames and a coherence
value of the source map; -- stands for a value that is not available, as for
a failed stack, whose error is printed instead. A failed stack is a visible
line, not a missing file. Nothing is written and no frame is read. --json
prints the report as JSON.
focusforge-cli review projects/
algorithms
focusforge-cli algorithms [OPTIONS] [ID]
| option | meaning |
|---|---|
--json | print the result as JSON |
--set <KEY=VALUE> | check a setting’s value against its range; repeatable, the last value of a key wins |
Without ID it lists the methods and the project settings. With an ID it
prints that method’s settings with range and default. --json prints JSON.
--set <KEY=VALUE> checks a value against the method’s range and names every
value that is out of range.
The window’s names for the methods:
| id | window name |
|---|---|
laplacian | Details |
weighted-average | Soft transitions |
depth-map | Focus map |
pyramidal-ecc is the alignment method.
algorithms also lists test-only methods whose ids start with dummy-; they
are not for photographs.
Settings, for stack --set and stack --align-set (also in a preset’s
[stack] and [align] tables):
| method | id | values | default |
|---|---|---|---|
laplacian | levels | 1 to 16 | chosen from the image size |
weighted-average | radius | 0 to 16 | 16 |
weighted-average | weight-exponent | 1 to 8 | 4.0 |
depth-map | score-radius | 0 to 16 | 4 |
depth-map | smoothing-radius | 0 to 16 | 8 |
pyramidal-ecc | mode | translation, rotation-scale | rotation-scale |
pyramidal-ecc | reference-frame | first, middle, last | middle |
pyramidal-ecc | reference-policy | anchor, chain | chain |
pyramidal-ecc | max-iterations | 1 to 1000 | 400 |
pyramidal-ecc | epsilon-px | 0.000000001 to 1 | 0.0001 |
pyramidal-ecc | pyramid-depth | 0 to 16 | chosen from the image size |
focusforge-cli algorithms
focusforge-cli algorithms laplacian
focusforge-cli algorithms weighted-average --set weight-exponent=9
The last command reports the value as out of range.
step-plan
focusforge-cli step-plan [OPTIONS]
Plans a focus bracket from the optics and the depth range you want to cover.
| option | meaning |
|---|---|
--set <KEY=VALUE> | set one of the values below; repeatable, the last value of a key wins |
--json | print the plan as one JSON object |
| id | meaning | default | allowed |
|---|---|---|---|
optics | lens or objective | lens | lens, objective |
magnification | magnification (x) | 1 | 0.01 to 100 |
aperture | marked f-stop, for a lens | 8 | 0.7 to 64 |
na | numerical aperture, for an objective | 0.25 | 0.01 to 0.95 |
overlap | overlap, as a fraction of the depth of field | 0.25 | 0 to 0.9 |
range_mm | depth range (mm); 0 plans one frame | 5 | 0 to 1000 |
frame_seconds | time per frame (s) | 1 | 0 to 3600 |
frame_mb | size per frame (MB) | 50 | 0 to 2000 |
A value the chosen optics does not use is ignored. A value out of range or an
unknown id is reported on stderr, one line each, and the command exits 1.
$ focusforge-cli step-plan --set magnification=1 --set aperture=8 --set frame_seconds=3
optics: lens, f/8
NA: 0.031
DOF: 563.2 µm
step: 422.4 µm (422400 nm)
frames: 13
duration: 39 s
disk: 650 MB
sharp-areas
focusforge-cli sharp-areas [OPTIONS] <DIR>
Divides the image into square cells and counts, per frame, in how many cells
that frame is the sharpest. Frames are counted as they are, without
alignment. The text output has one row per frame (index, file name, count),
then one line per neighbouring pair with its overlap in percent, or no data.
A pair’s overlap is twice the counted cells sharp in both frames, divided by
the sum of the counted cells sharp in each; a frame is sharp in a cell when its
score there is at least overlap-threshold times the cell’s best.
On a RAW or JPEG folder each frame is developed once before counting. A large
folder may keep temporary frames under .scratch/ while the command runs;
when the disk or memory has no room for them, the frames are developed as the
cells are read, with the same counts.
| option | meaning |
|---|---|
--set <KEY=VALUE> | set one of the values below; repeatable |
--json | print the counts and the overlaps as one JSON object; an overlap with no data is null |
--priority <low|normal> | low reads one frame at a time and leaves the other cores free; the counts are the same. Default normal |
| id | meaning | default | allowed |
|---|---|---|---|
cell-size | side of a cell (px) | 64 | 16 to 512 |
contrast | how much sharper the peak must be than the cell’s weakest frame | 2 | 1 to 10 |
overlap-threshold | share of the cell’s best score at which a frame is sharp there | 0.8 | 0.5 to 1 |
A value out of range, a folder without frames, a frame that cannot be read and
frames of different sizes all exit 1.
focusforge-cli sharp-areas frames/ --set cell-size=128
hot-pixels
focusforge-cli hot-pixels [OPTIONS] <DIR>
Finds the hot pixels of a folder’s frames: pixels that differ from their
neighbours at the same sensor position in more than half the frames. Frames
are read as they are, without alignment. The text output is the number of hot
pixels found. A pixel counts when it differs from the median of its
neighbourhood by more than hot-pixel-threshold times that neighbourhood’s
spread.
On a RAW folder the frames are developed the way stack develops them, so
the pixels listed are the ones a stack run with hot-pixel removal on
detects; on a colour RAW stack the detected= count of that run also holds
the four direct neighbours of each, which demosaicing reaches. Developing a
large RAW folder may keep temporary frames under .scratch/ while the command
runs.
| option | meaning |
|---|---|
--set <KEY=VALUE> | set one of the values below; repeatable |
--json | print the count and the sensor coordinates as one JSON object |
| id | meaning | default | allowed |
|---|---|---|---|
hot-pixel-threshold | how many times its neighbourhood’s spread a pixel must differ from the neighbourhood’s median to count | 7 | 2 to 50 |
A value out of range, a folder without frames, a frame that cannot be read and
frames of different sizes all exit 1.
focusforge-cli hot-pixels frames/ --set hot-pixel-threshold=10 --json
sharpness-map
focusforge-cli sharpness-map [OPTIONS] --out <OUT> <DIR>
Writes, for each frame, a map of its focus score on one scale for the whole
stack, so the same value means the same sharpness in every map. Frames are
read without alignment. A map holds each pixel’s focus score divided by the
scale, the 99th percentile of the pixels’ peak scores over the frames; a value
above 1 is sharper than the scale. A stack with no detail has scale 0 and maps
of zeros. Each map is an f32 TIFF of the frames’ size,
<frame>-sharpness.tif. The text output is the scale, then one row per frame
(index, file name, map) and, with --composite, a composite row.
| option | meaning |
|---|---|
--out <OUT> | the folder the maps are written to; created if missing; required |
--composite <COMPOSITE> | a composite image of the frames’ size, written as composite-sharpness.tif on the frames’ scale |
--json | print the scale and the written maps as one JSON object |
--priority <low|normal> | low reads one frame at a time and leaves the other cores free; the maps are the same. Default normal |
A composite of another size or samples per pixel, a folder without frames, a
frame that cannot be read and an output folder that cannot be created exit 1;
a failed run leaves no map behind.
focusforge-cli sharpness-map frames/ --out maps --composite result.tif
cache
focusforge-cli cache [OPTIONS] <COMMAND>
| option | meaning |
|---|---|
--json | print the result as JSON |
| subcommand | does |
|---|---|
clear | removes the saved alignment and brightness results |
cache clear
focusforge-cli cache clear [OPTIONS]
| option | meaning |
|---|---|
--json | print the result as JSON |
Removes the saved alignment and brightness results under .scratch/stage-cache/. It never
touches a cancelled run that --resume can continue, or any project. With
--json it prints {"removed": <count>}.
$ focusforge-cli cache clear
removed 1 stage cache entry
diagnostics
focusforge-cli diagnostics [OPTIONS]
Packs this installation’s logs, crash reports, a system summary, the graphics adapter, the effective configuration and the version into one ZIP. The file list is printed before the ZIP is written. The home folder and the user name are removed from every text entry, no image data is included and nothing is sent anywhere. See Diagnostics and crash reports.
| option | meaning |
|---|---|
-o, --output <FILE> | where to write the ZIP; without it a dated name in the current folder |
--include-minidumps | include the crash dump files; they cannot be redacted and are marked in the file list |
--force | overwrite the output file if it exists |
The command exits non-zero when the output file exists and --force is not
given, or when the ZIP cannot be written.
focusforge-cli diagnostics -o report.zip
check-update
focusforge-cli check-update [OPTIONS]
| option | meaning |
|---|---|
--json | print the result as JSON |
Asks the release server once whether a newer final release exists. The request carries only the program version; nothing is downloaded or installed.
| code | meaning |
|---|---|
0 | this version is up to date |
3 | a newer release exists; its address is printed |
1 | the check failed (no network, a timeout, or an unusable answer); the reason is printed on stderr |
$ focusforge-cli check-update
FocusForge 0.1.0 is up to date
--json prints one document with an outcome of up-to-date, newer (with
version and url) or failed (with reason).
Batch runs from the command line
The focusforge-cli stack options for a folder that holds several stacks, with
the file formats they read and write. Every option is listed in the
command-line reference. In the window the same work is
Projects, notifications and quitting.
Splitting a folder into stacks
stack prints the split it proposes before it starts: every folder with
frames is a stack of its own, a gap of more than one minute between capture
times starts a new stack inside a folder, and camera RAW and TIFF files never
share a stack.
focusforge-cli stack sessions/ --algorithm laplacian --write-groups groups.toml --dry-run
--write-groups writes the proposal as a TOML file, one block per stack, with
frame paths relative to the folder you passed:
[[group]]
name = "session-a"
frames = ["IMG_9801.tif", "IMG_9802.tif"]
Edit it and run again with --groups groups.toml. Every frame must be in
exactly one group; a frame that is missing, listed twice or not listed is
refused by name before anything is read. -o projects/ collects all projects
in one folder.
Running one stack again
--only <name> runs just the named stack; the others and their projects are
left alone.
focusforge-cli stack sessions/ --algorithm laplacian --set levels=6 --only session-a -o projects/
Presets
A preset is a TOML file with the methods and settings you chose, read with
--preset. A flag on the command line wins over the file.
algo = "laplacian"
align-algo = "pyramidal-ecc"
[stack]
levels = 5
equalize = true
[align]
max-iterations = 40
focusforge-cli stack frames/ --preset macro.toml
focusforge-cli stack frames/ --algorithm laplacian --write-preset macro.toml
--write-preset saves the settings of the run just made. align reads the
same file and uses only align-algo and [align].
Pausing and resuming
Ctrl-C stops a run cleanly and the run exits 130; finished work stays.
--resume on the same command picks it up again:
focusforge-cli stack frames/ --algorithm laplacian --resume
Saved alignment results
A stack run keeps its alignment result, and the brightness measurement when
equalize is on, so that a re-run which changes only a fusion setting does not
align or measure again. The run prints prepare N frames (reused from the stage cache) when it takes the measurement from there, and stack --json reports
equalization_cached as true. --no-cache skips this for one run, and
focusforge-cli cache clear empties it without touching a project or a
cancelled run.
Reviewing the results
Every stack run except a --dry-run writes a run record: manifest.json in
the -o folder, or <folder>-run.json in the folder you passed when there is
no -o.
focusforge-cli review projects/
review lists one line per stack, a failed one included. See
review.
Writing an image
stack writes projects, never images. Write each one you want with
focusforge-cli export projects/session-a.ffp -o out.tif; see
export.
Use FocusForge from Lightroom Classic and darktable
A plug-in for Lightroom Classic and a script for darktable hand the selected
photos to FocusForge and bring the result back into the catalogue. Both come
with the source in the integrations/ folder, are optional, and need an
installed FocusForge. Each offers two ways to work:
- Stack automatically:
focusforge-clistacks the selection and the result is imported. - Open in the editor:
focusforge-guiopens the selection; whatever you export there is imported when you close the window. A single export under the editor’s proposed name is imported as<first photo>-stacked, the name automatic stacking gives its result.
Both pass the selection in file-name order, as one stack. Cancelling in the host stops the run the way Ctrl-C does (see Cancel, pause, resume); nothing is imported, and a cancelled automatic stack removes the folder of its run.
darktable
Copy the integrations/darktable/focusforge folder into darktable’s lua
folder (~/.config/darktable/lua on Linux) and add this line to
luarc in the folder above it:
require "focusforge/focusforge"
The script needs darktable 5.6.1 or newer (Lua API 9.7.0 or newer). After a restart the lighttable’s right panel has a FocusForge box with two buttons, stack the selected images and open the selected images in FocusForge. Settings are under preferences, lua options:
| setting | meaning | default |
|---|---|---|
| FocusForge: focusforge-cli | where focusforge-cli is | focusforge-cli, looked up on the PATH |
| FocusForge: focusforge-gui | where focusforge-gui is | focusforge-gui, looked up on the PATH |
| FocusForge: stacking algorithm | the method for automatic stacking, any id from focusforge-cli algorithms | laplacian |
| FocusForge: hand-off format | rendered 16-bit TIFF or original files | rendered 16-bit TIFF |
| FocusForge: where the result is imported from | beside the sources (grouped with the first image) or working folder | beside the sources |
| FocusForge: working folder | each run keeps its frames, project and files in a folder of its own here; they are never deleted, except for an automatic stack you cancel | Pictures/FocusForge in your home folder |
Lightroom Classic
In File, Plug-in Manager, choose Add and select the
integrations/lightroom/focusforge.lrplugin folder. In the plug-in’s section
set:
| setting | meaning | default |
|---|---|---|
| Application location | the folder FocusForge is installed in (on macOS the FocusForge app), found with Browse… | none; set it first |
| Working folder | each run keeps its frames, project and files in a folder of its own here, chosen with Browse…; an automatic stack you cancel removes its folder | Pictures/FocusForge, when empty |
| Hand over | Rendered 16-bit TIFF files or The original files | rendered TIFF |
| Add the result | Beside the source photos, stacked with the first or In the FocusForge working folder, not stacked | beside the sources |
Select the photos, then use File, Plug-in Extras, Stack with FocusForge or Edit in FocusForge. The same two modes are in Export with FocusForge as the export target, whose dialog offers Stack automatically and add the result and Open the FocusForge editor.
Lightroom stacks photos of one folder only. When the result has to stay in the working folder it is added to the catalogue unstacked, and you are told.
The plug-in has been run on Lightroom Classic 16.0 on Windows 11. It has not been run on macOS.