Silent imagecreatefromstring() errors

Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
This commit is contained in:
Git'Fellow 2023-06-30 21:58:44 +02:00 committed by backportbot-nextcloud[bot]
parent eb537ad664
commit ecbeacbdf5

View file

@ -758,7 +758,7 @@ class OC_Image implements \OCP\IImage {
if (!$this->checkImageDataSize($data)) {
return false;
}
$this->resource = imagecreatefromstring($data);
$this->resource = @imagecreatefromstring($data);
$iType = IMAGETYPE_PNG;
$this->logger->debug('OC_Image->loadFromFile, Default', ['app' => 'core']);
break;