danialfarid / ng-file-upload

Lightweight Angular directive to upload files with optional FileAPI shim for cross browser support
MIT License
7.87k stars 1.6k forks source link

<img ngf-src="file"> stopped working #2065

Closed wholeinsoul closed 6 years ago

wholeinsoul commented 6 years ago

I was using 12.0.4 and all of a sudden imageDimensions started returning 0,0. May be because of chrome update (Version 65.0.3325.181) ?

So I updated to the latest version on CDN 12.2.13 and now <img ngf-src="file"> has stopped working (no image is visible) but the upload works correctly. Even https://angular-file-upload.appspot.com/ is not showing any preview of the image. It does work properly on safari Version 11.0.1 (13604.3.5) though.

Thanks.

wholeinsoul commented 6 years ago

adding style="display: block !important;" to img tag makes the preview visible. verified on the demo page.