Removing the cropper

26 views
Skip to first unread message

Tim

unread,
Mar 14, 2011, 2:32:09 PM3/14/11
to javascript-image-cropper-ui
Hello,

I am working with this great script, but having a hard time removing
the cropper.

I have read your posts where you say to call the cropper.remove() ....
but exactly how? I have looked through the code and just can't seem to
figure out how to implement that.

Thanks!

David Spurr

unread,
Mar 15, 2011, 3:51:04 PM3/15/11
to javascript-image-cropper-ui
Hi Tim,

You need to keep a reference to the cropper to be able to call remove
on it, see the JS on the dynamically changing image demo for a
starting point: http://www.defusion.org.uk/demos/060519/cropper.php?demoType=dynamic&image=castle&formSubmit=Load+demo

Hope this helps,

-D

Jacob

unread,
Mar 16, 2011, 6:43:57 AM3/16/11
to javascript-image-cropper-ui
I had some problems with removing the cropper. Sometimes some DIV-
elements refuced to be removed. The conculsion I came to was that I
had to specify the width and height of the images.
Reply all
Reply to author
Forward
0 new messages