Page 1 of 1

Fit image to the largest square

Posted: Sun Dec 28, 2008 11:23 pm
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.

Re: Fit image to the largest square

Posted: Mon Dec 29, 2008 2:47 pm
by xnview
So a mix of 'fit image to window width' & 'fit image to window height'??

Posted: Mon Dec 29, 2008 5:52 pm
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!

Posted: Mon Dec 29, 2008 11:18 pm
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)

Posted: Tue Dec 30, 2008 12:56 pm
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).

Posted: Mon Jan 05, 2009 1:12 pm
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??

Posted: Mon Jan 05, 2009 2:14 pm
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.