summaryrefslogtreecommitdiffstats
path: root/fb-img-resize
blob: 8825b5b00e937066d85b0eaad2642152d6b0a9ef (plain)
1
2
3
4
5
6
7
8
9
10
11
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"/*