From 9fb5066f9bafd243bfb42605b365fad92e309d14 Mon Sep 17 00:00:00 2001 From: Edwin Noorlander Date: Tue, 11 Nov 2025 18:02:19 +0100 Subject: [PATCH] Change QR code output to SVG to avoid GD dependency; fix permissions for uploads --- collections.sqlite | Bin 20480 -> 20480 bytes src/Controllers/ItemController.php | 6 ++---- templates/print_qr.twig | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/collections.sqlite b/collections.sqlite index 637a4ec90b722df6e4a61baa1964a0cd41f0461b..7aef10f6a0a45e8c669c06bfe0cf597da8d6a064 100644 GIT binary patch delta 91 zcmZozz}T>Wae_3X)I=F)MyZVn{q~H^lRwyta4_+&WZ=KSzjCvnz+8TPU1kmjSyfJ1 i2Kn^ttPCImQE+Tz=wxJO=wg(WkpvP>&zgM0UjqQZEgTO3 delta 41 xcmZozz}T>Wae_3X 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' }}