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.