Home › Forums › Photo Critique › The Milky Way in Mexico › Reply To: The Milky Way in Mexico
Ok, here’s the final code:
SET rt="C:\Program Files\RawTherapee-4.2.1005\rawtherapee.exe"
SET hugin="C:\Program Files (x86)\Hugin\bin\align_image_stack.exe"
SET gmic="C:\Users\Jeanette\G'MIC\gmic-1.7.5-win64\gmic.exe"
%rt% -b16 -t -w -c IMG*.CR2
%hugin% -m -v -a aligned_ IMG_*.tif
%gmic% -average_files aligned*.tif -o averaged.tif,ushort
DEL IMG_*.tif
DEL aligned_*.tif
%rt% -w averaged.tif
PAUSE
Don’t worry, it won’t be hard! 🙂 Here’s a link to download the script: https://www.dropbox.com/s/7gymxg9j4i2t147/canon-raw-stack-average.bat?dl=1
Once you’ve downloaded the script, copy it to the folder where your 10 RAW files are. (Copy the file canon-raw-stack-average.bat
to the folder full of RAW files.) Make sure that your folder of RAW files has only the RAW files in it that you want to stack, and nothing else (except the .bat
file of course)!
Once you have 10 RAW files and one .bat
file in that folder, just double-click the .bat
file to run it. You should get
a little black box with some writing in it
Otherwise known as “The Command Line”. 🙂 If everything works out right, the script should run for several minutes, and then it should say, “Press any key to continue…” Pressing any key will exit the command line window. Then you should find a file called averaged.tif
in your folder full of RAW files, and RawTherapee should open that file to be edited.
If you get any errors, let me know what it says, and we’ll try to work through it.