Fit image to window - does not work bug report

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

Moderators: helmut, XnTriq, xnview, Dreamer

Post Reply
cw2002
Posts: 21
Joined: Tue Jan 31, 2012 8:49 am

Fit image to window - does not work bug report

Post by cw2002 »

Fit image to window does not work at all, images are displayed 1:1 when opened

Tested:
permanent setting Auto image size 'Fit image to window'
permanent setting Auto image size 'Fit image to window, large only'
permanent setting Auto image size 'Last used' + temporary setting 'Fit image to window'
JPG, PNG

Can not comfirm this recent thread ist solved: view - auto image size not working [solved]
viewtopic.php?f=62&t=43627

XnView MP Windows Version 1.4.0 64bits (Dec 12 2022)
Windows 10 v 21H2 Build 19044.2364

Would be great to fix it, thanks.
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Fit image to window - does not work bug report

Post by xnview »

Do you change 'Settings>View - Auto image size'?
Pierre.
cw2002
Posts: 21
Joined: Tue Jan 31, 2012 8:49 am

Re: Fit image to window - does not work bug report

Post by cw2002 »

Yes, I changed Settings>View - Auto image size. This is what I meant with 'permanent' setting.
But it does not work, images are displayed 1:1 when opened.
The recent update to XnviewMP 1.4.3 did not make it better, so I came back to my post, to see - no action taken :(

The feature I need is 'fit image to window, large only'
This should be set permanent, also for the next/previous file.

Strangly it seems I am the only one who notices this problem.
Everything OK with your installation? Do you use this feature?
You are welcome to visit me with teamviewer, if you can not reproduce the bug.

The option "Reset 'Auto image size' setting with next/previous file" is UNchecked. What is the purpose of this option, by the way? I don't understand the wording and I have no imagination of the motiv. "Reset" back to which state? If 'Auto image size' is going to be reset for every new image, this is no automatic any more! Makes no sense for me, sorry I don't get it.

To tell a curiosity, I've been after the 'auto zoom' function for 22 years now:
Back in 2001, we emailed, no forum that time, and you fixed it ! :D

> Date: Wed, 29 Aug 2001 01:51:13 -0700 (PDT)
> From: "Christoph Wagner"
> Subject: XnView zoom ratio
> To: webmaster@xnview.com
>
> Hi Pierre,
>
> XnView is my favourit image viewer and I've been
> enjoying it for years. Recently I updated from 1.19
> to 2.21 and discovered:
>
> Symptom in 2.21:
> In main view (not in the browswer): When I have zoomed
> an image to a custom percentage and press the "next
> file" button, the next image is shown with the default
> zoom ratio (the zoom ratio of the previous image is
> not applied). In version 1.19 I achieved this effect
> by setting the option "fit image to window, all", in
> version 2.21 this option has a different effect.
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Fit image to window - does not work bug report

Post by xnview »

sorry but it works.
'Settings>View - Auto image size' => 'Fit image to window, large only'
In browser, i open an image, and the fit is correct

When opening an image, what do you have in 'View>Auto image size' menu?
Pierre.
cw2002
Posts: 21
Joined: Tue Jan 31, 2012 8:49 am

Re: Fit image to window - does not work bug report

Post by cw2002 »

I have 'no fit' in View - Auto image size,
even though the Tools - Settings - View - View - Auto image size is set to 'Fit image to window, large only'

Only, if I change to 'Fit image to window, large only'' in the viewer, it stays that way for the next/previous image, and for double-click on an image in the XNViewMP-browser. But it works only in the internal workflow, and only until the application is closed. On re-opening XNViewMP the tools-settings are ignored.

It does not work with Windows integration: When I double click on an image in Windows Explorer, even with XNViewMP already running and all setting properly made, both, the Auto image size setting in the Viewer and also the Auto image size setting in the tools-settings are ignored.

The expected behavour would be that the tools-settings get applied when ever the application ist launched, which implies that the tools-settings get copied to the Viewer settings (except if the tools-setting ist 'last used'). If the Viewer setting gets changed by the user further on, this shall overrule the tools-setting until the application is closed. When I double click on an image in Windows explorer, the standard application which is XNViewMP on my PC, is going to be launched or foregrounded and the image should be presented within XNViewMP with the view settings applied.
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Fit image to window - does not work bug report

Post by xnview »

cw2002 wrote: Thu Mar 02, 2023 12:24 pm I have 'no fit' in View - Auto image size,
even though the Tools - Settings - View - View - Auto image size is set to 'Fit image to window, large only'
I can't reproduce, could you send me your xnview.ini?
Pierre.
cw2002
Posts: 21
Joined: Tue Jan 31, 2012 8:49 am

Re: Fit image to window - does not work bug report

Post by cw2002 »

my xnview.ini attached
Last edited by cw2002 on Fri Mar 03, 2023 11:45 pm, edited 1 time in total.
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Fit image to window - does not work bug report

Post by xnview »

i found that you have 'locked zoom' so you need to uncheck it
Pierre.
cw2002
Posts: 21
Joined: Tue Jan 31, 2012 8:49 am

Re: Fit image to window - does not work bug report

Post by cw2002 »

True! Without zoom lock, Auto image size works well. Interacting features, no bug.
Thank you for your help :D

Finally, how is the 'Reset' auto image size option functioning? I found some earlier posts mentioning the reset option, but I could not figure out.
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Fit image to window - does not work bug report

Post by xnview »

cw2002 wrote: Sat Mar 04, 2023 12:43 am Finally, how is the 'Reset' auto image size option functioning? I found some earlier posts mentioning the reset option, but I could not figure out.
If you change in 'edit mode' the auto image size in menu, when prev/next image 'auto image size' need or not to be reset to 'settings>View>auto image size'
Pierre.
Post Reply