Auto Image Size: "Fit window to image" only for single image view. XV should remember previous Gallery View window size

Older bugs which are supposed to be fixed in 0.84. *** Please try to reproduce your bug and confirm the bug fix. ***

Moderators: XnTriq, helmut, xnview, Dreamer

tobwz
Posts: 31
Joined: Fri Dec 25, 2020 11:42 am

Auto Image Size: "Fit window to image" only for single image view. XV should remember previous Gallery View window size

Post by tobwz »

Assume I am currently in Gallery view.
The current folder contains multiple images. Among them

aaa.jpg 80x80
bbb.jpg ....
....

I setup in settings--->View--->Auto-Image size=Fit windows to image
Reset 'Auto image size' settings with next/previous file=YES


Now I double click on aaa.jpg thumbnail.
XnView windows shrinks according to the image dimensions of aaa.jpg to a
windows size 80x80 and shows the small image.
Good

Now I double click on the shown 80x80 image aaa.jpg to return back to Gallery View.
Much to my surprise the XnView window size remains at 80x80.
Hence the Gallery view is unusable and users have to resize the window manually.
Very unhandy.

How can I tell XnViewMP to remember its previous default size for Gallery View and use it when
user returns to Gallery View?

In other words:
Auto-Image size=Fit windows to image
should only be applied to single image view mode but not to Gallery View mode.

I guess this is a bug which needs to fixed in next release
User avatar
xnview
Author of XnView
Posts: 43833
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Auto Image Size: "Fit window to image" only for single image view. XV should remember previous Gallery View window s

Post by xnview »

'Fit windows to image' is experimental, there is some issues
Pierre.
tobwz
Posts: 31
Joined: Fri Dec 25, 2020 11:42 am

Re: Auto Image Size: "Fit window to image" only for single image view. XV should remember previous Gallery View window s

Post by tobwz »

There are some heavy bugs in this function. It is at most in pre-alpha state.

This is surprising since in XnView classic this feature is working good.

When will XnViewMP catch up to XnView classic?
User avatar
xnview
Author of XnView
Posts: 43833
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Auto Image Size: "Fit window to image" only for single image view. XV should remember previous Gallery View window s

Post by xnview »

is it possible to send you a test version?
Pierre.
tobwz
Posts: 31
Joined: Fri Dec 25, 2020 11:42 am

Re: Auto Image Size: "Fit window to image" only for single image view. XV should remember previous Gallery View window s

Post by tobwz »

xnview wrote: Thu Feb 29, 2024 3:37 pm is it possible to send you a test version?
Yes, no problem.
You have my email?
User avatar
xnview
Author of XnView
Posts: 43833
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Auto Image Size: "Fit window to image" only for single image view. XV should remember previous Gallery View window s

Post by xnview »

tobwz wrote: Thu Feb 29, 2024 5:14 pm Yes, no problem.
You have my email?
PM sent
Pierre.
tobwz
Posts: 31
Joined: Fri Dec 25, 2020 11:42 am

Re: Auto Image Size: "Fit window to image" only for single image view. XV should remember previous Gallery View window s

Post by tobwz »

Observations:

1.) XnViewMP test version restores the OUTER window dimensions after reverting to Gallery View. Good.
Bad: it does NOT restore the vertical delimiter boundary position between the treeview pane on the left and the gallery pane on the right.

2.) When I double click in single image view onto the current image then XnViewMP reverts to the gallery view: Good
Bad: When I press ESC in single image view onto the current images XnViewMP show the next/previous image instead of returning to Gallery view
ESC should be equivalent to double click

3.) When I double click in Gallery view on a very, very long (=high) images (e.g. > 20000 pixel height) then XnViewMP tries to show the full image in window.
At this point XnViewMP should be smarter. Instead of a function

"Fit window to larger dimension of (current) image"

it should perform a

"Fit window to smaller dimension of (current) image"

So when the image has a dimension of e.g. 1680x20000 pixels then XnViewMP should adjust the windows WIDTH to 1680 pixels and show only the upper
part of the image. The lower part of the image should be made viewable by either

a) vertical scroll bar (second best)
b) by dragging the image inside the window upwards (highly preferred at least as an option; I hate scrollbars)
User avatar
xnview
Author of XnView
Posts: 43833
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Auto Image Size: "Fit window to image" only for single image view. XV should remember previous Gallery View window s

Post by xnview »

tobwz wrote: Fri Mar 01, 2024 3:34 pm 1.) XnViewMP test version restores the OUTER window dimensions after reverting to Gallery View. Good.
Bad: it does NOT restore the vertical delimiter boundary position between the treeview pane on the left and the gallery pane on the right.
could you post a screenshot of your layout?
2.) When I double click in single image view onto the current image then XnViewMP reverts to the gallery view: Good
Bad: When I press ESC in single image view onto the current images XnViewMP show the next/previous image instead of returning to Gallery view
ESC should be equivalent to double click
it was always like that, ESC close current tab and previous tab is enabled
3.) When I double click in Gallery view on a very, very long (=high) images (e.g. > 20000 pixel height) then XnViewMP tries to show the full image in window.
At this point XnViewMP should be smarter. Instead of a function

"Fit window to larger dimension of (current) image"

it should perform a

"Fit window to smaller dimension of (current) image"

So when the image has a dimension of e.g. 1680x20000 pixels then XnViewMP should adjust the windows WIDTH to 1680 pixels and show only the upper
part of the image. The lower part of the image should be made viewable by either

a) vertical scroll bar (second best)
b) by dragging the image inside the window upwards (highly preferred at least as an option; I hate scrollbars)
ok
Pierre.
tobwz
Posts: 31
Joined: Fri Dec 25, 2020 11:42 am

Re: Auto Image Size: "Fit window to image" only for single image view. XV should remember previous Gallery View window s

Post by tobwz »

See here before and after:
before.png
after.png
You do not have the required permissions to view the files attached to this post.
User avatar
xnview
Author of XnView
Posts: 43833
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Auto Image Size: "Fit window to image" only for single image view. XV should remember previous Gallery View window s

Post by xnview »

ok, PM sent
Pierre.
tobwz
Posts: 31
Joined: Fri Dec 25, 2020 11:42 am

Re: Auto Image Size: "Fit window to image" only for single image view. XV should remember previous Gallery View window s

Post by tobwz »

Problem number 1 seems to be solved.

Number 2+3 are still unsolved
User avatar
xnview
Author of XnView
Posts: 43833
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Auto Image Size: "Fit window to image" only for single image view. XV should remember previous Gallery View window s

Post by xnview »

tobwz wrote: Tue Mar 05, 2024 6:28 am Number 2+3 are still unsolved
2) is not a problem.
3) So you would like to stay in 100%, right?
Pierre.
tobwz
Posts: 31
Joined: Fri Dec 25, 2020 11:42 am

Re: Auto Image Size: "Fit window to image" only for single image view. XV should remember previous Gallery View window s

Post by tobwz »

xnview wrote: Tue Mar 05, 2024 8:15 am
tobwz wrote: Tue Mar 05, 2024 6:28 am Number 2+3 are still unsolved
2) is not a problem.
3) So you would like to stay in 100%, right?
2.) How can I re-assign hotkey <ESC> in single image view to be equivalent to double click?
3.) Yes 100%
User avatar
xnview
Author of XnView
Posts: 43833
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Auto Image Size: "Fit window to image" only for single image view. XV should remember previous Gallery View window s

Post by xnview »

tobwz wrote: Tue Mar 05, 2024 8:27 am 2.) How can I re-assign hotkey <ESC> in single image view to be equivalent to double click?
currently not possible to reassign ESC. But if you have only 2 tabs, ESC closes the current and returns to browser
3.) Yes 100%
PM sent
Pierre.
tobwz
Posts: 31
Joined: Fri Dec 25, 2020 11:42 am

Re: Auto Image Size: "Fit window to image" only for single image view. XV should remember previous Gallery View window s

Post by tobwz »

Bad.

A 1451 x 21565 image is shown like in the attached snapshot.

We agreed that the the image is shown in 100%
But this is not the case
bad.png
You do not have the required permissions to view the files attached to this post.