]> git.scottworley.com Git - picsort/blob - pics-preprocess
move_to_nondeleted() calls setpic()
[picsort] / pics-preprocess
1 #!/bin/bash
2
3 # Pass .NEF files as $@.
4 # This makes many variants of each one at different exposure levels.
5
6 GREEN=1.105
7 TEMPERATURE=5500
8 JPEGCOMPRESSION=95
9 SMALLHEIGHT=700
10
11
12 for f;do
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 ufraw-batch --out-type=jpeg \
19 --green="$GREEN" \
20 --temperature="$TEMPERATURE" \
21 --compression="$JPEGCOMPRESSION" \
22 --exposure="$exposure" \
23 --output="$out" \
24 "$f"
25 convert "$out" -geometry "x$SMALLHEIGHT" "sm/$out"
26 done
27 done