The magnifier’s grid cannot always align to pixels

Hi,

I noticed that the magnifier grid in the standalone viewer cannot always align to image pixels.

In the video below, when adjusting the magnifier size using the scroll wheel, the grid only aligns to pixels at certain sizes.


test.png.gz (314 Bytes)

Version 13.22.7

How is the progress on this issue? The default magnifier size doesn't align to pixels, so I have to resize it every time, it's a bit annoying.

You can use the cursor keys to nudge it pixel-by-pixel, when moving the mouse it'll often not align exactly when the image is scaled (since one screen pixel equals more than one image pixel).

Sorry, I didn’t quite get what you meant.

No matter whether I use the mouse or the arrow keys to move, the grid never aligns with the image pixels. The distance it moves isn’t a screen pixel, but an image pixel (which is correct I think).

Maybe it’s because of non-integer scaling? When zoomed to certain levels, it can align perfectly again.
I want the grid to always align with the image pixels, at least at the default zoom level.

Yes that's what I meant.

If the scale factor is (e.g.) 150%, one screen pixel equals 1.5 image pixels. You can't move the mouse 1.5 pixels at a time, so moving the magnifier with the mouse will skip pixels in the image. But you can nudge it with the cursor keys, which move the magnifier rather than the mouse.

Thanks, I understand.

I hope to be able to set a default scale factor, so I can set it as an integer and avoid having to adjust it.

You can scale the viewer to whatever scale factor you like, that's what's determining it.
If you have it set to "scale to fit" it will often be a non-integer scaling method, but there's nothing stopping you changing the zoom to 200, 300, 400 etc.

I'm confused :face_with_spiral_eyes:.

Are you talking about the viewer's zoom level (the one set by the Show VIEWERCMD=zoom command)?

I haven't found how it affects the magnifier. No matter if I set it to 200%, 400%, or 800%, the magnifier seems to always zoom based on the original pixels.

What i want:

Sorry, I obviously misunderstood your report!

That seems strange though, not something I can reproduce here, no matter how the magnifier is zoomed.

What DPI scaling factor is your primary monitor set to?

125%. I guess this is the culprit :grinning_face:.

I tested other scaling factors, and only fractional scaling causes alignment issues. Integer scaling works perfectly.

We've fixed that for the next update. Thanks for the report!