ctr=$(( $ctr - 1 ))
scan() {
- resolution=$1
+ preview=$1
shift
[ -z "$NEGATIVE" ] && src="Flatbed" || src="Transparency Adapter"
[ -z "$NEGATIVE" ] && depth=8 || depth=16
[ -z "$NEGATIVE" ] && resolution=800 || resolution=1600
+ if [ "$preview" = "yes" ]; then
+ depth=8
+ resolution=150
+ fi
scanimage \
--format=pnm \
--mode=Color \
do_next
while : ; do
- echo -n "$cur: crop:$crop rotate:$rotate v/r/c/s/p/n> "
+ echo -n "$cur: C:$crop R:$rotate v/r/c/s/p/n> "
read c
case $c in
v)
- scan 150 --preview=yes
+ scan yes --preview=yes
preview
;;
s)
- scan 1600 --preview=no --high-quality=yes
+ scan no --preview=no --high-quality=yes
preview
;;
p)