Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gevorgmansuryan committed Jul 20, 2018
1 parent 1f46057 commit ac8770f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/components/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit ac8770f

Please sign in to comment.