Gallery data is stored in xml files – each folder contains a directory.xml.
<root>
<directory title="Gallery 1" description="Holiday pictures ..." />
<settings>
<thumbnail keepratio="OK" width="120" height="120" quality="95" />
<bigimage keepratio="OK" limit="OK" width="800" height="800" quality="85" />
<sharpening amount="100" radius="0.5" threshold="3" />
</settings>
<subdirs>
<item name="day1" />
<item name="day2" />
</subdirs>
<images>
<item name="IMG_0190.JPG" thumb="IMG_0190_.JPG" title="IMG_0190.JPG" width="600" height="800" />
<item name="IMG_0191.JPG" thumb="IMG_0191_.JPG" title="IMG_0191.JPG" width="600" height="800" />
<item name="IMG_0195.JPG" thumb="IMG_0195_.JPG" title="IMG_0195.JPG" width="400" height="533" />
<item name="IMG_0196.JPG" thumb="IMG_0196_.JPG" title="IMG_0196.JPG" width="400" height="300" />
<item name="IMG_0197.JPG" thumb="IMG_0197_.JPG" title="IMG_0197.JPG" width="600" height="800" />
</images>
</root>
- directory – this node stores gallery title and description
- settings – this node stores image and thumbnail resize settings for the gallery
- subdirs – stores the order of the subgalleries
- images – an array of images, each node storing image filename, title, description and size
Normally either subdirs or images is empty because a gallery contains either subgalleries or images.
It is possible to have a customized xml structure:
- use tags instead of attributes
- add custom fields
- include more than one gallery data into an xml file
For more info about custom xml contact me.