catch exception if readImageBlob() receives bogus data

This commit is contained in:
Mario Vavti 2018-12-03 10:45:43 +01:00
parent a3ba7f0788
commit 443d7684db

View File

@ -31,8 +31,12 @@ class photo_imagick extends photo_driver {
if(! $data)
return;
$this->image->readImageBlob($data);
try {
$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
@ -205,4 +209,4 @@ class photo_imagick extends photo_driver {
}
}