for img in `ls *.JPG`
do
  convert -resize 800x600 $img $img
done

