hellosiyan / Viewnior

Elegant Image Viewer
https://siyanpanayotov.com/project/viewnior/
GNU General Public License v3.0
319 stars 55 forks source link

Feature request: Recenter window when image changes #103

Closed elman22 closed 3 years ago

elman22 commented 3 years ago

Hi. Would it be possible to recenter window when image changes? Because now it works that first image is opened centered, but when I switch to next image, which is much smaller, window is resized in such manner, that upper left corner is fixed and window is resized. So window makes quite a large jump and I have to visually scan more of the screen which kinda lowers user experience.

So if I view pictures which have varied sizes, I think it would be more reasonable to always recenter screen (or use center point of previous picture as reference for window resize).

hellosiyan commented 3 years ago

The behavior you describe is active only when the "Adjust window size" setting under 'View" is checked. If you don't want the window to jump around, disable that setting - then images will always be fitted and centered within the window and the window will stay centered in place. You can also maximize the window - then you will see images in their full size, centered.

Having "Adjust window size" together with centering the window is quite tricky to implement, and I think it's not worth the time. Please try one of the alternatives above.

elman22 commented 3 years ago

I already tried all the other options, but none of them suits me. I kinda got used to resizing and centering long time ago with old ACDSee. Recently I discovered qView which does what I look for, but doesn't work correctly with 4K scaled displays.

Anyways, thanks for considering.