Photo Stacking Using darktable

Interesting…what happened? Personally, I’ve only used it on Linux, but I can give it a go on a Windows box as well.

I would like to know if it will work on Windows 11. Hate to install something that doesn’t work, because once you go to uninstall, as we all know leaves little bits of the program on your computer and never deletes all of the files.

I just installed it and ran it on Win 11 as follows. No problems. Any chance you tried double clicking the .exe file rather than running it from the command line?

Download focus-stack_Windows.zip version 1.4 from github

Extract to D:\projects\focus-stack

PS D:\projects\focus-stack> ./focus-stack.exe --output=D:\Pictures\Temp\stacked.jpg  D:\Pictures\Temp\20221025-073948-2174-DSCF0536.jpg D:\Pictures\Temp\20221025-073958-2175-DSCF0537.jpg D:\Pictures\Temp\20221025-074008-2176-DSCF0538.jpg  D:\Pictures\Temp\20221025-074016-2177-DSCF0539.jpg
Saved to D:\Pictures\Temp\stacked.jpge

(Noticed that the last message shows the file extension as .jpge rather than .jpg; the actual file created has extension .jpg though)

I just did this quick and dirty, stacking JPEGs instead of TIFFs, but it should illustrate the procedure.

I havent tried installing it yet. So how do i install the program in order to use it?

Just unzip it and use it, like I described. There is no installer.

Got it. Looks like when i see the .exe file there are 2 options. I will pick the “extract” and not “run”

I presume you are referring to focus-stack.exe in the zip file. You should extract the entire contents of the zip file, not just focus-stack.exe. The rest of the files in the zip are part of the package and needed by focus-stack.

Got it. So ill be sure to unzip the the whole downloaded file not just the exe file

1 Unzipped now i assume to use the program, i just click on focus-stack.exe correct?

2 When i do that my computer says it is an unrecognizable app and says dont run or run anyway. Please let me know both.

Is the program supposed to be installed or just run from the .exe

No, you run it from the command line.

If you get that message and you want to use the app, then you have to “run anyway”.

There is no installer. You run the .exe from a command prompt. That allows you to supply parameters to the program, such as the files you want to stack and the name to be used for the stacked image.

Hello, I am new here. I will show you how I do my stacking in linux (Debian).

Install enfuse:
sudo apt install enfuse

Create a script and make it executable:

#!/bin/sh
align_image_stack -a aligned_ -v -m -g 10 -C *.tif
enfuse -o result.tif --exposure-weight=0 --saturation-weight=0 --contrast-weight=1 --hard-mask aligned_* 

Create a new directory somewhere. I named it “stack”.
From darktable, export your images into “stack” as .tif.
Drop your script into “stack” and run it.
That’s all.

Hi @miket welcome! I’ve formatted your code snippet for you :slight_smile:

Thank you @paperdigits .Appreciated.

I run DT under Linux but for Focus Stacking I have used CombineZP under Wine (although it tends to crash a lot) or the free Picolay program (Windows) which doesn’t crash under Wine and has extensive options. By far the easiest Focus Stacking program (commercial but quite inexpensive) is Affinity Photo (Windows or Mac) but it doesn’t run under Wine - I have to dual boot for that.

I run darktable in Windows. Ive looked at CombineZP but haven’t really tried that yet. Picolay comes up as being a very good contender for a novice like myself. I do have a question. In looking at their manual, they say for raw images :
“RAW (*.dng, *.Cr2, *.nef)
For RAW images you need to have installed the appropriate CODEC for Adobe,
Canon or Nikon. Please check the corresponding websites for download”

Do you know what web site I need to see to get the CODEC for Nikon, and what is CODEC?

CODEC stands for COder DECoder.

Thank you

For Nikon - I believe this is the correct site for downloading their codecs - https://downloadcenter.nikonimglib.com/en/download/sw/203.html
I’m sure Canon has a similar location.

Look at the script here darktable lua documentation - image_stack