underbar.png
[phpfspot.git] / phpfspot_img.php
index f3eb3088f4b363030ccb11b88b7c4a080768dd58..bc8d3d11badc4b22067eba044e8c15deaf50c8f4 100644 (file)
@@ -100,10 +100,8 @@ class PHPFSPOT_IMG {
       if(!is_readable($fullpath)) {
          $this->parent->showTextImage("File ". basename($fullpath) ." is not readable. Check the permissions");
          return;
-      }
-
-      $tmp = getimagesize($fullpath);
-      $mime = $tmp['mime'];
+      } 
+      $mime = $this->parent->get_mime_info($fullpath);
 
       if(!$this->parent->checkifImageSupported($mime)) {
          $this->parent->showTextImage("Unsupported Image Type");