From e173051918510189344372c75f16a5ded0d7a5ea Mon Sep 17 00:00:00 2001 From: Andreas Unterkircher Date: Sat, 12 Apr 2008 21:12:42 +0200 Subject: issue110, handle Nikons NEF RAW photos Signed-off-by: Andreas Unterkircher --- phpfspot_img.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'phpfspot_img.php') 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"); -- cgit v1.2.3-18-g5258