Merge pull request #12494 from annando/blurhash-fix
Don't calculate the blurhash on images without a size
This commit is contained in:
commit
31e8574006
|
@ -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 New Issue
Block a user