Pass the Exif driver here so we get an accurate list of supported categories
authorMichael J. Rubinsky <mrubinsk@horde.org>
Tue, 9 Mar 2010 06:45:55 +0000 (01:45 -0500)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Tue, 9 Mar 2010 06:48:54 +0000 (01:48 -0500)
ansel/lib/Image.php

index 39b12d0..39e201a 100644 (file)
@@ -1230,7 +1230,8 @@ class Ansel_Image Implements Iterator
     public function getAttributes($format = false)
     {
         $attributes = $GLOBALS['ansel_storage']->getImageAttributes($this->id);
-        $fields = Horde_Image_Exif::getFields();
+        $exif = Horde_Image_Exif::factory($GLOBALS['conf']['exif']['driver'], !empty($GLOBALS['conf']['exif']['params']) ? $GLOBALS['conf']['exif']['params'] : array());
+        $fields = Horde_Image_Exif::getFields($exif);
         $output = array();
 
         foreach ($fields as $field => $data) {