We're Hiring!

rotating an image in Figure crops the image corners

General user discussion about using the OMERO platform to its fullest. Please ask new questions at https://forum.image.sc/tags/omero
Please note:
Historical discussions about OMERO. Please look for and ask new questions at https://forum.image.sc/tags/omero

There are workflow guides for various OMERO functions on our help site - http://help.openmicroscopy.org

You should find answers to any basic questions about using the clients there.

rotating an image in Figure crops the image corners

Postby jcopeland » Mon May 20, 2019 3:40 pm

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
Jay Copeland
Manager, Image Management Core
Harvard Medical School
Goldenson 504A
220 Longwood Avenue
Boston, MA 02115
https://imc.hms.harvard.edu
jcopeland
 
Posts: 15
Joined: Fri Apr 20, 2012 7:06 pm

Re: rotating an image in Figure crops the image corners

Postby jcopeland » Wed May 22, 2019 5:44 pm

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
Jay Copeland
Manager, Image Management Core
Harvard Medical School
Goldenson 504A
220 Longwood Avenue
Boston, MA 02115
https://imc.hms.harvard.edu
jcopeland
 
Posts: 15
Joined: Fri Apr 20, 2012 7:06 pm

Re: rotating an image in Figure crops the image corners

Postby wmoore » Thu May 23, 2019 3:10 pm

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
User avatar
wmoore
Team Member
 
Posts: 674
Joined: Mon May 18, 2009 12:46 pm


Return to User Discussion

Who is online

Users browsing this forum: Google [Bot] and 1 guest