diff --git a/src/Drivers/Gd/Decoders/AbstractDecoder.php b/src/Drivers/Gd/Decoders/AbstractDecoder.php index 58a3f9fc..c32ed313 100644 --- a/src/Drivers/Gd/Decoders/AbstractDecoder.php +++ b/src/Drivers/Gd/Decoders/AbstractDecoder.php @@ -18,7 +18,7 @@ abstract class AbstractDecoder extends GenericAbstractDecoder */ protected function getMediaTypeByFilePath(string $filepath): string { - $info = getimagesize($filepath); + $info = @getimagesize($filepath); if (!is_array($info)) { throw new DecoderException('Unable to decode input'); @@ -40,7 +40,7 @@ abstract class AbstractDecoder extends GenericAbstractDecoder */ protected function getMediaTypeByBinary(string $data): string { - $info = getimagesizefromstring($data); + $info = @getimagesizefromstring($data); if (!is_array($info)) { throw new DecoderException('Unable to decode input');