2014-12-24 19:19:12 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
2016-10-12 09:16:48 +02:00
|
|
|
if [ "$1" = "-h" ]; then
|
|
|
|
cat <<EOF>&2
|
2014-12-24 19:19:12 +01:00
|
|
|
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
|
|
|
|
|
2016-06-23 23:18:36 +02:00
|
|
|
scanimage -x 297 -y 210 | convert -rotate 90 - "scan-$(date "+%F_%T").png"
|