Toggeling between fit to window and 100%

Ideas for improvements and requests for new features in XnView Classic

Moderators: helmut, XnTriq, xnview

wolfgangbeyer
Posts: 23
Joined: Sun Jun 10, 2007 12:48 pm
Location: Munich
Contact:

Toggeling between fit to window and 100%

Post by wolfgangbeyer »

Hi,

Me and I think most other users often like to toggle in the image view mode between fitting the image to window and zoom 100% for analysing. I think this is one of the most frequent actions at all. I like to suggest to define the "Z" key for toggling between these two zoom values. The existing keys "/" and "*" for that are very cumbersome to bear in mind and very inconvenient. One single key just for toggling is much faster (in a german keyboard even the shift key is necessary for both). And finally it would perfectly complete the set of existing toggling keys "Enter" and "F" for navigation between the most important views and modes.

If the actual image neither fits into the window nor zoom is 100% I would suggest the "Z" key fitting the image into the window (large only, otherwise 100%). This way "Z" would provide a comfortable reset to the usual default zoom value for instance after manual changing the zoom factor.

This way XnView would become more perfect as it already actually is ;-).
Wolfgang Beyer
www.wolfgangbeyer.de
Dreamer
XnThusiast
Posts: 4608
Joined: Sun Jul 25, 2004 9:08 pm

Post by Dreamer »

FAQ: How to change, or/and create new keyboard shortcuts

You must use Commands list as command and numbers of commands for * and / as parameters.

If you need more help, just ask. ;)
Dreamer
User avatar
Clo
XnThusiast
Posts: 4441
Joined: Sun Oct 17, 2004 4:57 am
Location: Bordeaux, France
Contact:

NumPad

Post by Clo »

—> wolfgangbeyer

:) Hello !

• The keys “/” and “*” of the numeric pad work the same…

- Moreover, they are located beside one other (at least here) and don't need any modifier…

:mrgreen: VG
Claude
Clo
Old user ON SELECTIVE STRIKE till further notice
wolfgangbeyer
Posts: 23
Joined: Sun Jun 10, 2007 12:48 pm
Location: Munich
Contact:

Post by wolfgangbeyer »

Hi Dreamer, I noticed this FAQ already before I made this suggestion. But I had the impression that this way it is only possible to replace some hotkeys by others. This would not offer the possibility to define the toggling key with the properties as I described. Therefore I made my suggestion.

Hi Claude, this is a solution for a PC but not for laptops. I don't know if many people even on a PC find this solution especially those who never use the num pad like me for instance. I overlooked "/" and "*" on the numeric pad, because the symbols on the keys look different like ".|." turned by 90° and a cross like "X". For me your answer is fine because I have a PC and no laptop, Thank you ;-).
Wolfgang Beyer
www.wolfgangbeyer.de
AlterMann
Posts: 16
Joined: Fri May 25, 2007 11:42 pm

Post by AlterMann »

I agree. Most used zoom modes are 100% and Fit to window. So maybe there should be a toolbar button command for this toggle function.
Dreamer
XnThusiast
Posts: 4608
Joined: Sun Jul 25, 2004 9:08 pm

Post by Dreamer »

I have suggested also a mouse shortcut to toggle between these, currently there is one useful shortcut, but it's only "fit image to window" - right button+left button (and vice versa).
Dreamer
wolfgangbeyer
Posts: 23
Joined: Sun Jun 10, 2007 12:48 pm
Location: Munich
Contact:

Post by wolfgangbeyer »

I just found an additional drawback of the keys "/" and "*" for "fit to window" and 100% respectively: In case of large images, 100% corresponds with a magnification relative to "fit to window", and in this case the keys "/" and "*" makes sense. But for small images where 100% is smaller than "fit to window" these 2 keys are rather confusing because they seem to cause the opposite effect.

<b>So we have 2 arguments for a key like Z</b> (as "Zoom") for toggeling between 100% and "fit to window":
1.: "/" and "*" are inconvenient for laptops without numeric pad.
2.: "/" and "*" seem to work in opposite way for small images.

By the way: I also miss a button in the toolbar for "fit to window" (There is obviously no "cmd_FitToWindow"). There is only one for 100% (cmd_Zoom100).
Wolfgang Beyer
www.wolfgangbeyer.de
User avatar
oops66
XnThusiast
Posts: 2005
Joined: Tue Jul 17, 2007 1:17 am
Location: France

Post by oops66 »

Toggeling between fit to window and 100%zoom is a good idea (only one button in the toolbar), and/or an associated shortkey.
User avatar
JohnFredC
XnThusiast
Posts: 2010
Joined: Wed Mar 17, 2004 8:33 pm
Location: Sarasota Florida

Post by JohnFredC »

I really like the way FastStone does this: just press and hold the left mouse button to instantly see the image at 100%. Moving the mouse scrolls the image. Releasing the mouse button returns to "fit to window".

This behavior becomes second nature immediately.

However, it might be difficult to enable it AND simultaneously support all the other mouse modes/behaviors we are accustomed to in XnView.
John
User avatar
oops66
XnThusiast
Posts: 2005
Joined: Tue Jul 17, 2007 1:17 am
Location: France

Post by oops66 »

Me too, I prefert the Fastone zoom behavior !
Its is more "Natural"

But Xnview is better for the others stuffs... can add vidéo files and is more "customisable"... - it's the best.

"However, it might be difficult to enable it AND simultaneously support all the other mouse modes/behaviors we are accustomed to in XnView."

I know, but nothing is impossible !
Dreamer
XnThusiast
Posts: 4608
Joined: Sun Jul 25, 2004 9:08 pm

Post by Dreamer »

oops66 wrote:"However, it might be difficult to enable it AND simultaneously support all the other mouse modes/behaviors we are accustomed to in XnView."

I know, but nothing is impossible !
Right, but there are too many mouse modes, shortcuts...

I think the mouse shortcut (right+left button) to toggle Fit to window / 100% would be even better - especially with the other mouse shortcuts. These mouse shortcuts are available:

Previous/next image / Scroll / Zoom (customizable) - wheel
Fit image to window, large only - LMB+RMB *
Fit image to window, large only - RMB+LMB *
Lock zoom - LMB+MMB
Lock zoom - RMB+MMB
Zoom + / - - LMB+wheel
Zoom + / - - RMB+wheel

LMB = left mouse button
MMB = middle mouse button
RMB = right mouse button
wheel = mouse wheel

* this one should be changed to toggle Fit to window / 100%
Dreamer
User avatar
oops66
XnThusiast
Posts: 2005
Joined: Tue Jul 17, 2007 1:17 am
Location: France

Post by oops66 »

Why not !
But using keys mouse like : Zoom + / - - RMB+wheel is not natural too.

May be the best way is to add an option case in the config menu to enable zoom behavior like "faststone" OR zoom behavior like "previus version of Xnview" . ( to skip a part of the Xnview program mouse config ) ?
Dreamer
XnThusiast
Posts: 4608
Joined: Sun Jul 25, 2004 9:08 pm

Post by Dreamer »

RMB+LMB is very easy to use, almost as LMB only, and you don't have to hold left button all the time, RMB+wheel is just a plus - custom zoom.

Of course, both alternatives might be implemented, if possible, as option.
Dreamer
User avatar
oops66
XnThusiast
Posts: 2005
Joined: Tue Jul 17, 2007 1:17 am
Location: France

Post by oops66 »

"RMB+LMB is very easy to use, almost as LMB only, and you don't have to hold left button all the time, RMB+wheel is just a plus - custom zoom."

In this case you are right !
But ergonomics functions must be always implemented when it is possible for usuals tools.
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Post by xnview »

JohnFredC wrote:I really like the way FastStone does this: just press and hold the left mouse button to instantly see the image at 100%. Moving the mouse scrolls the image. Releasing the mouse button returns to "fit to window".
So an option to have this feature in fullscreen with LMB?
Pierre.
Post Reply