parent
79266d75b3
commit
2d6b025582
|
@ -393,6 +393,8 @@ class ImageController extends GenericApiController
|
|||
$mimetype = $image->getImageMimeType();
|
||||
} catch (\ImagickException $e) {
|
||||
throw Exceptions::Forbidden('Imagick failed to convert image: '.$e->getMessage());
|
||||
} finally {
|
||||
$image->clear();
|
||||
}
|
||||
|
||||
return [$blob, $mimetype];
|
||||
|
|
Loading…
Reference in New Issue