Open kudsyf opened 7 years ago
i would also like to change the cropperSettings dynamically...
Please try this,
this.cropper.cropper = new ImageCropper(this.cropperImageSettings); this.cropper.cropper.prepare(this.cropper.cropcanvas.nativeElement); this.cropper.setImage(image);
its working for me.
@ayya1987 - That fixed it for me, thanks!
It would be nice to be able to toggle some settings without the need to reset the image (causes a flicker and resets the cropper area). But this work around will do for now.
Thanks again!
i need to change the predefined cropper settings based on a condition, i tried the following
but am getting blank canvas ! any idea ?