These two scripts combine to let you make a popup, click to close full screen thumbnail picture show. The first is a shell script, name it .create and put it in your Home directory. You will need to enable show hidden files to do it, as it will normally be hidden. The second on is just some javascript that needs to be copied into the thumbnail pages to make the popup windows, and make them work properly and presntably. Rename it .myscript.txt and also put it in your home folder. Note the dot (period) in front of each filename.
#!/bin/sh
IFS=$'\t\n'
mkdir New
cp *.jpg New
cd New
cnt=100
for i in ./*.jpg; do
let cnt=cnt+1
mv $i $3$cnt.jpg
done
montage -adjoin -border 1 -geometry $1 -background '#000' -tile $2 *.jpg $4.html
mogrify -transparent '#000' *.gif
sleep 2
sed -i '/<\/title>/r '$HOME'/.myscript.txt' *.html
sed -i '1,$s/<body>/<body bgcolor=\"#000\">/g' *html
sed -i "1,\$s/href=\"/href=\"#\" onClick=\"javascript:newwin(\'/g" *.html
sed -i "1,\$s/jpg\"/jpg\')\;\"/g" *.html
rm *.shtml
exit
# Open a terminal in the working directory.
# Usage: bash $HOME/.create "width of thumbnail images" "columns and rows" "file name of images" "file name of thumbnail pages"
# Example bash $HOME/.create 200 5x4 Lake_visit Vacation
# Enclose the text in double quotes if there are any spaces
<script>
function newwin(URL){var mywin=open('','','scrollbars=0, menubar=0');mywin.document.write("<html><head><title>Click image to close.</title><style>body {background-color:#000;color:#fff;width:800px;margin:auto}table{width:100%;height:100%}td{text-align:center;vertical-align:middle}img{border:2px solid #ffffff}</style><\/head><body bgcolor='#000' onClick='self.close();'><center><h3><\/h3><table><tbody><tr><td><img src='"+URL+"'><\/td><\/tr><\/tbody><\/table><p><\/p><\/center><\/body><\/html>");mywin.document.close();}
</script>
To use them, just open a terminal in the folder with your pictures and enter:
bash $HOME/.create 160 6x5 our_trip grandma_visit
to make an album in which the individual thumbnails are 160px wide, in a 6 by 5 array, the pictures are named "our_trip101.jpg, etc. and the HTML pages are named "grandma_visit.html". If you have more than 30 pictures in this example more HTML pages will be made and they will automatically be named in consecutive order.
Right now this only works with files of the .jpg extension, not .JPG or .jpeg. The pictures are copied to a new folder named New and all the operations are performed in that folder, so your originals are not touched. You can rename the folder and do anything you like with it, such as upload it to the web. It uses HTML maps so it only has only thumbnail .gif per HTML page.
It takes about a day to write scripts like this, mostly depending on the debugging involved. If you have any good ideas for scripts you would like to see, let me know and I'll try to write it for you.