mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Set output type to imagick
This commit is contained in:
committed by
GitHub
parent
47c29e6c58
commit
c102bee5ec
@@ -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']);
|
||||
|
||||
Reference in New Issue
Block a user