summaryrefslogtreecommitdiffstats
path: root/scan-multi
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2016-12-01 16:03:59 +0100
committerFlorian Pritz <bluewind@xinu.at>2016-12-01 16:03:59 +0100
commit0ea8f6c97c58d3b95f7ab3951b08dea73e566082 (patch)
tree16530fef0fbd0ec1a6c14da361669fe56e349b69 /scan-multi
parent878f2b65cc13c38d69d5c98a15cd17130da08d32 (diff)
downloadbin-0ea8f6c97c58d3b95f7ab3951b08dea73e566082.tar.gz
bin-0ea8f6c97c58d3b95f7ab3951b08dea73e566082.tar.xz
misc
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'scan-multi')
-rwxr-xr-xscan-multi4
1 files changed, 2 insertions, 2 deletions
diff --git a/scan-multi b/scan-multi
index fc6ca33..2a218ce 100755
--- a/scan-multi
+++ b/scan-multi
@@ -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