jsQR icon indicating copy to clipboard operation
jsQR copied to clipboard

Is there a maximum resolution for images that can be decoded?

Open gruhn opened this issue 6 years ago • 2 comments

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

gruhn avatar Oct 25 '18 22:10 gruhn

the same problem here it doesn't work with iPhone camera photo but works with resized one in 600px width

emj365 avatar Aug 05 '19 11:08 emj365

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.

dirkbolte avatar Feb 19 '20 10:02 dirkbolte