Set output type to imagick
This commit is contained in:
parent
47c29e6c58
commit
c102bee5ec
1 changed files with 3 additions and 3 deletions
|
@ -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']);
|
||||
|
|
Loading…
Reference in a new issue