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

Support open images in omero web client #10

Open
oeway opened this issue Jan 27, 2021 · 2 comments
Open

Support open images in omero web client #10

oeway opened this issue Jan 27, 2021 · 2 comments

Comments

@oeway
Copy link
Collaborator

oeway commented Jan 27, 2021

This feature is proposed by Claire on image.sc: https://forum.image.sc/t/open-an-image-from-omero-in-imagej-js/47747

As explained by @will-moore the web client doesn't support raw pixel access, but we can still obtain the rendered images for some application. I think that's relatively easy to support.

Basically, in the web client every image has an image id, and use that id we can obtain the rendered image.

For example here: http://idr.openmicroscopy.org/webclient/?show=project-1501 If we inspect on the thumbnail image, we can obtain an image id like this: id="image-96765", we can take the number 96765, and convert it into an image URL: http://idr.openmicroscopy.org/webgateway/render_image/96765/0/0/

Previously, this URL won't work in ImageJ.JS because it has no file extension, but I just submitted a PR to fix it by inferring the file extension from HTTP header: imjoy-team/imagej.js#51

So now this will work: https://ij.imjoy.io/?open=http://idr.openmicroscopy.org/webgateway/render_image/96765/0/0/

What do you think @mutterer ? I guess we should also consider supporting different omero sites other than openmicroscopy.org.

@DrKenHo-crick
Copy link

Hi @oeway, the link above opening the idr image, it doesn't seem to work anymore.
A different version of imagej.js is required?

@oeway
Copy link
Collaborator Author

oeway commented Aug 18, 2021

Hi, it's not working yet.

I will copy my answer from image.sc:

The root cause I believe is that omero server doesn’t provide a http interface for accessing the raw pixel.
However, if you can make changes to the OMERO server, experimental support can be enabled. Basically, I think you will need to install https://github.com/ome/omero-ms-zarr and https://github.com/will-moore/omero-imjoy in the OMERO server.

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