changed to svg for qr code

This commit is contained in:
dhanabalan
2025-10-28 14:06:14 +05:30
parent 82ba5b43c4
commit 52c2a72908

View File

@@ -347,7 +347,7 @@ class OcrValidationResource extends Resource
$qrPath = storage_path("app/private/uploads/QR/qr_$serial.png"); $qrPath = storage_path("app/private/uploads/QR/qr_$serial.png");
$qrDir = storage_path('app/private/uploads/QR'); $qrDir = storage_path('app/private/uploads/QR');
if (!file_exists($qrDir)) mkdir($qrDir, 0777, true); if (!file_exists($qrDir)) mkdir($qrDir, 0777, true);
QrCode::format('png')->size(100)->generate($serial, $qrPath); QrCode::format('svg')->size(100)->generate($serial, $qrPath);
// Place QR code // Place QR code
$pdf->Image($qrPath, $qrSlots[$i]['x'], $qrSlots[$i]['y'], $qrSlots[$i]['size'], $qrSlots[$i]['size']); $pdf->Image($qrPath, $qrSlots[$i]['x'], $qrSlots[$i]['y'], $qrSlots[$i]['size'], $qrSlots[$i]['size']);