- ufraw-batch --out-type=jpeg \
- --green="$GREEN" \
- --temperature="$TEMPERATURE" \
- --compression="$JPEGCOMPRESSION" \
- --exposure="$exposure" \
- --output="$out" \
- "$f"
+ if [[ ! -s "$out" ]];then
+ ufraw-batch --out-type=jpeg \
+ --green="$GREEN" \
+ --temperature="$TEMPERATURE" \
+ --compression="$JPEGCOMPRESSION" \
+ --exposure="$exposure" \
+ --output="$out" \
+ "$f"
+ fi
+ if [[ ! -s "sm/$out" ]];then
+ convert "$out" -geometry "x$SMALLHEIGHT" "sm/$out"
+ fi