kolkov / ngx-gallery

A simple responsive native gallery component for Angular 8+.
https://ngx-gallery.kolkov.ru/
MIT License
115 stars 55 forks source link

Please add fileType property to NgxGalleryImage #33

Closed axos88 closed 4 years ago

axos88 commented 4 years ago

We store images by their md5 hashes, and do not include an extension. the NgxGalleryService determines file type based on extension only, and does not show images this way. In case the file type cannot be determined, a white box is shown, as both *ngIfs evaluate to false.

It would be great if the file types could be overridden manually in the image object, or the system would default to using an image if the file type cannot be determined

axos88 commented 4 years ago

31

kolkov commented 4 years ago

Ttry latest version please.