From: Martin Pitt Date: Sat, 6 Jun 2020 13:32:39 +0000 (+0200) Subject: scandoc: Drop hardcoded USB bus/device address X-Git-Url: https://piware.de/gitweb/?a=commitdiff_plain;h=d70b3027869399c06ef4d5122c11738c42af51ef;p=bin.git scandoc: Drop hardcoded USB bus/device address --- 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