"Fit Image to Width or Height" not doing what is expected

Bugs which have been reproduced by a second user or the developer, or features to do

Moderators: XnTriq, helmut, xnview, Dreamer

Tapio
Posts: 55
Joined: Fri Oct 05, 2018 11:36 am

"Fit Image to Width or Height" not doing what is expected

Post by Tapio »

Hi Pierre,

Let's say I have those hypothetical numbers:

Screen: 1500x1000
Picture: 2000x2000

What I want is to fit the picture into screen with no black borders. So ideally horizontally it presses the picture into the 1500px width and crops parts at top and bottom.

"Fit Image to Width or Height" will fit the image completely into the screen, so black borders are left and right. EXACTLY THE SAME as "Fit image to window".

IMO it should be like this:
"Fit Image to Width OR Height" - No borders, Fill screen, part of a too long side can fall out of screen.
"Fit Image to Width AND Height" - Fit it completely

There is currently no way to "Fill" the screen (as in the Windows Wallpaper options).

I hope I'm not wrong.
User avatar
xnview
Author of XnView
Posts: 44470
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: "Fit Image to Width or Height" not doing what is expected

Post by xnview »

like 'Fit image to windows width'?
Pierre.
Tapio
Posts: 55
Joined: Fri Oct 05, 2018 11:36 am

Re: "Fit Image to Width or Height" not doing what is expected

Post by Tapio »

xnview wrote: Wed Mar 01, 2023 4:25 pmlike 'Fit image to windows width'?
Yes, but this does not "fill" screen in case the width is much bigger than height. Example. Picture: 2000x500. "Fit image to windows width" will leave borders on top and bottom.

Currently we have no automatic detection, that's the point.
User avatar
xnview
Author of XnView
Posts: 44470
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: "Fit Image to Width or Height" not doing what is expected

Post by xnview »

ok, so "Fill Image to Width/Height' need to be added
Pierre.
Tapio
Posts: 55
Joined: Fri Oct 05, 2018 11:36 am

Re: "Fit Image to Width or Height" not doing what is expected

Post by Tapio »

xnview wrote: Thu Mar 02, 2023 2:36 pmok, so "Fill Image to Width/Height' need to be added
Absolutely - and please have a look at the Windows terminology in your (french?) Windows 10 - I think they just use very easy to understand words.
You do not have the required permissions to view the files attached to this post.