summaryrefslogtreecommitdiffstats
path: root/scan-multi
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2011-10-23 21:51:36 +0200
committerFlorian Pritz <bluewind@xinu.at>2011-10-23 21:51:36 +0200
commit523b47ba579089de73958e3459b1d12bd4628486 (patch)
tree2c38cdefe65d854088b6c3b04a3e5abea9321cb9 /scan-multi
parent6ad11bc11c499cb83db71f9ec0b2fc7816947ce6 (diff)
downloadbin-523b47ba579089de73958e3459b1d12bd4628486.tar.gz
bin-523b47ba579089de73958e3459b1d12bd4628486.tar.xz
add some scripts
Signed-off-by: Florian Pritz <bluewind@xinu.at>
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
+