diff --git a/src/components/Manager.php b/src/components/Manager.php index 3da8691..e6b699f 100644 --- a/src/components/Manager.php +++ b/src/components/Manager.php @@ -47,10 +47,9 @@ private function getListing() private function getFileInfo($filename) { - try { - $size = Image::frame($filename, 0)->getSize(); - $size = sprintf('%sx%s', $size->getHeight(), $size->getWidth()); - } catch (Exception $e) { + if ($size = @getimagesize($filename)) { + $size = sprintf('%sx%s', $size[1], $size[0]); + } else { $size = null; }