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

Limit for data? #82

Open
rucksman opened this issue Jan 24, 2025 · 2 comments
Open

Limit for data? #82

rucksman opened this issue Jan 24, 2025 · 2 comments

Comments

@rucksman
Copy link

I tried to generate a QR Code with around 144 strings, each consisting of 20 alphanumeric characters. Unfortunately this fails (downloaded PNG file is completely white). Is there a limit somewhere in the code? The German Wikipedia states that up to 4096 alphanumeric characters are possible in a QR Code, so my 2880 characters should work.

@lyqht
Copy link
Owner

lyqht commented Jan 26, 2025

Have you tried changing the error correction level for your use case? The longer your data, the lower you have to set the error correction level. Here's a good explanation I found about how the qr code size relates to the data length kozakdenys/qr-code-styling#104 (comment)

@rucksman
Copy link
Author

Yes, error correction level is already at L. Which version of the QR code is used in mini-qr (https://www.qrcode.com/en/about/version.html)? Seems like a version lower than 33 is used, because from version 32 on downwards only 2840 or less alphanumeric characters are allowed. Ideally version 40 shouldbe used for maximum characters.

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

No branches or pull requests

2 participants