jsQR
jsQR copied to clipboard
Is there a maximum resolution for images that can be decoded?
It seems to me that jsQR fails to decode images at some high resolution. I tested this with a few images. Scaling the same images down before passing the image data to jsQR seems to work. Check out this fiddle:
https://jsfiddle.net/4rf1975s/1/
Is this behavior intended? If so, what exactly is the maximum possible resolution?
PS: maybe the link to the image I included in the demo will break at some point. For reference:
the original image

the same problem here it doesn't work with iPhone camera photo but works with resized one in 600px width
Same issue here with google chrome on android (Pixel 2) and MacOS. The original image was about 4000x3000 - and fails to parse on either platform. Decreasing width to 1024 (and height proportionally) makes it work on Chrome/MacOS but still fails on Android.
Scaling it down to width=500 makes it work on both platforms.