Client-side picture scanning and generate qr-code.#91
Open
username1565 wants to merge 2 commits intoLazarSoft:masterfrom
Open
Client-side picture scanning and generate qr-code.#91username1565 wants to merge 2 commits intoLazarSoft:masterfrom
username1565 wants to merge 2 commits intoLazarSoft:masterfrom
Conversation
test.html not working on client-side from zip. So this page qr_picture_scanning.html - added. There is available to scan qr-code on client-side from picture. Supporting formats: png/gif/jpg and, maybe, etc... 1. Load picture from URL, without need to enable allow-access-control-origin (CORS). 2. Download this as file. 3. Upload image from downloaded file. 4. Get base64 without any problem with canvas.toDataURL() 5. Capture QR-code from base64 encoded image 6. Result is available then. All actions are available on client-side and picture qith qr-code can be cached.
Add client-side qr-code generator. You can see qr-code when on changing the value of result-textarea.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
test.html not working on client-side from zip.
So this page qr_picture_scanning.html - added.
There is available to scan qr-code on client-side from picture.
Supporting formats: png/gif/jpg and, maybe, etc...
All actions are available on client-side and picture qith qr-code can be cached.
Demo: https://username1565.github.io/jsqrcode/src/qr_picture_scanning.html
Styles from here: https://zxing.org/w/decode.jspx
Generate qr-code on client-side you can here (See source code):
https://username1565.github.io/brainwallet.github.io/
QR-code generator added in last commit.