Page 1 of 1

rotating an image in Figure crops the image corners

PostPosted: Mon May 20, 2019 3:40 pm
by jcopeland
Hello,

A user brought to my attention that you cannot rotate an image in OMERO.figure without cropping the corners. This could be avoided possibly if the zoom slider allowed for negative zoom. Is there are way around this?

Thanks.

Jay

Re: rotating an image in Figure crops the image corners

PostPosted: Wed May 22, 2019 5:44 pm
by jcopeland
I would like to clarify my original post.

When you use the rotation tool in OMERO.figure the frame bounding the image does not change. This results in the corners of the image to be obscured by the frame. Likewise, images that are longer in one dimension also are obscured by the frame when you rotate. Since the lowest zoom level is 100% it is not possible to reduce the size of the image to fit in the frame. In addition, controlling the frame size changes the zoom level in tandem. Therefore making the frame larger does not help. Probably the simplest solution would be to allow the zoom slider to shrink the image to some value less than 100%.

Has anyone brought this up before?

Thanks.

Jay

Re: rotating an image in Figure crops the image corners

PostPosted: Thu May 23, 2019 3:10 pm
by wmoore
Hi Jay,

Thanks for the feedback.
I don't think this has been raised before.

Simply setting the zoom below 100% in the browser can be done by:
- select the panels you want to zoom
- open the browser development tools
- paste this into the "console", adjusting the zoom as needed

Code: Select all
figureModel.getSelected().forEach(panel => {
    panel.set('zoom', 70);
});


This looks OK in the web (and should be saved OK etc) but this is not handled well during figure export so it will need a bit more work there.
I'll create a card...
https://trello.com/c/bCUTH21d/213-zoom-to-less-than-100