Resizing images (thumbnails) in bulk

This entry was posted by Tuesday, 7 April, 2009
Read the rest of this entry »

#!/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

Be Sociable, Share!

Leave a Reply



Time limit is exhausted. Please reload CAPTCHA.