#!/bin/sh

## output dir
OUT=/home/troy/tmp/pictemp

## what res do we want (append ! to force)
RESIZE=1024x768

## uncomment this to strip comments
#STRIP_COMMENTS="+profile '*'"

## quality
#QUALITY="-quality 80"


if [ ! -d $OUT ]; then
	echo 'You are dumb.  Set $OUT'
	exit
fi

for f in $*; do
	#echo	convert  $f ${QUALITY} -resize ${RESIZE} ${STRIP_COMMENTS} ${OUT}/`basename $f`
	convert  $f ${QUALITY} -resize ${RESIZE} ${STRIP_COMMENTS} ${OUT}/`basename $f`
done