#!/bin/sh

set -eu

imgdir="content/files/i"

for img in $@
do
	imgbase="$(basename $img)"
	imgpath="${imgdir}/${imgbase}"
	cp $img $imgdir
	convert -resize 800x600 "$imgpath" "${imgdir}/t/${imgbase}"
done
