diff options
Diffstat (limited to 'phpfspot_img.php')
-rw-r--r-- | phpfspot_img.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/phpfspot_img.php b/phpfspot_img.php index f3eb308..bc8d3d1 100644 --- a/phpfspot_img.php +++ b/phpfspot_img.php @@ -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"); |