]>
git.scottworley.com Git - picsort/blob - pics-preprocess
3 # Pass .NEF and .jpeg files as $@.
4 # This makes many variants of each .NEF file at different exposure levels
5 # and makes reduced-size versions for faster browsing.
12 if [[ "$f" == *.NEF
]];then
13 for level
in {10.
.30};do
14 mkdir -p {,sm
/}"$level"
15 base
="$(basename "$f")"
16 out
="$level/${base%.NEF}.jpeg"
17 if [[ -s "$out" ]];then
20 exposure
=$(dc <<< "2k $level 4 / 3.5-p") # 10 to 30 -> -1 to 4 in .25 steps
21 pics
-run-ufraw "$exposure" "$f" "$out"
23 if [[ -s "sm/$out" ]];then
24 echo "Skipping sm/$out"
26 convert
"$out" -geometry "x$SMALLHEIGHT" "sm/$out"
30 if [[ -s "sm/$f" ]];then
34 convert
"$f" -geometry "x$SMALLHEIGHT" "sm/$f"