modified logic in ocr
This commit is contained in:
@@ -344,7 +344,7 @@ class OcrValidationResource extends Resource
|
|||||||
$pdf->Rect($qrSlots[$i]['x']-1, $qrSlots[$i]['y']-1, $qrSlots[$i]['size']+2, $qrSlots[$i]['size']+2, 'F');
|
$pdf->Rect($qrSlots[$i]['x']-1, $qrSlots[$i]['y']-1, $qrSlots[$i]['size']+2, $qrSlots[$i]['size']+2, 'F');
|
||||||
|
|
||||||
// Generate new QR code
|
// Generate new QR code
|
||||||
$qrPath = storage_path("app/private/uploads/QR/qr_$serial.png");
|
$qrPath = storage_path("app/private/uploads/QR/qr_$serial.svg");
|
||||||
$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('svg')->size(100)->generate($serial, $qrPath);
|
QrCode::format('svg')->size(100)->generate($serial, $qrPath);
|
||||||
|
|||||||
Reference in New Issue
Block a user