This rough script might be usefull. It makes a nice html "index.htm" that will show thumbnails of all your images in the dir it is run from (also subdirectories). Maybe it can gi ve you some ideas.

#!/bin/bash

#imake dir for thumbnails
mkdir -p icons

#Find all files and store list in $picfiles
picfiles=$(find . -type f -name "*")

#start writing html file
cat <<EOD > index.htm
<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">
<html>
<head>
<title>test</title>
</head>
<body>

<h2>Click on these for a close up!</h2>

EOD
#initialize the lastdir variable
lastdir="Nuttnzzzzzzzz"

#loop through files making thumbnails of each
#and a link to it in index.htm
for matchfile in $picfiles
do
#add an s in the filename for the icon dir
outname=$(echo $matchfile |sed 's/.jpg$/s.jpg/')
#remove the ./ from the path
icdest=$(echo $outname |sed "s/^.\///")
#let the user see some progress
echo "$matchfile"
#compose and make the dir in the icons dir
newdir1=$(echo "./icons/$icdest" |sed "s/\/[^/]*$//")
mkdir -p "$newdir1"
#make the icon (thumbnail)
convert -resize 150x105 $matchfile ./icons/$icdest
#is this a new dir?
if [ $lastdir != $newdir1 ]
then
#print dir name to page when dir changes
printdir=$(echo $icdest |sed "s/\/[^/]*$//")
echo "<h3>$printdir</h3>" >>index.htm
fi
lastdir=$newdir1
#write the index point in page
echo "<a href=\"$matchfile\"" >>index.htm
echo "target=_blank ONCLICK=\"window.open(" >>index.htm
echo "'$matchfile'); return false\" ><img src=" >>index.htm
echo "\"./icons/$icdest\" border=\"0\"></a>" >>index.htm
done

#finish writing html file
echo "</body></html>" >> index.htm