remove FileSource EXIF field
authorMichael J. Rubinsky <mrubinsk@horde.org>
Tue, 9 Mar 2010 04:55:33 +0000 (23:55 -0500)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Tue, 9 Mar 2010 06:48:53 +0000 (01:48 -0500)
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

index 6d75f2f..c02c29e 100644 (file)
@@ -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");