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

Bugfix for down scaling already very small images #3202

Merged

Conversation

dominikl
Copy link
Member

I don't think this is a "real world" issue, but fixes: https://trac.openmicroscopy.org.uk/ome/ticket/12638
Ensures that an image can't be down scaled to less than 3px.
Test: Open a very small image (3 or 4px) in full viewer, try to zoom out; nothing should happen if the image would get smaller than 3px (previously: error message was shown).

@jburel jburel added the develop label Nov 20, 2014
@mtbc
Copy link
Member

mtbc commented Nov 20, 2014

A definite improvement, already good to merge.

I could trigger the bug by importing a 2×2 image, attached below for convenience, and zooming out from that, but that's even less of a real-world issue! Don't know if you want to bother addressing that now or not.
2x2

@dominikl
Copy link
Member Author

Yes, I can do that within this PR.

@dominikl dominikl force-pushed the magnification_fix_for_very_small_images branch 2 times, most recently from f228ade to e1201e2 Compare November 20, 2014 11:30
@dominikl dominikl force-pushed the magnification_fix_for_very_small_images branch from e1201e2 to 5c1d99d Compare November 20, 2014 11:33
@dominikl
Copy link
Member Author

Image Viewer can now also handle images < 3px.
Want to review again tomorrow @mtbc ?

@mtbc
Copy link
Member

mtbc commented Nov 20, 2014

👍 Happy to if nobody else grabs it.

@mtbc
Copy link
Member

mtbc commented Nov 21, 2014

No problems at all now with zooming, can't get that error dialog to appear. Good to merge.

joshmoore added a commit that referenced this pull request Nov 21, 2014
…ll_images

Bugfix for down scaling already very small images
@joshmoore joshmoore merged commit 09b269b into ome:develop Nov 21, 2014
@dominikl
Copy link
Member Author

--no-rebase

@sbesson sbesson added this to the 5.1.0-m2 milestone Nov 26, 2014
@dominikl dominikl deleted the magnification_fix_for_very_small_images branch January 6, 2015 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants