Scripts: New 'scanner' script

master
Pierre Neidhardt 2014-12-24 19:19:12 +01:00
parent 2c21dd5929
commit fe5421bf4d
1 changed files with 12 additions and 0 deletions

12
.scripts/scanner Executable file
View File

@ -0,0 +1,12 @@
#!/bin/sh
if [ "$1" = "-h" ] || [ "$1" = "--help" ]; then
cat<<EOF
Sample script for A3 scanner. It selects a scan area of A4, then converts the
result to png while rotating the image apropriately. The date and time is
appended to the output filename which is in the current folder.
EOF
exit
fi
scanimage -x 297 -y 210 | convert -rotate 90 - scan-$(date "+%F_%T").png