diff options
author | Florian Pritz <bluewind@xinu.at> | 2012-12-06 14:49:44 +0100 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2012-12-06 14:51:39 +0100 |
commit | 5fea41506ea2778b2908861a391fa4b52457f0b1 (patch) | |
tree | 688048d1fc345db09d284abee0c392a1922855dd /scan-multi | |
parent | 11884f7ef3235f4be3324e569fa804a07a5336bb (diff) | |
download | bin-5fea41506ea2778b2908861a391fa4b52457f0b1.tar.gz bin-5fea41506ea2778b2908861a391fa4b52457f0b1.tar.xz |
scan-multi: remove unneeded files
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'scan-multi')
-rwxr-xr-x | scan-multi | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -6,11 +6,10 @@ i=1 while [[ -e "out$i.pnm" ]]; do img="out$i.pnm" newname="$(printf "%s_%03d" "$time" "$i")" - convert "$img" -normalize -quality 95 "$newname.jpg" - mv "$img" "$newname.pnm" + convert "$img" -normalize -quality 95 "$newname.jpg" && rm "$img" ((i++)) done if [[ $1 = "--pdf" ]]; then - convert "${time}"_*.jpg -resize 1500x1500 "${time}.pdf" + convert "${time}"_*.jpg -resize 1500x1500 "${time}.pdf" && rm "${time}"_*.jpg fi |