<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.6.1">
</HEAD>
<BODY>
Hi, <BR>
I've  been using igal to create html thumbnail/image catalogs for my web site and while very good it lacks a couple of features.<BR>
<BR>
It's not recursive and even with the script below, doesn't handle directories which are a placeholder for other directories. i.e. a directory 2005 is just a placeholder for all picture directories I wish to create of events in 2005. hmmm this may not make sense here's an example:<BR>
./2004/Annalisa:<BR>
./2004/Braidwood:<BR>
./2004/CoffsHarbour:<BR>
./2004/EasterHunt:<BR>
In the above there are no files in directory 2004 only the other directory entries. Each of the other directories has the  image files relevant to that event and needs to be catalogued.<BR>
<BR>
<BR>
Here's the script I've been using to run igal. <BR>
#!/bin/sh<BR>
DIR=/home/www/html/pics<BR>
cd $DIR<BR>
<BR>
FILE=DIRLIST<BR>
ls -Rb1 >$FILE<BR>
<BR>
while read LINE<BR>
do <BR>
         if [ -d "$LINE" ] ; then<BR>
                cd "$LINE"<BR>
                echo Creating pictures in directory: "$LINE"<BR>
#                pwd<BR>
                igal -a -f -wx 960 --bigy 450 -w 7 --www --title "$LINE"<BR>
                cd ..<BR>
        fi      <BR>
done < "$FILE"<BR>
<BR>
This works on the first level of directory but doesn't truly recurse. The file DIRLIST has the information but it seems the line, "if [ -d "$LINE" ] ; then" is stripping the directory entry back to the last part of the path. i.e. DIRLIST shows ./2004/Braidwood: but $LINE only reports Braidwood. <BR>
<BR>
So my script skills are not up to the task, and I'm not sure igal is either (for what I want to do).<BR>
<BR>
Any suggestions on <BR>
    a) how to make igal  truly recursive <BR>
    b) how to create a index.html file that can be used to navigate the directory structure<BR>
    c) or info on any other programs that you know of that might do this job for me?<BR>
    <BR>
<BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
Kind Regards Russell<BR>
==================<BR>
www.windsorcycles.com.au<BR>
bikes.no-ip.info<BR>
Linux user #369094<BR>
==================
</TD>
</TR>
</TABLE>
</BODY>
</HTML>