Thumbnail Script

inlinetoc

이미지 매직 (ImageMagick)을 이용한 스크립트이다. https://www.cyberciti.biz/tips/howto-linux-creating-a-image-thumbnails-from-shell-prompt.html

#!/bin/bash
# https://www.cyberciti.biz/tips/howto-linux-creating-a-image-thumbnails-from-shell-prompt.html
FILES="[email protected]"
for i in $FILES
do
echo "Prcoessing image $i ..."
/usr/bin/convert -thumbnail 200 $i thumb.$i
done
for i in `ls *.jpg`; do convert -thumbnail 190 $i thumb.$i; done