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

Alphanumeric qrcode generation issue #1

Open
jgreene opened this issue Nov 5, 2011 · 3 comments
Open

Alphanumeric qrcode generation issue #1

jgreene opened this issue Nov 5, 2011 · 3 comments
Assignees

Comments

@jgreene
Copy link

jgreene commented Nov 5, 2011

Alphanumeric code generation fails on any input above 20 characters. It will produce data for a qrcode, but the qrcode is invalid and cannot be read by scanners. This can be reproduced by increasing the length of the data being used in the Example.hs file to 21 characters.

@ghost ghost assigned kizzx2 Nov 15, 2011
@kizzx2 kizzx2 closed this as completed Nov 15, 2011
@kizzx2 kizzx2 reopened this Nov 15, 2011
@stoltene2
Copy link

This breaks because the standard has length limitations for each version and encoding. Try increasing the version.

@mihaigiurgeanu
Copy link

mihaigiurgeanu commented Sep 2, 2017

The problem is not the length limitations of the QRCode. I tried the following configurations:

(I will write UNREADABLE for each configuration that generated an ureadable QR code and OK for configurations that generated readable QR codes)

OK:

>>>>>>>>"HELLO WORLD HELLO WORLD H"<<<<<<<<<
Length of text is 25
Using configuration (Version 1,L)
Array bounds: ((0,0),(20,20))

UNREADABLE:

>>>>>>>>"HELLO WORLD HELLO WORLD HE"<<<<<<<<<
Length of text is 26
Using configuration (Version 2,Q)
Array bounds: ((0,0),(24,24))

OK:

>>>>>>>>"HELLO WORLD HELLO WORLD HE"<<<<<<<<<
Length of text is 26
Using configuration (Version 2,L)
Array bounds: ((0,0),(24,24))

UNREADABLE:

>>>>>>>>"HELLO WORLD HELLO WORLD HE"<<<<<<<<<
Length of text is 26
Using configuration (Version 2,M)
Array bounds: ((0,0),(24,24))

UNREADABLE:

>>>>>>>>"HELLO WORLD HELLO WORLD HEHELLO WORLD HELLO WORLD HEHELLO WORLD HELLO WORLD HEHELLO WORLD HELLO WORLD HEHELLO WORLD HELLO WORLD HEHELLO WORLD HELLO WORLD HEHELLO WORLD HELLO WORLD HEHELLO WORLD HELLO WORLD HEHELLO WORLD HELLO WORLD HEHELLO WORLD HELLO WORLD HE"<<<<<<<<<
Length of text is 260
Using configuration (Version 8,L)
Array bounds: ((0,0),(48,48))

UNREADABLE:

>>>>>>>>"HELLO WORLD HELLO WORLD HEHELLO WORLD HELLO WORLD HEHELLO WORLD HELLO WORLD HEHELLO WORLD HELLO WORLD HEHELLO WORLD HELLO WORLD HEHELLO WORLD HELLO WORLD HEHELLO WORLD HELLO WORLD HEHELLO WORLD HELLO WORLD HEHELLO WORLD HELLO WORLD HEHELLO WORLD HELLO WORLD HE"<<<<<<<<<
Length of text is 260
Using configuration (Version 9,L)
Array bounds: ((0,0),(52,52))

UNREADABLE:

>>>>>>>>"HELLO WORLD HELLO WORLD HEHELLO WORLD HELLO WORLD HEHELLO WORLD HELLO WORLD HEHELLO WORLD HELLO WORLD HEHELLO WORLD HELLO WORLD HEHELLO WORLD HELLO WORLD HEHELLO WORLD HELLO WORLD HEHELLO WORLD HELLO WORLD HEHELLO WORLD HELLO WORLD HEHELLO WORLD HELLO WORLD HE"<<<<<<<<<
Length of text is 260
Using configuration (Version 10,L)
Array bounds: ((0,0),(56,56))

UNREADABLE:

>>>>>>>>"HELLO WORLD HELLO WORLD HEHELLO WORLD HELLO WORLD HEHELLO WORLD HELLO WORLD HEHELLO WORLD HELLO WORLD HEHELLO WORLD HELLO WORLD HEHELLO WORLD HELLO WORLD HEHELLO WORLD HELLO WORLD HEHELLO WORLD HELLO WORLD HEHELLO WORLD HELLO WORLD HEHELLO WORLD HELLO WORLD HE"<<<<<<<<<
Length of text is 260
Using configuration (Version 15,L)
Array bounds: ((0,0),(76,76))

Please note that, according to QRCode.com, a QR Code version 2 with error correction level Q should have a capacity of 29 alphanumeric characters and I tried with 26.

Also, a QR code version 8 with error correction level L should be able to encode up to 279 alphanumeric characters. I tried with 260, and could not get a readable QR code even if I used version 15, which should have a capacity of 758 alphanumeric characters for error correction level L.

I am attaching the QR Code obtained for the last sample, 260 characters, Version 15, Level L.

xaa

@kizzx2
Copy link
Owner

kizzx2 commented Sep 17, 2017

5dabe45 fixes the issue for all of the above cases except (Version 15, L)

Still trying to debug what the issue is with (Version 15, L)

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

4 participants