diff --git a/lib/FastImageSize.php b/lib/FastImageSize.php index 64ab224..d60f936 100644 --- a/lib/FastImageSize.php +++ b/lib/FastImageSize.php @@ -96,6 +96,12 @@ public function getImageSize($file, $type = '') $extension = (empty($type) && isset($match[1])) ? $match[1] : preg_replace('/.+\/([a-z0-9-.]+)$/i', '$1', $type); $this->getImageSizeByExtension($file, $extension); + + if(!(count($this->size) > 0)) + { + $this->data = ''; + $this->getImagesizeUnknownType($file); + } } return sizeof($this->size) > 1 ? $this->size : false;