omero-iviewer icon indicating copy to clipboard operation
omero-iviewer copied to clipboard

Preset Viewer Opening Parameters

Open c15mnw opened this issue 5 years ago • 6 comments

Add extra parameters to the URL that opens iViewer: https://.../iviewer/?images=3407

It would be extremely useful to be able to open the viewer via a URL with extra parameters for:

  1. X and Y Coordinates - opens the viewer with the image centred around this point;
  2. Magnification - opens the viewer with the image at this magnification.

eg. https://.../iviewer/?images=3407&X=63012&Y=26852 https://.../iviewer/?images=3407&Mag=15 https://.../iviewer/?images=3407&X=63012&Y=26852&Mag=15

c15mnw avatar Jan 14 '19 13:01 c15mnw

@c15mnw At one point in time, prior to opening multiple images for sure, the "X" and "Y" query params were supported as a given center. So was "ZM" for zoom (as a percentage).

Did you try out your first url example?

waxenegger avatar Jan 16 '19 19:01 waxenegger

Ah ha! So I can centre the image by X and Y parameters! Thank you!

Can you point me to a URL where this is documented please?

Cheers MW

c15mnw avatar Jan 17 '19 09:01 c15mnw

We are lacking documentation on iviewer. We will improve that now that it is becoming the viewer of choice.

Cheers Jmarie

jburel avatar Jan 20 '19 07:01 jburel

In looking to improve the documentation, I found that the zm and x and y query parameters didn't seem to be working, so I've opened a PR to fix that (with the documentation additions): https://github.com/ome/omero-iviewer/pull/236

will-moore avatar Feb 14 '19 04:02 will-moore

It would also be nice if there was a parameter to enable the display of ROIs when the image is opened.

manics avatar Apr 10 '19 13:04 manics

Created card at https://trello.com/c/25be56hf/76-show-rois-on-initial-opening.

will-moore avatar Apr 10 '19 14:04 will-moore