Time saving Darktable plugin for HDR and focus stacking
In this episode I take a first look at Holger's lua plugin for stacking. I walk through downloading and installing the lua script to provide a front-end for align_image_stack and enfuse. There are a couple bits along the way that this will smooth over for you.
We then take a quick look at how this works with an image.
Thank you Holger! You've made all our lives easier and our edits more fun.
I've translated Holger's README file into English for you below.
Holger’s README in english
Installation on Ubuntu:
1.) First the Lua script language must be installed with the following commands:
sudo apt-get update
sudo apt-get install liblua5.2-0 liblua5.2-dev lua5.2 lua5.2-doc
2.) The program align_image_stack (contained in hugin-tools), enfuse and exiftool is needed for the generation of the HDR and DFF (Focus Stacking) images. Install it with:
sudo apt-get install hugin-tools enfuse libimage-exiftool-perl
(added by Harry) You may also require upgrading your enfuse to 4.2
sudo add-apt-repository ppa:hugin/hugin-builds
sudo apt-get update
sudo apt-get upgrade
3.) If not already present, create the following directories:
4.) Copy the Lua script enfuse_pro.lua
5.) To start the script the luarc file has to be created or edited. The text file ~/.config/darktable/luarc has to be opened or created with a text editor.
Add the following to the luarc file:
After a reboot of darktable the plugin under the name "fusion to hdr or dff image" should appear in the target storage options of the export function.
In the global presets under the tab Lua Options there are further settings for the plug-in.
PS: The script only works when you start Darktable normally from the menu or from the terminal window when you are in your home directory. If you are not in the home directory, align_image_stack saves the images to an incorrect location and enfuse will not find you!