Closed max-degterev closed 11 years ago
I'd be really awesome if you could just say heres my image, please put canvas within this container, or here's canvas paint on it. And then you can crop it via caman or whatever.
Caman supports cropping/resizing the canvas already:
Caman("#image", function () {
this.crop(width, height, x, y);
this.render();
});
Some improvement needs to be done in handling DOM objects that are given during initialization still.
Everything works like a charm up to the point where I try to get original image back to the canvas. It looks like when you instantiate your Caman object like this:
and then somewhere you do this:
you get this error:
TypeError: this.options is undefined return this.loadCanvas(this.options.image, this.canvas, ready);
If I switch to cropping via Caman, will it be OK? Or should I just repaint canvas myself?