Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with compress method, to compress multiple images. #42

Open
kapilkk opened this issue Sep 25, 2019 · 0 comments
Open

Issue with compress method, to compress multiple images. #42

kapilkk opened this issue Sep 25, 2019 · 0 comments

Comments

@kapilkk
Copy link

kapilkk commented Sep 25, 2019

I've been using compress method to compress mutiples images by passing an array of files, but the method is responding to the last image only.

this.ngxImgMaxService.compress(files, 0.1).subscribe(
      result => {
        let uploadedImage = new File([result], result.name);
        console.log(uploadedImage);
      },
      error => {
        console.log('😢 Oh no!', error);
      }
 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant