From de251290cb19e2eef82dce4636d762d67385be1a Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Wed, 5 Aug 2009 16:23:14 -0400 Subject: [PATCH] Provide full list of available metadata fields to select from for auto-tagging from. Still need to implement a mapping preference for things like automatically filling in image title, watermarking (from Artist or Usage fields) etc... --- ansel/config/prefs.php.dist | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ansel/config/prefs.php.dist b/ansel/config/prefs.php.dist index 4901d6077..307063b66 100644 --- a/ansel/config/prefs.php.dist +++ b/ansel/config/prefs.php.dist @@ -257,11 +257,12 @@ $_prefs['group_permissions'] = array( ); $_prefs['exif_tags'] = array( - 'value' => 'a:0{}', + 'value' => 'a:0:{}', 'locked' => false, 'shared' => false, 'type' => 'multienum', - 'desc' => _("Which EXIF fields should we automatically add as photo tags during upload?"), - 'enum' => array('DateTimeOriginal' => _("Date Photo Taken"), - 'ExposureTime' => _("Exposure Time")) + 'desc' => _("Which EXIF fields should we automatically add as image tags during upload?"), + 'enum' => Horde_Image_Exif::getFields(array($GLOBALS['conf']['exif']['driver'], + !empty($GLOBALS['conf']['exif']['params']) ? $GLOBALS['conf']['exif']['params'] : array()), + true) ); -- 2.11.0