]>
git.scottworley.com Git - picsort/blob - pics-preprocess
fde35d14f9f70630ee8468d5499a8013b8ebdfcb
3 # Pass .NEF files as $@.
4 # This makes many variants of each one at different exposure levels.
13 for level
in {10.
.30};do
14 mkdir -p {,sm
/}"$level"
15 base
="$(basename "$f")"
16 out
="$level/${base%.NEF}.jpeg"
17 exposure
=$(dc <<< "2k $level 4 / 3.5-p") # 10 to 30 -> -1 to 4 in .25 steps
18 if [[ ! -s "$out" ]];then
19 ufraw
-batch --out-type=jpeg \
21 --temperature="$TEMPERATURE" \
22 --compression="$JPEGCOMPRESSION" \
23 --exposure="$exposure" \
27 if [[ ! -s "sm/$out" ]];then
28 convert
"$out" -geometry "x$SMALLHEIGHT" "sm/$out"