catch exception if readImageBlob() receives bogus data

(cherry picked from commit 443d7684db)
This commit is contained in:
Mario Vavti 2018-12-03 09:45:43 +00:00 committed by Mario
parent 1f6da1c653
commit 2173ef5fb6

View File

@ -31,8 +31,12 @@ class photo_imagick extends photo_driver {
if(! $data) if(! $data)
return; return;
try {
$this->image->readImageBlob($data); $this->image->readImageBlob($data);
}
catch (Exception $e) {
logger('imagick readImageBlob() exception:' . print_r($e,true));
}
/** /**
* Setup the image to the format it will be saved to * Setup the image to the format it will be saved to