From c102bee5ec9b86ebab8778ee78cde8e98336142d Mon Sep 17 00:00:00 2001 From: Pedro Cisneros Santana <37348419+PedroCisnerosSantana@users.noreply.github.com> Date: Mon, 26 Oct 2020 22:08:47 +0100 Subject: [PATCH] Set output type to imagick --- app/controllers/api/avatars.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controllers/api/avatars.php b/app/controllers/api/avatars.php index 6c225d7112..49889f48d0 100644 --- a/app/controllers/api/avatars.php +++ b/app/controllers/api/avatars.php @@ -364,10 +364,10 @@ App::get('/v1/avatars/qr') $download = ($download === '1' || $download === 'true' || $download === 1 || $download === true); $qropts = new QROptions([ - 'quietzone' => $size + 'quietzone' => $size, + 'outputType' => QRCode::OUTPUT_IMAGICK ]); $qrcode = new QRCode($qropts); - $qrcode->render($text); if ($download) { $response->addHeader('Content-Disposition', 'attachment; filename="qr.png"'); @@ -456,4 +456,4 @@ App::get('/v1/avatars/initials') ->setContentType('image/png') ->send($image->getImageBlob()) ; - }, ['response', 'user']); \ No newline at end of file + }, ['response', 'user']);