1
0
Fork 0
mirror of synced 2024-06-29 11:40:45 +12:00

Fixed margin value, add png compression

This commit is contained in:
Eldad Fux 2021-01-10 02:07:58 +02:00
parent 76d8c656db
commit bdd04ce292

View file

@ -383,8 +383,10 @@ App::get('/v1/avatars/qr')
$download = ($download === '1' || $download === 'true' || $download === 1 || $download === true);
$options = new QROptions([
'quietzone' => $size,
'outputType' => QRCode::OUTPUT_IMAGICK
'addQuietzone' => true,
'quietzoneSize' => $margin,
'outputType' => QRCode::OUTPUT_IMAGICK,
'pngCompression' => 9,
]);
$qrcode = new QRCode($options);