for i in *.JPG; do convert $i -resize 600x400 $(basename $i .JPG)-klein.jpg; done