]> git.scottworley.com Git - picsort/blobdiff - pics-preprocess
Zoom by switching to smaller preprocessed images
[picsort] / pics-preprocess
index d5400602b06f8ec5c2f8b579c3cdd733abd7336e..87eca8c4fa17a0d5ba0cc2b1e178e27ca7a1dd3b 100755 (executable)
@@ -6,11 +6,12 @@
 GREEN=1.105
 TEMPERATURE=5500
 JPEGCOMPRESSION=95
+SMALLHEIGHT=700
 
 
 for f;do
   for level in {10..30};do
-    mkdir -p "$level"
+    mkdir -p {,sm/}"$level"
     base="$(basename "$f")"
     out="$level/${base%.NEF}.jpeg"
     exposure=$(dc <<< "2k $level 4 / 3.5-p")  # 10 to 30 -> -1 to 4 in .25 steps
@@ -21,5 +22,6 @@ for f;do
                 --exposure="$exposure" \
                 --output="$out" \
                 "$f"
+    convert "$out" -geometry "x$SMALLHEIGHT" "sm/$out"
   done
 done