127
rated 0 times
[
130]
[
3]
/ answers: 1 / hits: 20264
/ 12 Years ago, wed, april 18, 2012, 12:00:00
i'm trying to make an javascript image color picker.
It is possible to open local image in canvas, without uploading it to server ?
function draw() {
var ctx = document.getElementById('canvas').getContext('2d');
var img = new Image();
img.onload = function(){
ctx.drawImage(img,0,0);
}
img.src = $('#uploadimage').val();
}
<input type='file' name='img' size='65' id='uploadimage' />
More From » jquery