#!/bin/sh
files=`ls *.jpg`
for file in $files
do
	target=$(echo $file | sed -e "s/jpg/jpg/")
        echo Now converting ${file} to ${target}	
	nice convert -geometry 50% -quality 80% -sharpen 0x0.6 ${file} ${target}
done
exit 0
