From 4bc55787ee297d9ad255924cd299e5176521a361 Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Thu, 13 Aug 2009 16:27:31 -0400 Subject: [PATCH] Explode the string if it comes from the Keywords field - otherwise keep it as is. --- ansel/lib/Image.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ansel/lib/Image.php b/ansel/lib/Image.php index e61db1b8e..3b00ad45a 100644 --- a/ansel/lib/Image.php +++ b/ansel/lib/Image.php @@ -538,6 +538,8 @@ class Ansel_Image if (substr($field, 0, 8) == 'DateTime') { $d = new Horde_Date(strtotime($this->_exif[$field])); $tags[] = $d->format("Y-m-d"); + } elseif ($field == 'Keywords') { + $tags = array_merge($tags, explode(',', $this->_exif[$field])); } else { $tags[] = $this->_exif[$field]; } -- 2.11.0