You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it shows Cannot read property 'cropper' of undefined
i give the default imageurl
let image: HTMLImageElement = new Image();
image.crossOrigin = 'anonymous';
this.cropper.settings = this.cropperSettings;
let thatCroper = this.cropper;
image.onload = () => {
thatCroper.setImage(image);
if (!this.cropper) {
this.cropper = thatCroper;
}
};
image.src = this.wallpaperCollection.Cover;
fileChangeListener($event) {
this.eventFile = $event;
this.data1 = {};
let image: any = new Image();
let file: File = $event.target.files[0];
let myReader: FileReader = new FileReader();
let that = this.cropper;
this.fileName = file.name;
myReader.onloadend = function (loadEvent: any) {
image.src = loadEvent.target.result;
that.cropper.setImage(image);
};
myReader.readAsDataURL(file);
}
i have no ideal
The text was updated successfully, but these errors were encountered:
it shows Cannot read property 'cropper' of undefined
i give the default imageurl
i have no ideal
The text was updated successfully, but these errors were encountered: