ome / omero-figure

An OMERO.web app for creating Figures from images in OMERO
http://figure.openmicroscopy.org
GNU Affero General Public License v3.0
15 stars 30 forks source link

Weird translation if spanning image preview after cropping and rotating image #506

Open Rdornier opened 1 year ago

Rdornier commented 1 year ago

Bug report

Describe the bug When spanning an image, first cropped, then rotated, on the preview panel, the image preview is translated and does not correspond anymore to what is really displayed.

To Reproduce

  1. Open OMERO.figure
  2. Import an image
  3. Draw an ROI on the image
  4. Crop the image around the ROI
  5. Rotate the cropped image
  6. Span the image in the preview tab

Expected behavior Having the right preview when spanning the image on the preview tab

Screenshots OMERO figure_Bug1

Version :

Rdornier commented 9 months ago

Hello,

I had a closer look to this issue and can update a bit.

So, it seems that something is not / wrongly saved when the crop is performed. The wrong values are not affected when the user spans in the preview (so, the weird translation occurs each time you span). However, the slider acts as a reset button whenever you click / slide it and then everything is fine.

I had a look to the code but I couldn't find anything that would explain this behavor for now. I'll keep searching how to fix this bug but any inputs are welcome !

Rémy.