Multiple image croppers on an image

6 views
Skip to first unread message

cess

unread,
May 30, 2008, 3:51:04 AM5/30/08
to javascript-image-cropper-ui
Hello, I would like to know if it's possible to put several image
croppers on a single image.

How can I do that?

Thanks.

David Spurr

unread,
May 30, 2008, 9:50:43 AM5/30/08
to javascript-im...@googlegroups.com
It's not possible with the way the cropper script works. I believe some
people have had some success hacking this functionality into a custom
version of the cropper unfortunately that was before the google group
was setup so you'll have to look for the comments by "Lieber, Samuel D."
(around July 2007) who said he'd got it working but didn't post the code.

-D

Aurels

unread,
Jul 15, 2008, 8:52:49 AM7/15/08
to javascript-image-cropper-ui
Hi,

I've got the inverse of this problem:

I a complex ajax page, I get 2 or more croppers on the same image (all
updating the same position fields).

Is it possible to remove a previously created cropper from the DOM?

Thanks.

aurels

David Spurr

unread,
Jul 15, 2008, 8:55:12 AM7/15/08
to javascript-im...@googlegroups.com
Have you looked at the dynamically changing image demo
(http://www.defusion.org.uk/demos/060519/cropper.php?demoType=dynamic&image=castle&formSubmit=Load+demo)
this has a rough cropper manager that can be used to add and remove a
cropper dynamically.

-D

Aurels

unread,
Jul 15, 2008, 10:29:21 AM7/15/08
to javascript-image-cropper-ui
I took a look at this example but I've got a very complicated code and
I'm not able to integrate this.

Isn' it possible to simply remove it from the picture by calling
remove() on the Cropper object or something like that?

Thank you!

David Spurr

unread,
Jul 15, 2008, 10:33:13 AM7/15/08
to javascript-im...@googlegroups.com
Yep, that's basically what the crop manager does, you need a reference
to the cropper and then you can remove it.

-D

Aurels

unread,
Jul 15, 2008, 10:50:12 AM7/15/08
to javascript-image-cropper-ui
It works in the sense of if I call remove() on my cropper variable,
the cropper is removed, but,
if I reassign a new cropper to the variable, 2 croppers appears on the
image...

aurels
Reply all
Reply to author
Forward
0 new messages