This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |