batch resize images

on

images in dir full. resized images in current dir:

$ for im in full/*.JPG; do bn=$(basename "${im}"); convert "${im}" -resize 1024x1024 "${bn}"; done

images in current dir. resized (thumbs) in thumb dir

$ for im in *.JPG; convert "${im}" -resize 150x150 "thums/${im}"; done

:wq