add geometry
This commit is contained in:
parent
d7a3114893
commit
1391b72c26
1 changed files with 6 additions and 4 deletions
|
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
device="brother5:bus2;dev2"
|
||||
# device=$(scanimage -f "%d%n" | grep brother5 | head -n 1)
|
||||
# device="brother5:bus2;dev2"
|
||||
device=$(scanimage -f "%d%n" | grep brother5 | head -n 1)
|
||||
echo "Selecting scanner '$device'"
|
||||
|
||||
# option values for the brother DS-740D scanner
|
||||
|
|
@ -66,13 +66,15 @@ scan() {
|
|||
esac
|
||||
|
||||
echo "Scanning to '$next_out_file'..."
|
||||
echo scanimage \
|
||||
scanimage \
|
||||
--device-name=$device \
|
||||
--format=pdf \
|
||||
--output-file="$next_out_file" \
|
||||
--mode="$scanner_mode" \
|
||||
--resolution="$resolution" \
|
||||
--source="$sides"
|
||||
--source="$sides" \
|
||||
-x 210 -y 297 # A4
|
||||
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue