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

No other images can be shown? #3

Open
catweis opened this issue Apr 22, 2024 · 1 comment
Open

No other images can be shown? #3

catweis opened this issue Apr 22, 2024 · 1 comment

Comments

@catweis
Copy link

catweis commented Apr 22, 2024

First of all, thank you for the fantastic tool.
I have tried it with my images stored on, e.g., a Google storage server. However, the demo site and a local version both only show the example tissue (skin with melanocytic lesion). In your code, there this address is the default address?

@PrafulB
Copy link
Member

PrafulB commented Apr 23, 2024

One reason I can think of for that could be because the images on the Google storage server are not publicly accessible. The tool works from your computer, so it can only see data that your browser can directly. And there is no authentication/authorization built into the app, so any images requiring special login are not directly supported. Not to say that that's not possible, it's just extra functionality that is not part of the demo itself.

Just to verify if public accessibility is the reason, can you try opening the image URL in a new browser tab directly? Are you able to download the file when you do that, or does it give you an error?

If the image is downloadable but the tool still cannot open it, a CORS configuration might have to be added to the storage bucket to support browser-based access. More info on that here: https://cloud.google.com/storage/docs/using-cors . Apologies for the trouble, this is unfortunately a security measure browsers employ that the tool cannot circumvent.

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

2 participants