#!/bin/sh

if [ "$1" = "" ]; then
	echo "Usage: $0 [imgfile].jpg"
	exit 1
fi

convert -filter Cubic -scale 600x450 $1.jpg $1-small.jpg
if [ $? != 0 ]; then
	exit 1
fi
