X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=phpfspot.git;a=blobdiff_plain;f=phpfspot_img.php;h=bc8d3d11badc4b22067eba044e8c15deaf50c8f4;hp=f298b009bfd3366b6535c2efcd57a001f1774ab4;hb=4765a4ac3d215eb305d46ea655195442b722fd09;hpb=7688cbcdf666c2c538bc35cbc4efbe929a8fa9da diff --git a/phpfspot_img.php b/phpfspot_img.php index f298b00..bc8d3d1 100644 --- a/phpfspot_img.php +++ b/phpfspot_img.php @@ -29,7 +29,6 @@ require_once "phpfspot.class.php"; * * handles phpfspot's photos. It will output either the photo binaries * or can also show error messages as a on-the-fly generated picture. - * * @package phpfspot */ class PHPFSPOT_IMG { @@ -101,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");