digitalascetic / ngx-pica

@digitalascetic/ngx-pica is an Angular(LTS) module to resize images files in browse
36 stars 26 forks source link

Microsoft Edge not supported in new version #32

Closed EvrenKayali closed 4 years ago

EvrenKayali commented 4 years ago

Hello, I am having an issue when I use your lib with MS Edge. Do you have a solution for this?

Problem Version 8 and above cause failing of Angular app on MS Edge Browser with syntax error SCRIPT5022: SCRIPT5022: Syntax error

image

For Reproduce:

Asher24 commented 4 years ago

It is probably a regression from commit b28ca2fa8a1a126f749b2e858640a24e42e7ba17 Mar. 9 2020, changing from exifjs to exifr

EvrenKayali commented 4 years ago

Yes @Asher24 , I am pretty sure that is the reason. But I couldn't solve the problem by using exifr polyfills. We decided to move on server side image resizing.

edezacas commented 4 years ago

@EvrenKayali @Asher24 Can you give us a more detailed debug? We've just released a new version forcing to update exifr and pica libraries to last releases. Also we've replaced window.URL.createObjectURL by FileReader API. This may fix this error.