File scanbuttond-sbd-gimp.sh of Package scanbuttond
#!/bin/sh # one-touch gimp # http://gentoo-wiki.com/Scanner_buttons_and_one-touch_scanning # DEVICE=$2 TMPFILE=$1 GIMP=`which gimp` scanimage --device-name ${DEVICE} --format pnm \ --mode Color --depth 8 --resolution 300 \ -l 0 -t 0 -x 215mm -y 280mm \ --lampoff-time 300 \ > ${TMPFILE}.pnm ${GIMP} ${TMPFILE}.pnm