]> git.scottworley.com Git - picsort/blame - pics-preprocess
'n' and 'p' for next and previous input image
[picsort] / pics-preprocess
CommitLineData
e18c13a6
SW
1#!/bin/bash
2
3# Pass .NEF files as $@.
4# This makes many variants of each one at different exposure levels.
5
6GREEN=1.105
7TEMPERATURE=5500
8JPEGCOMPRESSION=95
9
10
11for f;do
12 for level in {10..30};do
13 mkdir -p "$level"
14 base="$(basename "$f")"
15 out="$level/${base%.NEF}.jpeg"
16 exposure=$(dc <<< "2k $level 4 / 3.5-p") # 10 to 30 -> -1 to 4 in .25 steps
17 ufraw-batch --out-type=jpeg \
18 --green="$GREEN" \
19 --temperature="$TEMPERATURE" \
20 --compression="$JPEGCOMPRESSION" \
21 --exposure="$exposure" \
22 --output="$out" \
23 "$f"
24 done
25done