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

use pictures instead of camera #5

Open
salsa2k opened this issue Dec 15, 2022 · 4 comments
Open

use pictures instead of camera #5

salsa2k opened this issue Dec 15, 2022 · 4 comments
Labels
enhancement New feature or request

Comments

@salsa2k
Copy link

salsa2k commented Dec 15, 2022

There is any way to use pictures instead of the camera?

Thanks

@adamalfredsson
Copy link
Owner

It's a good idea. What do you have in mind? To upload an image and decode it?

@salsa2k
Copy link
Author

salsa2k commented Jan 5, 2023

yes, correct, some devices like Amazon Tablets don't have a camera barcode scan. Would be nice to be able to take a photo and use it to decode.

@adamalfredsson adamalfredsson added the enhancement New feature or request label Mar 20, 2023
@atengberg
Copy link

On one of the other html5-qrcode libraries, they use file input as a fallback which seemed a good way to handle this (additionally as another callback for debugging this would also be helpful).

@adamjanicki2
Copy link

It's a good idea. What do you have in mind? To upload an image and decode it?

An easier idea would be to allow passing a ref to an img element instead of only being able to pass it to a video element -- that way you wouldn't have to worry about implementing any sort of upload input/element

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants