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
{{ message }}
This repository has been archived by the owner on Jun 11, 2021. It is now read-only.
public async onFileChanged(event) {
console.log('onFileChanged', event);
this.selectedFiles = event.target.files;
if (!this.selectedFiles) {
return;
}
let files = <File[]>[];
for (var i = 0; i < this.selectedFiles.length; i++) {
files.push(this.selectedFiles[i]);
}
this.ng2PicaService.resize(files, 50, 50).subscribe((result) => {
//all good, result is a file
console.info(result);
}, error => {
//something went wrong
console.error(error);
});
}
here is my code to upload new image. when this.ng2PicaService.resize is executed, the tab browser is freezing. My guess is the Web Worker are not enabled.
Hi,
here is my code to upload new image. when
this.ng2PicaService.resize
is executed, the tab browser is freezing. My guess is the Web Worker are not enabled.My angular is configured to use WebWorker, you can see here : https://stackoverflow.com/questions/52414807/resize-and-compress-image-in-angular-6-using-web-worker that it works correctly.
Do you know how to enable this option?
The text was updated successfully, but these errors were encountered: