ImageGlass icon indicating copy to clipboard operation
ImageGlass copied to clipboard

Do not disable "Scale to Fit" after a manual zoom

Open EricBCoding opened this issue 1 month ago • 2 comments

Windows OS version

Windows 11 24H2

ImageGlass version

v9.3.2.520

ImageGlass release

Classic

1️⃣ Describe the feature

"Scale to Fit" syncs image zoom level with the ImageGlass window size. However, if you turn on this feature and then manually zoom, it effectively disables "Scale to Fit" functionality. I would like it to persist through manual zoom commands.

This is easier for me to explain with a video:

https://github.com/user-attachments/assets/e685932d-fd97-479a-8ed9-9780053a882f

I would like the image to continue shrinking or expanding with the window even after the manual zoom change. I hope that makes sense. 😅

Programmatically, I would expect Scale to Fit to "kick back on" if the window is resized such that the image can no longer fit within the window.

2️⃣ How to use feature

I imagine it would be best to implement this as an option in Settings > Image or Settings > Viewer.

3️⃣ Additional context

N/A

EricBCoding avatar Nov 02 '25 22:11 EricBCoding

It's as designed; all zoom modes are not reset if a manual zoom happened: using mouse wheel, touchpad, pinch gesture, setting custom zoom... There is no setting to change this behavior now, but you can quickly reset the image size using Main menu > File > Refresh, or press R.

d2phap avatar Nov 08 '25 10:11 d2phap

Thank you for the workaround, @d2phap .

For what it's worth, the Windows Photos app sort of behaves in the manner I've described - here's a short video:

https://github.com/user-attachments/assets/240731ea-da1e-420c-b083-5ba0621226bc

The "autofit" behavior seems to persist through any action the user takes (i.e. zooming or resizing the window). I think replicating this in ImageGlass could help new users transition to your software. Either way, I love your program! 🙂

EricBCoding avatar Nov 18 '25 11:11 EricBCoding