X-Git-Url: http://git.scottworley.com/picsort/blobdiff_plain/1365c024d315ebd2663e2b5c8303ae7447e9e85c..967baf160b2b4f524bfda776149302680c75ffdd:/pics-preprocess diff --git a/pics-preprocess b/pics-preprocess index 6563cab..55b2717 100755 --- a/pics-preprocess +++ b/pics-preprocess @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Pass .NEF and .jpeg files as $@. # This makes many variants of each .NEF file at different exposure levels @@ -6,6 +6,7 @@ SMALLHEIGHT=700 +renice -n 19 $$ for f;do if [[ "$f" == *.NEF ]];then @@ -29,6 +30,7 @@ for f;do if [[ -s "sm/$f" ]];then echo "Skipping sm/$f" else + mkdir -p sm convert "$f" -geometry "x$SMALLHEIGHT" "sm/$f" fi fi