]>
git.scottworley.com Git - picsort/blob - pics-preprocess
a67f460eb1ef665efa132da12459b78fde222bf3
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.
11 if [[ "$f" == *.NEF
]];then
12 for level
in {10.
.30};do
13 mkdir -p {,sm
/}"$level"
14 base
="$(basename "$f")"
15 out
="$level/${base%.NEF}.jpeg"
16 if [[ -s "$out" ]];then
19 exposure
=$(dc <<< "2k $level 4 / 3.5-p") # 10 to 30 -> -1 to 4 in .25 steps
20 pics
-run-ufraw "$exposure" "$f" "$out"
22 if [[ -s "sm/$out" ]];then
23 echo "Skipping sm/$out"
25 convert
"$out" -geometry "x$SMALLHEIGHT" "sm/$out"
29 if [[ -s "sm/$f" ]];then
33 convert
"$f" -geometry "x$SMALLHEIGHT" "sm/$f"