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);
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(); });