nimiq / qr-scanner

Lightweight Javascript QR Code Scanner
https://nimiq.github.io/qr-scanner/demo
MIT License
2.35k stars 509 forks source link

Scanner timing out when using a photo taken in safari's file upload menu #223

Open Teuntitaan1 opened 1 year ago

Teuntitaan1 commented 1 year ago

As the titles states, when a photo with a Qr-code gets uploaded and scanned, instead of returning the value of the Qr-code, the scanner throws a timeout error.

However an image from the image roll does work, it is specificaly images that are directly made with the camera roll.

How i handle the scanning is shown below


        QrScanner.scanImage(data, {returnDetailedScanResult : true})
            .then(result => {
this.setState({Data: result.data});

                }
            })
            .catch(error => {
                    this.setState({Warning : error});
                }
            });

help is appreciated since i cant seem to find others having the same bug

VadimGorbenko commented 3 months ago

i have the same on ios\android