From: Martin Pitt Date: Sat, 11 Apr 2020 17:47:56 +0000 (+0200) Subject: scandoc: Specify device and format X-Git-Url: https://piware.de/gitweb/?p=bin.git;a=commitdiff_plain;h=ae0281f09438647063147e2de35f9dcb7a7693ff scandoc: Specify device and format --- diff --git a/scandoc b/scandoc index dcfa038..647a6f9 100755 --- a/scandoc +++ b/scandoc @@ -13,7 +13,7 @@ echo "Output file directory: $D" PAGE=0 while true; do PAGE=$((PAGE+1)) - scanimage --resolution 150 --mode Gray -x 210 -y 297 | convert -rotate 180 -modulate 120 -level 30,60% - cur.png + scanimage --device-name=genesys:libusb:002:007 --format=png --progress --resolution 150 --mode Gray -x 210 -y 297 | convert -rotate 180 -modulate 120 -level 30,60% - cur.png FNAME=page`printf '%02i' $PAGE` pngquant 4 < cur.png > $FNAME.png convert $FNAME.png $FNAME.pdf