Then an jquery.qrcode.js plugin creates over a `item with a QR code...">

Load image to canvas on the fly

I have <div id="qrcode"></div>

Then an jquery.qrcode.js plugin creates over a

`item with a QR code.

So, I would like to put an element on the page <button>

to load this "image" (this is the canvas element), created on the fly.

Can this be done?

+2


source to share


1 answer


loading jquery canvas file



Saving the image can be done with HTML5 blobs.

http://www.html5rocks.com/en/tutorials/file/filesystem/#toc-file-writing

You can get Blob from what is done in this code:

https://github.com/miohtama/Krusovice/blob/master/src/tools/resizer.js

+1


source







All Articles