Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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-cli stacks the selection and the result is imported.
  • Open in the editor: focusforge-gui opens 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:

settingmeaningdefault
FocusForge: focusforge-cliwhere focusforge-cli isfocusforge-cli, looked up on the PATH
FocusForge: focusforge-guiwhere focusforge-gui isfocusforge-gui, looked up on the PATH
FocusForge: stacking algorithmthe method for automatic stacking, any id from focusforge-cli algorithmslaplacian
FocusForge: hand-off formatrendered 16-bit TIFF or original filesrendered 16-bit TIFF
FocusForge: where the result is imported frombeside the sources (grouped with the first image) or working folderbeside the sources
FocusForge: working foldereach run keeps its frames, project and files in a folder of its own here; they are never deleted, except for an automatic stack you cancelPictures/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:

settingmeaningdefault
Application locationthe folder FocusForge is installed in (on macOS the FocusForge app), found with Browse…none; set it first
Working foldereach run keeps its frames, project and files in a folder of its own here, chosen with Browse…; an automatic stack you cancel removes its folderPictures/FocusForge, when empty
Hand overRendered 16-bit TIFF files or The original filesrendered TIFF
Add the resultBeside the source photos, stacked with the first or In the FocusForge working folder, not stackedbeside 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.