From d70b3027869399c06ef4d5122c11738c42af51ef Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Sat, 6 Jun 2020 15:32:39 +0200 Subject: [PATCH] scandoc: Drop hardcoded USB bus/device address --- scandoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scandoc b/scandoc index 677c143..ad18a10 100755 --- a/scandoc +++ b/scandoc @@ -13,7 +13,7 @@ echo "Output file directory: $D" PAGE=0 while true; do PAGE=$((PAGE+1)) - scanimage --device-name=genesys:libusb:002:008 --format=png --progress --resolution 150 --mode Gray -x 210 -y 297 | convert -rotate 180 -modulate 120 -level 30,60% - cur.png + scanimage --device-name=genesys --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.2