Recent Changes - Search:

edit SideBar


Firefox 2
Get Thunderbird!

ThumbnailFilesScript

Bash.ThumbnailFilesScript History

Hide minor edits - Show changes to markup

November 03, 2005, at 07:24 PM by 85.105.66.26
Added lines 1-45:

Resimlerin thumbnail'lerini olusturan betik.

(:code:) #!/bin/bash # Komut satirindan girilen dosyalarin # genisligi 150px olacak sekilde kucuk # resimlerini(thumbnail) olusturan betik. # Thumbnail yapilan dosyalar buyuk resim ile # ayni path'te "thumb_orijinal_resi_adi.jpg" # seklinde kaydedilir. Eger thumnail daha �nceden # yaratilmissa kullanicidan onay bekler. BETIK=`basename $0` if [ $# -eq 0 ]; then echo "Kullanimi: $BETIK <resim1.jpg> [<resim2.jpg>,...]" echo "�rnek: $BETIK resim1.jpg resim2.jpg" echo "�rnek: $BETIK resim1.jpg klasor1/*" exit fi PWD=`pwd` for i in $*; do IMAGE_NAME=`basename $i` IMAGE_DIR=`dirname $i` THUMB_NAME="thumb_${IMAGE_NAME}" if [ -f ${IMAGE_DIR}/${THUMB_NAME} ]; then ONAY="" echo -n "Uyari: ${IMAGE_DIR}/${THUMB_NAME} zaten var, uzerine yazayim mi?[e/h,y/n]" read ONAY if [ "$ONAY" = "e" ] || [ "$ONAY" = "y" ]; then echo "${IMAGE_DIR}/${IMAGE_NAME} --> ${IMAGE_DIR}/${THUMB_NAME}" convert ${IMAGE_DIR}/${IMAGE_NAME} -scale 150 ${IMAGE_DIR}/${THUMB_NAME} fi continue fi echo "${IMAGE_DIR}/${IMAGE_NAME} --> ${IMAGE_DIR}/${THUMB_NAME}" convert ${IMAGE_DIR}/${IMAGE_NAME} -scale 150 ${IMAGE_DIR}/${THUMB_NAME} done

Edit - History - Print - Recent Changes - Search
Page last modified on November 03, 2005, at 07:24 PM