changed to svg for qr code
This commit is contained in:
@@ -347,7 +347,7 @@ class OcrValidationResource extends Resource
|
||||
$qrPath = storage_path("app/private/uploads/QR/qr_$serial.png");
|
||||
$qrDir = storage_path('app/private/uploads/QR');
|
||||
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
|
||||
$pdf->Image($qrPath, $qrSlots[$i]['x'], $qrSlots[$i]['y'], $qrSlots[$i]['size'], $qrSlots[$i]['size']);
|
||||
|
||||
Reference in New Issue
Block a user