title: Compress images client-side with ng-file-upload
body: <p>I've got an AngularJS app that uses <code>ng-file-upload</code> to upload images to my server. I want to be able to compress, or at least resize images prior to uploading them to my server. I've been researching ways to do this and so far this <a href="https://github.com/sammychl/ng-image-compress" rel="nofollow">ng-image-compress</a> directive seems like the most viable approach. The problem I'm having is that it doesn't seem to be compatible with <code>ng-file-upload</code>. I managed to pull it into my app as a dependency, but when I upload a file, it's not compressed prior to being uploaded. The readme on the project repo offers little guidance on its usage. Are there other approaches I can take to compress the image client-side before it's uploaded with <code>ng-file-upload</code>?</p>