Table of Content

simpleveiwer is very cool flash version gallery, only need to spend time to add new photo in gallery.xml, this script is help to generate xml file.

simpleveiwer gallery.xml generate script

#!/bin/sh
cd images
ls >_imagefile1
cat _imagefile1|grep -i .JPG>_imagefile2

echo ''
echo ''
for i in cat _imagefile2
do
    echo ""
    echo "  $i"
    echo "  $i"
    echo ""
done
echo ""
rm _imagefile*
cd ..

postcardveiwer imagedata.xml generate script

#!/bin/sh
cd images
ls >_imagefile1
cat _imagefile1|grep -i .JPG>_imagefile2

echo '<?xml version="1.0" encoding="UTF-8" ?><GALLERY_DATA cellDimension="1800" columns="15" zoomOutPerc="5" zoomInPerc="50" frameWidth="20">'
for i in <code>cat _imagefile2</code>
do
	echo &quot;&lt;IMAGE&gt;&lt;NAME&gt;$i&lt;/NAME&gt;&lt;/IMAGE&gt;&quot;
done
echo &quot;&lt;/GALLERY_DATA&gt;&quot;
rm _imagefile*
cd ..