Change QR code output to SVG to avoid GD dependency; fix permissions for uploads
This commit is contained in:
@@ -171,13 +171,11 @@ class ItemController
|
||||
mkdir($qrDir, 0755, true);
|
||||
}
|
||||
$options = new QROptions([
|
||||
'outputType' => QRCode::OUTPUT_IMAGE_PNG,
|
||||
'outputType' => QRCode::OUTPUT_MARKUP_SVG,
|
||||
'eccLevel' => QRCode::ECC_L,
|
||||
'imageTransparent' => false,
|
||||
'imageBase64' => false,
|
||||
]);
|
||||
$qrCode = new QRCode($options);
|
||||
$qrCode->render($idCode, $qrDir . $idCode . '.png');
|
||||
$qrCode->render($idCode, $qrDir . $idCode . '.svg');
|
||||
}
|
||||
|
||||
public static function printQR($id) {
|
||||
|
||||
Reference in New Issue
Block a user