#!/bin/bash for i in *.jpg; do   convert $i -geometry 75x75\! `basename $i .jpg`_small.jpg done