#!/bin/bash

#rm HEADER.html
touch HEADER.html

for image in G*.jpg; do
    i=${image%%.jpg}
    echo $image
    convert -size 100x100 -resize 100x100 $image _thumb${i}.jpg
    echo "<a href=\"${i}.JPG\" target=\"new\"><img src=\"_thumb${i}.jpg\"></a>" >> HEADER.html
done

