hallysonh / ngx-imageviewer

Angular 5 Image Viewer Component based on Canvas
MIT License
84 stars 52 forks source link

Browsersupport IE11? #24

Open Sabartius opened 6 years ago

Sabartius commented 6 years ago

Is this Component compatible to the evergreen Internet Explorer 11? Your Github-Page at least gets stuck in the loading screen, so i couldn't check the demo.

bb1 commented 5 years ago

PDF support doesn't work in IE11or Edge. The reason is this line: https://github.com/hallysonh/ngx-imageviewer/blob/8ca97aa0a2db4b33dde5deeb551c84ebf13af9a0/projects/ngx-imageviewer/src/lib/pdf.loader.ts#L87

canvas.toBlob() is not supported in Internet Explorer or Edge see https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toBlob#Browser_compatibility

I just found this out the hard way. :( Everything else works fine. Except some minor styling problems in fullscreen and IE11.

bb1 commented 5 years ago

This should help though: https://www.npmjs.com/package/blueimp-canvas-to-blob