"Fit image to window" in the settings menu doesn't work

*** Please report new bugs here! ***

Moderators: helmut, XnTriq, xnview, Dreamer

Post Reply
Jonni_5
Posts: 4
Joined: Sun Feb 19, 2023 6:29 pm

"Fit image to window" in the settings menu doesn't work

Post by Jonni_5 »

I've set the "Auto image size"-setting in Settings>View and Setting>Fullscreen to "Fit image to window, large only", but XnView ignores this when starting XView (for example by double clicking an image in the windows explorer), images are displayed 1:1 until I manually choose "Fit image to window, large only" in the view menu.

Version: 1.4.2, Windows
User avatar
xnview
Author of XnView
Posts: 46252
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: "Fit image to window" in the settings menu doesn't work

Post by xnview »

when you restart, the setting is correct?
Pierre.
User avatar
winnylinny
Posts: 167
Joined: Fri Apr 17, 2020 5:35 pm

Re: "Fit image to window" in the settings menu doesn't work

Post by winnylinny »

Are you using any scaling options in Windows?
Jonni_5
Posts: 4
Joined: Sun Feb 19, 2023 6:29 pm

Re: "Fit image to window" in the settings menu doesn't work

Post by Jonni_5 »

xnview wrote: Thu Mar 02, 2023 2:28 pm when you restart, the setting is correct?
No, that doesn't make any difference
winnylinny wrote: Thu Mar 02, 2023 4:03 pm Are you using any scaling options in Windows?
You mean the scaling in the windows display settings? Yes. But I deactivated them as a test, same behaviour

To clarify I added two screenshots, one of the settings and one of the view menu when I open up an image.
AutoImageSize01.png
AutoImageSize01.png (19.26 KiB) Viewed 975 times
AutoImageSize02.png
AutoImageSize02.png (17.04 KiB) Viewed 975 times
User avatar
xnview
Author of XnView
Posts: 46252
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: "Fit image to window" in the settings menu doesn't work

Post by xnview »

Jonni_5 wrote: Thu Mar 02, 2023 4:45 pm
xnview wrote: Thu Mar 02, 2023 2:28 pm when you restart, the setting is correct?
No, that doesn't make any difference
I means 'Settings>View-auto image size' is correct?
winnylinny wrote: Thu Mar 02, 2023 4:03 pm To clarify I added two screenshots, one of the settings and one of the view menu when I open up an image.
Really strange.

You start XnView, 'Settings>View-auto image size' is on 'Fit image to windows, large', click on a thumbnail to open a tab, and you have not the good value in 'View>Auto image size' menu?

I can't reproduce, could you send me your xnview.ini?
Pierre.
Jonni_5
Posts: 4
Joined: Sun Feb 19, 2023 6:29 pm

Re: "Fit image to window" in the settings menu doesn't work

Post by Jonni_5 »

xnview wrote: Thu Mar 02, 2023 5:05 pm I means 'Settings>View-auto image size' is correct?
It is correct in the settings menu, but not in the actual view mode when I open an image
xnview wrote: Thu Mar 02, 2023 5:05 pm You start XnView, 'Settings>View-auto image size' is on 'Fit image to windows, large', click on a thumbnail to open a tab, and you have not the good value in 'View>Auto image size' menu?
Exactly.

I attached the ini file.
Attachments
xnview.zip
(6.38 KiB) Downloaded 8 times
User avatar
xnview
Author of XnView
Posts: 46252
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: "Fit image to window" in the settings menu doesn't work

Post by xnview »

please uncheck 'lock zoom'
Pierre.
Jonni_5
Posts: 4
Joined: Sun Feb 19, 2023 6:29 pm

Re: "Fit image to window" in the settings menu doesn't work

Post by Jonni_5 »

xnview wrote: Sun Mar 05, 2023 8:24 am please uncheck 'lock zoom'
You're right, that did the trick.
Thank you!
Post Reply