Skip to content

Instantly share code, notes, and snippets.

@PetrGlad
Last active June 5, 2024 08:55
Show Gist options
  • Save PetrGlad/93c0a2c66003d0ea0671f96a2128d9cf to your computer and use it in GitHub Desktop.
Save PetrGlad/93c0a2c66003d0ea0671f96a2128d9cf to your computer and use it in GitHub Desktop.
Darktable batch export example
# Some docs imly source can be a directory, but it does not work actually.
# Below is a workaround
for p in a-source-folder/*
do
# Note that uppercase JPG suffix is not recognized so adding "jpg" to output file name.
darktable-cli --width 3000 --height 3000 --hq true $p $(dirname $p)-export/$(basename ${p%.JPG}.jpg);
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment