From b1fcece0334591f052e98b2102fd938e197d321b Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Mon, 8 Mar 2010 23:55:33 -0500 Subject: [PATCH] remove FileSource EXIF field Even according to the standard, this is always set to the same value, so no need to track this. --- framework/Image/lib/Horde/Image/Exif.php | 7 ------- 1 file changed, 7 deletions(-) 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"); -- 2.11.0