Change QR code output to SVG to avoid GD dependency; fix permissions for uploads

This commit is contained in:
2025-11-11 18:02:19 +01:00
parent ef5bf3ecca
commit 9fb5066f9b
3 changed files with 3 additions and 5 deletions

View File

@@ -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) {