qrcodejs icon indicating copy to clipboard operation
qrcodejs copied to clipboard

Request to extend the maximum QR code limit to accept 7089 digits

Open hatgit opened this issue 4 years ago • 1 comments

I noticed that this QR code generator has a limit that appears much smaller than the theoretical maximum. For example, if one were to paste a series of 1's and 0's concatenated as a single string (i.e. 10100100010......etc..) what would be the maximum number of characters permissible in the current version, and what changes to the code would be needed to extend that?

I saw the following snippet in the qrcode.js file and wondering if anyone had a solution: QRCodeLimitLength=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]];

hatgit avatar May 07 '20 01:05 hatgit

Is there a version of qr code generators in JS that can do 3100 chars?

Leetcore avatar Mar 05 '21 07:03 Leetcore