This adds the option of specifying the filename and a small correction to the messages. (I'm a tesol prof so I can't help it ;) ) A working commandline now looks like this: makethumb 90 90 1 file.html *.jpg ----- --- /art/spesh/gimp/makethumb Thu Sep 20 15:04:37 2001 +++ /usr/local/bin/makethumb Thu Sep 20 19:26:49 2001 @@ -21,11 +21,13 @@ WIDTH=$1 HEIGHT=$2 QUALITY=$3 - shift; shift; shift + F=$4 + shift; shift; shift; shift fi echo -echo "Thumbnails are ${WIDTH}x${HEIGHT} (max) @ $QUALITY quality." +echo "Thumbnails are ${WIDTH}x${HEIGHT} (max) @ $QUALITY x 100% compression."+echo "Creating $F" echo rm -f $F @@ -51,10 +53,10 @@ #--- FOR loop to process the images for IMAGE in $@; do - THUMB=_$IMAGE + THUMB=$IMAGE echo "Working on file: $IMAGE ($THUMB)" - gimp --display :0.0 -c -i -d -b '(script-fu-autothumb "'$IMAGE'" '$WIDTH' '$HEIGHT' '${KEEP_AR}' '$QUALITY' "'$THUMB'" FALSE)'\ + gimp --display :0.0 -c -i -d -b '(script-fu-autothumb "'$IMAGE'" '$WIDTH' '$HEIGHT' '${KEEP_AR}' '$QUALITY' "'$THUMB'" FALSE)'\ '(gimp-quit 0)' #--- Starting row @@ -70,7 +72,11 @@ echo -n "$IMAGE" >> $F echo -n '"><img SRC="' >> $F echo -n "$THUMB" >> $F -echo -n '" NOSAVE BORDER=0></a>' >> $F +echo -n '" width="' >> $F +echo -n "$WIDTH" >> $F +echo -n '" height="' >> $F +echo -n "$HEIGHT" >> $F +echo -n '"NOSAVE BORDER=0"></a>' >> $F echo '<p>Pic</center>' >> $F echo '</td>' >> $F COL=$((COL + 1)) ----- -- Patrick Shirkey - Manager Boost Hardware Limited. Http://www.boosthardware.com - For the discerning hardware connoisseur. http://www.boosthardware.com/LAU/Linux_Audio_Users_Guide/ ======================================================================= _______________________________________________ Gimp-user mailing list [EMAIL PROTECTED] http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user