diff options
author | Florian Pritz <bluewind@xinu.at> | 2011-10-23 21:51:36 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2011-10-23 21:51:36 +0200 |
commit | 523b47ba579089de73958e3459b1d12bd4628486 (patch) | |
tree | 2c38cdefe65d854088b6c3b04a3e5abea9321cb9 /scan-multi | |
parent | 6ad11bc11c499cb83db71f9ec0b2fc7816947ce6 (diff) | |
download | bin-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-x | scan-multi | 9 |
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 + |