summaryrefslogtreecommitdiff
path: root/templates/default.xml
diff options
context:
space:
mode:
Diffstat (limited to 'templates/default.xml')
-rw-r--r--templates/default.xml9
1 files changed, 8 insertions, 1 deletions
diff --git a/templates/default.xml b/templates/default.xml
index 318531c..9197519 100644
--- a/templates/default.xml
+++ b/templates/default.xml
@@ -45,7 +45,10 @@
<!-- Thumbnail section is mandatory. -->
<!-- Corresponds with optional <item thumbnail> tag in album source file.
Note that thumbnail images are always resized even for custom supplied files. -->
- <size name="thumbnail">
+ <!-- The "type" attribute has to be set to "thumbnail" to be treated as such.
+ An optional "style" attribute set to "squared" indicates the need of squared
+ thumbnails as opposed to original aspect ratio. -->
+ <size name="thumbnail" type="thumbnail" style="normal">
<landscape w="180" h="120" />
<portrait w="120" h="180" />
<square size="180" />
@@ -74,6 +77,8 @@
<index>
<template>template_index.html</template>
<target_filename>index.html</target_filename>
+ <!-- specify thumbnail image size to be used here. -->
+ <thumbnail_size>thumbnail</thumbnail_size>
</index>
<!-- This is mandatory. -->
@@ -82,6 +87,8 @@
<target_filename>index.html</target_filename>
<!-- which picture size to use for XXX tags (TODO) -->
<picture_size>preview</picture_size>
+ <!-- thumbnail_size is optional when thumbnails are not used on album pages -->
+ <thumbnail_size>thumbnail</thumbnail_size>
<!-- In case of a protected album, show special thumbnail (must be included
in supplemental_files). Comment out to use real thumbnail -->
<protected_thumbnail>emblems-readonly_120.png</protected_thumbnail>