Here's a patch that makes only 100X100 images but they will actually be
displayed in your browser.

The problem was that width and height were not specified and also there
was a leading _ which confused the browser.

This works fine for me. Thanks for the code.

------
--- /art/spesh/gimp/makethumb   Thu Sep 20 15:04:37 2001
+++ /usr/local/bin/makethumb    Thu Sep 20 18:38:32 2001
@@ -51,7 +51,7 @@
 
 #--- 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)'\
@@ -70,7 +70,7 @@
 echo -n "$IMAGE"    >> $F
 echo -n '"><img SRC="' >> $F
 echo -n "$THUMB"    >> $F
-echo -n '" NOSAVE BORDER=0></a>' >> $F
+echo -n '" width="100" height="100" NOSAVE BORDER=0></a>' >> $F
 echo '<p>Pic</center>' >> $F
 echo '</td>' >> $F
 COL=$((COL + 1))
[root@localhost pics]# diff -u /art/spesh/gimp/makethumb
/usr/local/bin/maket humb > /art/code/gimp/makethumb.diff
[root@localhost pics]# cat /art/code/gimp/makethumb.diff 
--- /art/spesh/gimp/makethumb   Thu Sep 20 15:04:37 2001
+++ /usr/local/bin/makethumb    Thu Sep 20 18:58:01 2001
@@ -51,7 +51,7 @@
 
 #--- 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)'\
@@ -70,7 +70,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

Reply via email to