Closed robinparadise closed 4 years ago
Can you explain why do you think it's essential to support base64 images? I don't see any advantage of using base64 images in a Lightbox when it's primarily used to display large images and the base64 code can be quite large. Is it only to avoid a request to the server? if you have other use cases please mention them.
Closing as there was no response
This is being requested by others here: https://github.com/quarto-ext/lightbox/issues/1 which uses this library.
A common use case for this is when people want a self-contained single html file to share that includes all of the images base64 encoded. Of course it's not ideal to have a lot of images built directly into the page but there are situations where it is nice to have. Here the use of Lightbox isn't so much about large images as much as it is about having a simple document where images can be magnified with Lightbox when needed.
I'm not sure if that's enough of a reason to revisit this but pointing it out in case it is and is something that could be accommodated without too much effort.
Hey there @hafen
I appreciate you using glightbox! I don't think it would be that hard to do, especially looking at the hack you pulled together in that issue.
If you make a new issue using the feature request template, we can discuss it further. :)
Please describe the feature you want to be implemented. I think it is essential to open this type of images