Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect QR code generated #43

Closed
dayaram3388 opened this issue Nov 6, 2019 · 2 comments
Closed

Incorrect QR code generated #43

dayaram3388 opened this issue Nov 6, 2019 · 2 comments

Comments

@dayaram3388
Copy link

To start with, thank you for providing open source libraries for individuals like us to quickly deliver the client tasks. I have a question pertaining to the QR codes generated using your library. Incidentally, few of the random QR codes are not readable.

I checked the 4 elements to be present: - Position marking- Alignment marking- Timing Marking- Quiet zone

It seems all are present, but still the reference attached QR code is not readable? Could you advise the problem in here! Incidentally, my client has printed more than 30K+ QR codes physically, and to control the situation, am trying to first understand the problem - and then find possible solution.

For your reference, the data stored on this reference QR code image is CARD-7818-1407-1311-191015-184607

Any help would be appreciated.
CARD-7818-1407-1311-191015-184607

@tonydspaniard
Copy link
Member

sorry for the delay, i think the problem is the logo within.

@2amjsouza
Copy link
Collaborator

Hi, the logo should be up to 16% the qrcode size, you have a little bit more in this sample

image

Here's a sample using the data you provided:

$text = (new QrCode('CARD-7818-1407-1311-191015-184607'))
	->setSize(91)
	->setLogo(public_path('assets/logo.png'))
	->setLogoWidth(14);
	
Storage::put('qrcode/test.png', $text->writeString());

test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants