diff options
author | Florian Pritz <bluewind@xinu.at> | 2016-12-01 16:03:59 +0100 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2016-12-01 16:03:59 +0100 |
commit | 0ea8f6c97c58d3b95f7ab3951b08dea73e566082 (patch) | |
tree | 16530fef0fbd0ec1a6c14da361669fe56e349b69 /scan-multi | |
parent | 878f2b65cc13c38d69d5c98a15cd17130da08d32 (diff) | |
download | bin-0ea8f6c97c58d3b95f7ab3951b08dea73e566082.tar.gz bin-0ea8f6c97c58d3b95f7ab3951b08dea73e566082.tar.xz |
misc
Signed-off-by: Florian Pritz <bluewind@xinu.at>
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 |