summaryrefslogtreecommitdiff
path: root/sample
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@users.sourceforge.net>2008-12-30 16:21:41 +0100
committerTomas Bzatek <tbzatek@users.sourceforge.net>2008-12-30 16:21:41 +0100
commite420e9f3fbd5e758e4a1489766f74030a1b77b88 (patch)
tree0192b01d0eebaca8de1db9ea958f829adf4784c8 /sample
parent6a7b5cbbef56fda6c1f3901949b870ee1fd20758 (diff)
downloadcataract-e420e9f3fbd5e758e4a1489766f74030a1b77b88.tar.xz
Optional fallback to IPTC/EXIF captions and comments
Diffstat (limited to 'sample')
-rw-r--r--sample/src/CIAF_1/img_1453.jpgbin0 -> 261710 bytes
-rw-r--r--sample/src/CIAF_1/index.xml4
-rw-r--r--sample/src/setup.xml7
3 files changed, 11 insertions, 0 deletions
diff --git a/sample/src/CIAF_1/img_1453.jpg b/sample/src/CIAF_1/img_1453.jpg
new file mode 100644
index 0000000..06b549d
--- /dev/null
+++ b/sample/src/CIAF_1/img_1453.jpg
Binary files differ
diff --git a/sample/src/CIAF_1/index.xml b/sample/src/CIAF_1/index.xml
index 3440c74..7e89297 100644
--- a/sample/src/CIAF_1/index.xml
+++ b/sample/src/CIAF_1/index.xml
@@ -83,5 +83,9 @@
<title_description>This item uses supplied thumbnail</title_description>
</item>
+ <item src="img_1453.jpg">
+ <!-- Captions should be retrieved from IPTC/EXIF -->
+ </item>
+
</items>
</gallery>
diff --git a/sample/src/setup.xml b/sample/src/setup.xml
index af2bd9e..f4ed85a 100644
--- a/sample/src/setup.xml
+++ b/sample/src/setup.xml
@@ -28,6 +28,13 @@
<border style="border_single" />
<!-- preload next image (allowed values: "yes", "no") default = yes -->
<preload value="yes" />
+
+ <!-- get image title and description from IPTC and EXIF as a fallback -->
+ <!-- if not overriden by <title> and <title_description> tags -->
+ <!-- (allowed values: "yes", "no") default = no -->
+ <!-- titles are retrieved from the following fields (sorted by priority): -->
+ <!-- Iptc.Application2.Caption, Jpeg.Comment, Exif.Image.ImageDescription, Exif.Photo.UserComment -->
+ <use_iptc_exif value="yes" />
</images>
<!-- META tags in html head section -->