library
library copied to clipboard
BrowserMultiFormatReader is not able to decode image if the image src is define as base64 data
Describe the bug BrowserMultiFormatReader is not able to decode image if the image src is define as base64 data
To Reproduce Steps to reproduce the behavior:
- Download the attached ts2.txt and rename it to .html
- Open it in a browser and click on the decode button
Expected behavior Image should have been decoded
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: Window 10
- Browser Chrome
- Version latest
Additional context The html file is an update of https://zxing-js.github.io/library/examples/multi-image/.
Observed error is:
No MultiFormat Readers were able to detect the code.
at cr.decodeInternal (https://unpkg.com/@zxing/library@latest:1:258233)
at cr.decodeWithState (https://unpkg.com/@zxing/library@latest:1:257285)
at t.BrowserMultiFormatReader.decodeBitmap (https://unpkg.com/@zxing/library@latest:1:331864)
at t.BrowserMultiFormatReader.decode (https://unpkg.com/@zxing/library@latest:1:35551)
at n (https://unpkg.com/@zxing/library@latest:1:34976)
at https://unpkg.com/@zxing/library@latest:1:35147
at new Promise (