We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug Description BrowserMultiFormatReader.decodeFromImage and BrowserQRCodeReader.decodeFromImage not working.
BrowserMultiFormatReader.decodeFromImage
BrowserQRCodeReader.decodeFromImage
To Reproduce Steps to reproduce the behavior:
DECODE
Expected behavior Detecting the qr code on the image
Screenshots
Desktop
Additional context I also wrote my own code to test
<html> <head> <title>ZXing Canvas Test</title> </head> <body> <img src="https://blog.hubspot.com/hs-fs/hub/53/file-2457427390-jpg/00-Blog_Thinkstock_Images/qr-code.jpg?width=381&name=qr-code.jpg" /> <script src="https://unpkg.com/@zxing/library@latest"></script> <script> const { BrowserQRCodeReader } = ZXing; const reader = new BrowserQRCodeReader(); (async () => { try { const img = document.querySelector("img"); const results = await reader.decodeFromImage(img); console.log(results); } catch (err) { console.log(err); } })(); </script> </body> </html>
The text was updated successfully, but these errors were encountered:
I was able to replicate this. It's also true for Data Matrix decodes.
Sorry, something went wrong.
this.$el.innerHTML += <img id="image" src="qr.png"/>; const img = document.getElementById('image'); img.videoWidth = 0;
<img id="image" src="qr.png"/>
For my solution !
Stale issue message
this.$el.innerHTML += <img id="image" src="qr.png"/>; const img = document.getElementById('image'); img.videoWidth = 0; For my solution !
This fixed my problem as well. Thank you for making this work-around available.
No branches or pull requests
Bug Description
BrowserMultiFormatReader.decodeFromImage
andBrowserQRCodeReader.decodeFromImage
not working.To Reproduce
Steps to reproduce the behavior:
DECODE
button.Expected behavior
Detecting the qr code on the image
Screenshots

Desktop
Additional context
I also wrote my own code to test
The text was updated successfully, but these errors were encountered: