Explode the string if it comes from the Keywords field - otherwise
authorMichael J. Rubinsky <mrubinsk@horde.org>
Thu, 13 Aug 2009 20:27:31 +0000 (16:27 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Thu, 13 Aug 2009 20:27:31 +0000 (16:27 -0400)
keep it as is.

ansel/lib/Image.php

index e61db1b..3b00ad4 100644 (file)
@@ -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];
                 }