for file in *.jpg; do 
  convert -size 1024x768 -scale 1024x768  -quality 75 $file ${file/.jpg/.web.jpg};
  mv ${file/.jpg/.web.jpg} $file;
done;

Leave a reply

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>