12 scanimage --format=pnm --progress --resolution=$resolution --mode=Color $@ > tmp.ppm
16 pamflip -rotate$rotate | pnmcrop -closeness=$crop
20 pnmscale -w 600 < tmp.ppm | process > preview.ppm
28 cur=`printf "%03d.ppm" $ctr`
34 echo "$cur: (v)iew r(otate) c(rop) (s)can (p)review (n)ext"
42 scan 1600 --high-quality=yes
49 cat tmp.ppm | process > $cur