#!/bin/bash THUMBDIR=thumb THUMBSIZE=120x120 THUMBHTML=index.html if [ ! -d $THUMBDIR ]; then mkdir -p $THUMBDIR fi echo "fotki =)
" > $THUMBHTML for img in `/bin/ls *.jpg *.JPG 2>/dev/null`; do convert -size $THUMBSIZE "$img" -resize $THUMBSIZE +profile "*" "$THUMBDIR/$img" && echo "$img" >> $THUMBHTML done echo "
" >> $THUMBHTML