diff --git a/collections.sqlite b/collections.sqlite index 637a4ec..7aef10f 100644 Binary files a/collections.sqlite and b/collections.sqlite differ diff --git a/src/Controllers/ItemController.php b/src/Controllers/ItemController.php index 1c812c3..87b7d75 100755 --- a/src/Controllers/ItemController.php +++ b/src/Controllers/ItemController.php @@ -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) { diff --git a/templates/print_qr.twig b/templates/print_qr.twig index 9522819..53ad9e8 100644 --- a/templates/print_qr.twig +++ b/templates/print_qr.twig @@ -17,7 +17,7 @@

{{ item.name }}

ID Code: {{ item.id_code }}

- QR Code + QR Code

Description: {{ item.description }}

Category: {{ item.category_path ?: 'Uncategorized' }}