Skip to content

Commit

Permalink
Update darktable_CGWHDRI_DevBatch.bat
Browse files Browse the repository at this point in the history
  • Loading branch information
yyamada722 committed Jan 23, 2024
1 parent 6720434 commit e6dbc6a
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions darktable_CGWHDRI_DevBatch.bat
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ setlocal enabledelayedexpansion
:: Darktable CLIのパス
set "dt_cli=C:\Program Files\darktable\bin\darktable-cli.exe"
:: dtstyleのパス
set "Style=--verbose --out-ext tif --hq 0 --style THETA_Z1_HDRI_IDT_REC2020_v2 --style-overwrite"
:: Configディレクトリのパス
::Config_dirのUSERNAMEをdtstyleが配置されるユーザー名に変更してください
set "Config_dir=--core --conf C:\Users\USERNAME\.config\darktable\"
set "Style=--hq 0 --style THETA_Z1_HDRI_IDT_REC2020_v2 --style-overwrite --out-ext tiff --icc-file"
:: ICCプロファイルのパス
set "Icc_file=C:\Users\(USERNAME)\AppData\Local\darktable\color\out\REC2020(Rec709 Gamma).icc"
:: tiffオプション
set "tiff_option=--verbose --core --conf plugins/imageio/format/tiff/bpp=16 plugins/imageio/format/tiff/bcompress=2 plugins/imageio/format/tiff/compresslevel=5"

:: 入力ディレクトリと出力ディレクトリの入力
set /p "In_dir=Input Directory: "
Expand All @@ -21,18 +22,22 @@ if "%Out_dir:~-1%"=="\" set "Out_dir=%Out_dir:~0,-1%"
set "In_dir=%In_dir:\=/%"
set "Out_dir=%Out_dir:\=/%"

echo !In_dir!
:: 入力ディレクトリのファイルを処理
for %%f in ("%In_dir%\*.*") do (
set "input_path=%%f"
echo loading file=!input_path!
set "file_name=%%~nf"
set "output_path=%Out_dir%/%!file_name!.tif"

set "output_path=!Out_dir!/%!file_name!"
echo "%dt_cli%" "!input_path!" "!output_path!" !Style! "!Icc_file!" !tiff_option! !Config_dir!
echo ----------------------
echo Processing: !input_path!
"%dt_cli%" "!input_path!" "!output_path!" %Style% %Config_dir%
"%dt_cli%" "!input_path!" "!output_path!" !Style! "!Icc_file!" !tiff_option! !Config_dir!

if errorlevel 1 (
echo Error occurred during processing !input_path!
)
echo ----------------------
echo ======================
)

echo Processing complete.
Expand Down

0 comments on commit e6dbc6a

Please sign in to comment.