1
0
Fork 0
mirror of synced 2024-09-29 08:51:28 +13:00

Set output type to imagick

This commit is contained in:
Pedro Cisneros Santana 2020-10-26 22:08:47 +01:00 committed by GitHub
parent 47c29e6c58
commit c102bee5ec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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']);
}, ['response', 'user']);