Hi, this is quick and dirty but, if you are using Linux, Unix, Mac, or have the cygwin package on windows, the following bash script would do it
Code:
#!/bin/bash
if [ ! "$2" ] ;
then
echo "usage: genGallery title description"
exit 2;
fi
title=$1
desc=$2
curDir=$(pwd)
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
echo "<gallery>"
echo "<album title=\"$title\" description=\"$2\" lgPath=\"$curDir\">"
ls *.jpg | sed "s/^\(.*\)$/<img scr=\"\\1\" \/>/"
echo "</album>"
echo "</gallery>"
then you could execute it with:
# ./genGallery "Nature" "Images of trees, lakes and flowers"
|