scanner 355 B

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