dfa1234 / ngx-image-compress

Angular library for uploading and compressing images
https://image-library.app
MIT License
87 stars 36 forks source link

Multiple Image compress #42

Closed rushabhshah95 closed 3 years ago

rushabhshah95 commented 3 years ago

How can I pass array of images blob to uploadfile function ? Could someone please provide me an idea/example to compress multiple file using ngx-image-compress?

dfa1234 commented 3 years ago

If you look in the demo, there is 2 main functions

this.imageCompress.uploadFile and this.imageCompress.compress

Certainly we could adapt 'uploadFile' to your need, but currently it's only working for 1 file.

So you will need to implement this upload function for several file by yourself.

After that, you can write some kind of a loop and use this.imageCompress.compress multiple time

Good luck