Closed jdylanmc closed 4 years ago
The bind({opts})
method should help with this.
When using bind, do you always have to pass in the image? I just want to bind points but this seems to cause issues.
croppie.js:190 Uncaught (in promise) TypeError: Cannot read property 'match' of undefined
at croppie.js:190
at new Promise (
Oops - yeah good point. You probably always need to include the url.
Also, when using bind it only appears to work if the croppie has been interacted with previously. Is there a way to get around this?
I basically am initializing multiple croppies, and then allowing a user to select a "Focal Point" of my image. Moving the focal point element around programatically updates all of the croppies to follow.
I'm not familiar with that bug, if it is one can you provide some example code jsbin/jsfiddle/codepen?
Sorry, I have just realized it's because I'm hiding Croppies behind modals. The modals have their visibility set to hidden at the time I'm trying to programatically bind them. I believe I need to set the modal opacity to 0 and push them down with z-index instead. I'll tinker with it and let you know if there really is a bug.
Thanks for your help.
After Croppie has been initialized, is it possible to programatically zoom/move the crop point? How do you do this?