Bash

Bash-loop

for i in *.jpg; do convert -resize 20% $i `basename $i .jpg`_thumb.jpg; done