summaryrefslogtreecommitdiffstats
path: root/scan-multi
diff options
context:
space:
mode:
Diffstat (limited to 'scan-multi')
-rwxr-xr-xscan-multi9
1 files changed, 9 insertions, 0 deletions
diff --git a/scan-multi b/scan-multi
new file mode 100755
index 0000000..296bab4
--- /dev/null
+++ b/scan-multi
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+time=$(date +%Y-%m-%d_%H%M%S)
+scanimage -b -x 214.98 -y 294.973
+for img in out*.pnm; do
+ newfile="${time}_$((i++)).jpg"
+ convert "$img" "$newfile" && rm "$img"
+done
+