-
Notifications
You must be signed in to change notification settings - Fork 307
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add listener function that is triggered when picture is done moving / zooming #3
Comments
Do you mean adding a callback as an option which gets called every time the image is zoomed/moved? |
Sorry for to little information. as callback that would be called after the moving/zooming process is done. If possible not during the dragging/zooming since I guess the export every pixel zoomed/moved can slow the browser :) |
Interesting. If I understand it correctly you want to be able to include the cropped image data in a form submission. If I were you I would probably try the following approach: bind a |
Yes, perfect! I've tested it and it works just as expected! |
Sure, this is the what we’ve done: var imageCropper = $('#image-cropper'); imageCropper.find(".cropit-image-data").val( image ); We’ve also needed one hidden field where the data is placed when its exported: (just add it inside the Sinisa |
I'm using your cropper as part of form in which user upload the image. Now I'm doing workaround so that when form is submitted the data is retrieved using the getData. Is it possible to define listener function so that my function would be triggered after the image is zoomed or moved (repositioned/cropped)?
The text was updated successfully, but these errors were encountered: