1
0
Fork 0

Don't calculate the blurhash on images without a size

This commit is contained in:
Michael 2022-12-20 22:32:24 +00:00
parent 8e25660616
commit e6f0e3c23e

View file

@ -743,6 +743,10 @@ class Image
$height = $image->getHeight();
}
if (empty($width) || empty($height)) {
return '';
}
$pixels = [];
for ($y = 0; $y < $height; ++$y) {
$row = [];