How to resize image before upload to server #720
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
In express JS I use multer storage. And Angular 2 side I use ng2-file-upload but I can't find the way resize image. Thank for your attention.
+1
+1
Still looking for solutions.
I can get base64 and convert image and redraw a compressed one by canvas, then get a new base64.But I have no idea to add this new base64 into uploader.queue
I used ng2-file-upload in conjunction with ng2-img-max.
Hi I am getting global.service.ts:68 Cannot read property 'name' of undefined
onFileChange(event): void{
// console.log('resize');
//console.log(event);
let self = this;
let extension: string = '';