Don't calculate the blurhash on images without a size
This commit is contained in:
parent
8e25660616
commit
e6f0e3c23e
1 changed files with 6 additions and 2 deletions
|
@ -743,6 +743,10 @@ class Image
|
|||
$height = $image->getHeight();
|
||||
}
|
||||
|
||||
if (empty($width) || empty($height)) {
|
||||
return '';
|
||||
}
|
||||
|
||||
$pixels = [];
|
||||
for ($y = 0; $y < $height; ++$y) {
|
||||
$row = [];
|
||||
|
|
Loading…
Reference in a new issue