catch exception if readImageBlob() receives bogus data
This commit is contained in:
parent
a3ba7f0788
commit
443d7684db
@ -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 {
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user