Good day folks.
Im wondering is there any way to dynamically add image from user computer to canvas.
For example I have:
To do this you should be familiar with the HTML5 Canvas API and the File API. And of course, this feature is available in the browsers only support both HTML5 APIs.
The process to do this is:
change event to file input element.img element with the data URL and draw it on the canvas.I made a simple example on jsfiddle. The code looks like this:
There are plenty of good tutorials about the File API like this or this.