X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=phpfspot.git;a=blobdiff_plain;f=phpfspot_img.php;h=bc8d3d11badc4b22067eba044e8c15deaf50c8f4;hp=f3eb3088f4b363030ccb11b88b7c4a080768dd58;hb=6492d6cd73e61b60c1f2df2e54918a3598ac5805;hpb=5aacb6d86fa943c66ee94eb603887bb40e034ec5 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");