allen-cell-animated / volume-viewer

https://allen-cell-animated.github.io/volume-viewer/
Other
90 stars 7 forks source link

support loading from google drive or dropbox #232

Open toloudis opened 1 month ago

toloudis commented 1 month ago

Use Case

sometimes the shareable dropbox or drive link is not really the "http GET-able" link. Simularium had to deal with this too.

Solution

Try the simularium solution. (doctor the url to make it work)

toloudis commented 1 month ago

example starting with shared drive url: https://drive.google.com/file/d/11rdcZ5TVE-pmU9e4QuTA0WK3CoOgqPBi/view?usp=sharing we can convert it to something like: https://drive.google.com/uc?export=download&id=11rdcZ5TVE-pmU9e4QuTA0WK3CoOgqPBi but then need to urlencode it to put it in the volumeviewer url: https://volumeviewer.allencell.org/viewer?url=https%3A%2F%2Fdrive.google.com%2Fuc%3Fexport%3Ddownload%26id%3D11rdcZ5TVE-pmU9e4QuTA0WK3CoOgqPBi and then the viewer doesn't know whether to try to load this as tiff or zarr (it's trying zarr, I think)

toloudis commented 4 weeks ago

@lynwilhelm for adding the design. This ticket is in volume-viewer but the front end load dialog is in website-3d-cell-viewer... We can add a new front-end ticket over there too.

lynwilhelm commented 3 weeks ago

Design complete:

Screenshot 2024-08-19 at 12 53 58 PM

Design link (look under "Modals"): https://www.figma.com/design/EJCCnElvRvObznBhN519sl/Components---CFE-%2B-3DWV?node-id=0-1&t=iiXRRTCAd3qq0kaH-1