Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load image as BLOB dynamically #222

Open
sebastian-raubach opened this issue Sep 8, 2019 · 0 comments
Open

Load image as BLOB dynamically #222

sebastian-raubach opened this issue Sep 8, 2019 · 0 comments

Comments

@sebastian-raubach
Copy link

I've got a situation where I need to request the large image (not the thumbnail that is shown before clicking) as a BLOB from the server. This is done because the request needs to contain a Bearer token (something like this: https://stackoverflow.com/a/40597843). I only do this when the user clicks to only load the images that have been requested. This href of the link contains a placeholder until the click event happens and then gets replaced with the blob of the server call result. BaguetteBox does not reflect this change of the href attribute and still only shows the loading indicator.

Is there any way to make BaguetteBox load the image src from a specific server call? Something like a callback that can be defined which is called when baguettebox needs the next image and that returns the src value?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant