diff options
author | Florian Pritz <bluewind@xinu.at> | 2015-07-27 15:33:12 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2015-07-27 15:33:12 +0200 |
commit | 11ebc79bad89075267574a032b46eb992a0a6f32 (patch) | |
tree | be76655e7bfae568e2f32802fffda3f4ae8421b7 /fb-img-resize | |
parent | 1721bd7db1775fe7df3de1837af53f5689c35ab4 (diff) | |
download | bin-11ebc79bad89075267574a032b46eb992a0a6f32.tar.gz bin-11ebc79bad89075267574a032b46eb992a0a6f32.tar.xz |
add new scripts
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'fb-img-resize')
-rwxr-xr-x | fb-img-resize | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/fb-img-resize b/fb-img-resize new file mode 100755 index 0000000..8825b5b --- /dev/null +++ b/fb-img-resize @@ -0,0 +1,12 @@ +#!/bin/bash + +set -e + +TMPDIR="$(mktemp -d "/tmp/${0##*/}.XXXXXX")" +trap "rm -rf '${TMPDIR}'" EXIT TERM + +for i in "$@"; do + convert "$i" -resize 1500x1500 "$TMPDIR/${i##*/}" +done + +fb -m "$TMPDIR"/* |