Open lrossy opened 10 years ago
Looks like I have the same problem here. I can decode QR codes as long as the string encoded is not longer than 300-some characters. For longer strings I get an error (on my implementation) and an "error decoding QR code" in the web.
For example, working QR of a string 300 characters long:
and the qr of a sightly longer string:
Hi,
did you find a solution for this ?
When I try and use an image with any more characters then just a simple email or website, I keep getting a thrown exception that just says 'Error'
to reproduce, just go to the demo page: http://webqr.com/index.html
upload this qr:
It works fine for small qrcodes. When I upload the same graphic to http://zxing.org/w/decode it works.
Here is what is being passed into decode:
....scanQR = function(event) {
qrcode.callback = function(result) {... }
var canvas = document.createElement('canvas'); var context = canvas.getContext('2d');
var img = new Image(); img.onload = function() {
}
What am I doing wrong?