summaryrefslogtreecommitdiffstats
path: root/fb-img-resize
blob: 16e008799352fca8414e79c2f4c95f955a1c4169 (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 "$TMPDIR"/*