From ae0281f09438647063147e2de35f9dcb7a7693ff Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Sat, 11 Apr 2020 19:47:56 +0200 Subject: [PATCH] scandoc: Specify device and format --- scandoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5