I apply Caman Filter to a canvas with existing image data. But when I create Caman object to use later, it emply my canvas.
var ca = Caman('#myCanvas');
I'm try to do exactly with Caman Guide , like this:
Caman('#myCanvas',function(){
this.render();
});
But the same problem, canvas is clear! Why I cannot load canvas to Caman then modify, although documentation says can be?
You don't need to grab a reference to the Caman object with:
var ca = Caman("#myCanvas");
First, draw something on the original canvas:
Then tell Caman to use #myCanvas as both the source and destination for any filters:
About your cleared canvas:
Since Caman uses .getImageData, be sure your image is hosted on the same site as the web page you're serving otherwise a CORS security violation will cause your canvas to be blank.