Mawi137 / ngx-image-cropper

An image cropper for Angular
MIT License
779 stars 208 forks source link

Pass more error details to the `loadImageFailed` method #636

Open rami-alloush opened 4 months ago

rami-alloush commented 4 months ago

When uploading wrong image type, I can see in the more details about the error Error: Invalid image type.

It would be great to pass these details to the loadImageFailed method. Maybe something like this?

      (loadImageFailed)="loadImageFailed($event)"