meltingice / CamanJS

Javascript HTML5 (Ca)nvas (Man)ipulation
http://camanjs.com
BSD 3-Clause "New" or "Revised" License
3.55k stars 404 forks source link

can't update image #131

Closed marti1125 closed 9 years ago

marti1125 commented 10 years ago

I am using camanjs for add effect to canvas but the image doesn't update

img.src = window.URL.createObjectURL(this.result.blob); var canvas = document.getElementById("imageToSave"); var imgT = document.getElementById("image-presenter"); var width = canvas.width; var height = canvas.height; var context = canvas.getContext("2d"); context.drawImage(imgT,0,0,width,height);

Caman('#imageToSave', function () { this.brightness(10); this.contrast(30); this.sepia(60); this.saturation(-30); this.render();
flipBox.toggle(); });

marti1125 commented 10 years ago

I am trying to update image img.src and algo again apply filter