Posts Tagged bulk

Resizing images (thumbnails) in bulk

Posted by on Tuesday, 7 April, 2009

#!/bin/bash
# you need imagemagick installed for this to work
#
DIR=/path/to/images/
SMIM=/path/to/images/thumbs
SIZE=200×200

for IMG in ${DIR}
do echo Converting ${IMG}
convert -size ${SIZE} -resize ${SIZE} ${IMG} ${SMIM}/thumb-${IMG}
done
Last-Modified: 2007-03-07 19:38:50