I have several images, and I would like to load them each into one element <canvas>at different points in time, and then manipulate them using CamanJS . I can get the first image so that it looks like this:
Caman('#canvas-element', '/images/one.jpg');
But then, when I try to update the same element using the following code, it does not work.
Caman('#canvas-element', '/images/two.jpg');
Is there a way to reset / clean / flush the canvas and load new image data into it, or do I really need to create separate elements <canvas>for each image that I want to upload? I would prefer one element because I do not want to eat all the memory.
source
share