summaryrefslogtreecommitdiffstats
path: root/phpfspot_img.php
diff options
context:
space:
mode:
authorAndreas Unterkircher <unki@netshadow.at>2008-04-12 21:12:42 +0200
committerAndreas Unterkircher <unki@netshadow.at>2008-04-12 21:12:42 +0200
commite173051918510189344372c75f16a5ded0d7a5ea (patch)
tree169cea3d278f7ec4e7c3b02b94466cf38ff66664 /phpfspot_img.php
parent5aacb6d86fa943c66ee94eb603887bb40e034ec5 (diff)
issue110, handle Nikons NEF RAW photos
Signed-off-by: Andreas Unterkircher <unki@netshadow.at>
Diffstat (limited to 'phpfspot_img.php')
-rw-r--r--phpfspot_img.php6
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");