question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow `decodeImage` to be async

See original GitHub issue

I’m working on implementing a QR Reader, based off of your other project, but with the “qr-scanner” dependency instead (looks smaller). The problem is, that is async, so I’m having to look into how to force it to be synchronous. It would be great if decodeFromImage was async https://github.com/ericblade/quagga2/blob/master/src/decoder/barcode_decoder.js#L258

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
BakoviDagicommented, Mar 5, 2022

@ericblade Thanks! I’ll test it on Monday and let you know!

0reactions
BakoviDagicommented, Mar 7, 2022

@ericblade It works great, thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to properly use async function from onPress
I am trying to do some image processing using filters, and image package. I can make it work, but it hangs the UI....
Read more >
HTMLImageElement.decoding - Web APIs | MDN
Decode the image asynchronously to reduce delay in presenting other ... The decoding property allows you to control whether or not the ...
Read more >
Async/await status? - #142 by Max_Desiatov - Discussion
A and B1/B2 runs in parallel. let a = async taskA() let b: ... if condition ... let imageTmp = decodeImage(dataResource, imageResource) let...
Read more >
What does the HTML image decoding async attribute do and ...
The decoding="async" attribute will tell the browser that it is OK for image decoding to be done at a later moment so that...
Read more >
swift-evolution/0296-async-await.md at main - GitHub
Async functions allow asynchronous code to be written as straight-line code. ... decodeImage(dataResource, imageResource) { imageTmp, error in guard let ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found