HAL W CANARY (3)

Navigation: Home | THE LOG | Log Archives | Resume | Contact Info | Public Key | SSL | Math Applets | Site Map | RSS2 | Atom | Backend

A trip to the arboretum on 2002-08-25

Back to Photos.


Useful scripts that helped me make this little page:

thumb.sh
#!/bin/sh

if [ "$#" -lt 2 ]; then
    echo "Usage:  thumb.sh source thumbnail" ; exit 1  
fi

convert -size 120x120 $1 -resize 120x120 +profile "*" $2
echo  "<p><a href=\"$1\" ><img alt=\"\" src=\"$2\" /></a></p>"

Run this command:

$ mkdir thumb
$ for x in *.jpg ; do thumb.sh $x thumb/$x ; done

And take the output and paste it into a html document.

file modification time: 2004-04-05 01:22:22 -04:00

Copyright 1997-2011 by Hal Canary.
mailto: h3 at halcanary dot org
http://halcanary.org