parent
8c881f0488
commit
c65ad77be3
|
@ -279,11 +279,12 @@ class ImageController extends GenericApiController
|
|||
*
|
||||
* @return array [blob, mimetype]
|
||||
*/
|
||||
private function getImageJPEG($blob, $mimetype): array {
|
||||
private function getImageJPEG($blob, $mimetype): array
|
||||
{
|
||||
// TODO: Use imaginary if available
|
||||
|
||||
// Check if Imagick is available
|
||||
if (!\class_exists('Imagick')) {
|
||||
if (!class_exists('Imagick')) {
|
||||
throw Exceptions::Forbidden('Imagick extension is not available');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue