From: Michael J. Rubinsky Date: Tue, 9 Mar 2010 06:45:55 +0000 (-0500) Subject: Pass the Exif driver here so we get an accurate list of supported categories X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=705b6ad8e19a2d2c2dcd8f3fe62abb7cf44df71e;p=horde.git Pass the Exif driver here so we get an accurate list of supported categories --- diff --git a/ansel/lib/Image.php b/ansel/lib/Image.php index 39b12d0a1..39e201a75 100644 --- a/ansel/lib/Image.php +++ b/ansel/lib/Image.php @@ -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) {