Skip to content
New issue

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

BrowserMultiFormatReader is not able to decode image if the image src is define as base64 data #602

Open
ghevge opened this issue Jun 7, 2024 · 0 comments
Labels

Comments

@ghevge
Copy link

ghevge commented Jun 7, 2024

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:

  1. Download the attached ts2.txt and rename it to .html
  2. 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 ()
at t.BrowserMultiFormatReader.decodeOnce (https://unpkg.com/@zxing/library@latest:1:35127)
at t.BrowserMultiFormatReader.decodeFromImageElement (https://unpkg.com/@zxing/library@latest:1:32734)
at t.BrowserMultiFormatReader.decodeFromImage (https://unpkg.com/@zxing/library@latest:1:32103)
ts2.txt

@ghevge ghevge added the bug label Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant