#!/bin/bash

for i in $(find . -name "*.jpg")
do
  convert ***.jpg -resize 150x150 /thumbs/tn****.jpg
done
