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...
Load picture from URL, without need to enable allow-access-control-origin (CORS).
Download this as file.
Upload image from downloaded file.
Get base64 without any problem with canvas.toDataURL()
Capture QR-code from base64 encoded image
Result is available then.
All actions are available on client-side and picture qith qr-code can be cached.
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.