#!/bin/bash
echo "<html><head><title>Images</title></head><body>" > index.html 
for f in `ls` 
do 
convert -size 200x400 $f -resize 200x400 thumb-$f 
echo "<a href=\"$f\"><img src=\"thumb-$f\" /></a>" >> index.html 
done 
echo "</body></html>" >> index.html
