diff options
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"/* |