for i in `ls *JPG`; do convert -resize 800x600 $i $i;done