From: Michael J. Rubinsky Date: Tue, 9 Mar 2010 04:55:33 +0000 (-0500) Subject: remove FileSource EXIF field X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=b1fcece0334591f052e98b2102fd938e197d321b;p=horde.git remove FileSource EXIF field Even according to the standard, this is always set to the same value, so no need to track this. --- diff --git a/framework/Image/lib/Horde/Image/Exif.php b/framework/Image/lib/Horde/Image/Exif.php index 6d75f2f05..c02c29ec8 100644 --- a/framework/Image/lib/Horde/Image/Exif.php +++ b/framework/Image/lib/Horde/Image/Exif.php @@ -118,7 +118,6 @@ class Horde_Image_Exif 'Copyright' => array('description' => _("Copyright"), 'type' => 'text'), 'Artist' => array('description' => _("Artist"), 'type' => 'text'), 'LightSource' => array('description' => _("Light source"), 'type' => 'number'), - 'FileSource' => array('description' => _("File source"), 'type' => 'number'), 'ImageStabalization' => array('description' => _("Image Stabilization"), 'type' => 'text'), ), ); @@ -449,12 +448,6 @@ class Horde_Image_Exif $e = floor(log($data, 1024)); return round($data/pow(1024, $e), 2) . ' ' . $s[$e]; - case 'FileSource': - $data = bin2hex($data); - $data = str_replace('00', '', $data); - $data = str_replace('03', _("Digital Still Camera"), $data); - return $data; - case 'SensingMethod': switch ($data) { case 1: return _("Not defined");