1: 2: 3: 4: 5:
for img in `ls *.jpg` do convert -size 140x100 -resize 140x100 +profile '*' -shave 0x04 $img /home/realtordata/images/imagedownload/testthumbs/$img done
1: 2: 3: 4: 5: 6: 7: 8: 9:
#!/bin/bash cd /full/path/to/dir for img in *.jpg do /full/path/to/convert -size 140x100 -resize 140x100 +profile '*' -shave 0x04 $img /home/realtordata/images/imagedownload/testthumbs/$img done