ngx-lightbox icon indicating copy to clipboard operation
ngx-lightbox copied to clipboard

Download Image Option

Open hvsharma63 opened this issue 4 years ago • 3 comments

Hello, I read the documentation, but I didn't find any reference regarding "How to download the image, when image is being viewed"? I mean add a download option. Is this possible?

If anyone knows, please let me know

Thanks

hvsharma63 avatar Oct 14 '20 11:10 hvsharma63

I agree, that would be very useful.

pierresh avatar Jan 03 '21 13:01 pierresh

No way for that at the moment. PRs welcome.

themyth92 avatar Jan 04 '21 03:01 themyth92

There already exists a download option in the lightboxConfig, however; if the images are behind a host that requires CORS and you're not on the list, you can forget it. The property on the lightboxConfig looks something like:

this.lightboxConfig.showDownloadButton = true;

h5aaimtron avatar Feb 08 '22 01:02 h5aaimtron