Merge pull request #51433 from umgfoin/PR-umgfoin-fix-image-metadata-generation

fix(GenerateBlurhashMetadata): Suppress imagescale errors
This commit is contained in:
John Molakvoæ 2025-03-26 10:02:11 +01:00 committed by GitHub
commit d1713603c5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -98,7 +98,7 @@ class GenerateBlurhashMetadata implements IEventListener {
$newX = intval($currX * $newY / $currY);
}
$newImage = imagescale($image, $newX, $newY);
$newImage = @imagescale($image, $newX, $newY);
return ($newImage !== false) ? $newImage : $image;
}