diff options
Diffstat (limited to 'scan-multi')
-rwxr-xr-x | scan-multi | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -4,12 +4,12 @@ jpeg_quality=70 jpeg_size=1500x1500 time=$(date +%Y-%m-%d_%H%M%S) -scanimage --resolution 200 -b -x 215 -y 297 +scanimage --resolution 200 -b -x 210 -y 297 i=1 while [[ -e "out$i.pnm" ]]; do img="out$i.pnm" newname="$(printf "%s_%03d" "$time" "$i")" - convert "$img" -normalize -resize $jpeg_size -quality $jpeg_quality "$newname.jpg" && rm "$img" + convert "$img" -resize $jpeg_size -quality $jpeg_quality "$newname.jpg" && rm "$img" ((i++)) done |