Fit image to the largest square

Ideas for improvements and requests for new features in XnView Classic

Moderators: helmut, XnTriq, xnview

Post Reply
Konstantin
Posts: 8
Joined: Sun Dec 28, 2008 11:07 pm
Location: Argentina

Fit image to the largest square

Post by Konstantin »

Hi, this is my first post.

When viewing a series of images in fullscreen mode set to "Fit image to window, all", portrait images display much smaller than landscape images.

A solution is to display images in window mode and choose a square window. While this works it is not ideal: the title and menu bars remain visible (at least I did not find a way to hide them) and part of the desktop remains visible (which is distracting).

So my suggestion is to add a setting to the View options: "Fit image to the largest square".

Thanks for reading.
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Fit image to the largest square

Post by xnview »

So a mix of 'fit image to window width' & 'fit image to window height'??
Pierre.
Konstantin
Posts: 8
Joined: Sun Dec 28, 2008 11:07 pm
Location: Argentina

Post by Konstantin »

Yes, but in the sense that the largest dimension of the image made equal to the smallest dimension of the monitor.

Thanks for the prompt reply!
Dreamer
XnThusiast
Posts: 4608
Joined: Sun Jul 25, 2004 9:08 pm

Post by Dreamer »

Like this?

http://newsgroup.xnview.com/viewtopic.php?t=10774

One of the two suggestions from that topic?

- Fit width and height ( = fit in)
- Fit width or height ( = fit over)
Dreamer
Konstantin
Posts: 8
Joined: Sun Dec 28, 2008 11:07 pm
Location: Argentina

Post by Konstantin »

Dreamer wrote:Like this?

http://newsgroup.xnview.com/viewtopic.php?t=10774

One of the two suggestions from that topic?

- Fit width and height ( = fit in)
- Fit width or height ( = fit over)
No, what I mean is quite different. If I understood correctly, you propose to zoom images until there is no black border left. This implies the use of a different zoom value for different images and that usually part of the image is not visible.

What I propose is to use the same (highest possible) zoom value for all images. The implementation would be: take the longest side of the image and make it equal to the shortest side of the display.

The reason for this setting is to be able to view a series of photographs, part of them taken holding the camera horizontally and part vertically, in such a way that all the pictures have precisely the same magnification. (Actually, the magnification could change but only for pictures that are cropped modifying their height to width ratio).
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Post by xnview »

Konstantin wrote: What I propose is to use the same (highest possible) zoom value for all images. The implementation would be: take the longest side of the image and make it equal to the shortest side of the display.
So 'Fit to window width' if portrait, and 'Fit to window height' if paysage??
Pierre.
Konstantin
Posts: 8
Joined: Sun Dec 28, 2008 11:07 pm
Location: Argentina

Post by Konstantin »

xnview wrote: So 'Fit to window width' if portrait, and 'Fit to window height' if paysage??
No, what I propose is different.

If we consider a 4x3 image on a 16x9 display, "'Fit to window width' if portrait, and 'Fit to window height' if paysage" would mean that a portrait image is magnified a value proportional to 16/3=5.33 while a landscape image would be magnified a value proportional to 9/3=3. Furthermore, the portrait image would be cropped while the landscape image would fit entirely on the screen.

What I propose is to take the longest side of the image and make it equal to the shortest side of the display. In the above example this would mean that both the portrait and the landscape images would be magnified a value proportional to 9/4=2.25 and would fit entirely on the screen.

Thanks for the interest.
Post Reply