scaling to the shorter side

Ideas for improvements and requests for new features in XnView Classic

Moderators: XnTriq, xnview

Post Reply
scw2wi
Posts: 26
Joined: Fri Jul 06, 2007 10:41 am
Contact:

scaling to the shorter side

Post by scw2wi » Fri Jul 06, 2007 11:29 am

After testing this software now for some days, I found, it's the best viewer for my needs (many thanks to the team).

What I like:
+: fast loading of pictures
+: Thumbnails are used consequently
+: very good slide-show
+: IPTC support

What I don't like: nothing (except, that I didn't find this software earlier)

My wishes for new development steps are just:
It shall stay a fast image viewer, with a lot of features, but not overloaded.

One very small enhancement request:
I can scale pictures with XnView in many ways (alos to the larger side),
but I cannot scale pictures to the smaler side.
This is the only reason, why I still need irfanView.

What I mean is: I have cropped pictures in different sizes like:
2000x3000; 2000x2500; 2000x3500; 1500x1500; 1500x3000

When I like to develop these fotos, I need to scale them all to the smaler side (e.g. to 1000 pixel):
1000x1500; 1000x1250; 1000x1750; 1000x1000; 1000x2000

I didn't find any setting in XnView, where I can batch-scale like this.
I hope, this could be implemented in one of the next versions.

Walter

User avatar
xnview
Author of XnView
Posts: 29891
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: scaling to the shorter side

Post by xnview » Thu Jul 19, 2007 1:54 pm

scw2wi wrote: One very small enhancement request:
I can scale pictures with XnView in many ways (alos to the larger side),
but I cannot scale pictures to the smaler side.
This is the only reason, why I still need irfanView.

What I mean is: I have cropped pictures in different sizes like:
2000x3000; 2000x2500; 2000x3500; 1500x1500; 1500x3000

When I like to develop these fotos, I need to scale them all to the smaler side (e.g. to 1000 pixel):
1000x1500; 1000x1250; 1000x1750; 1000x1000; 1000x2000

I didn't find any setting in XnView, where I can batch-scale like this.
I hope, this could be implemented in one of the next versions.
No you can, do you use the orientation flag?
Pierre.

scw2wi
Posts: 26
Joined: Fri Jul 06, 2007 10:41 am
Contact:

Post by scw2wi » Fri Jul 20, 2007 6:16 am

Yes, my Nikon D200 Camera is setting the orientation flag,
and XnView is showing my NEFs and JPEGs with the correct orientation.
(This is also a very big advantage of XnView!)

What settings shall I use to scale my pictures to the smaler side?
Walter

User avatar
xnview
Author of XnView
Posts: 29891
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Post by xnview » Fri Jul 20, 2007 6:57 am

scw2wi wrote:Yes, my Nikon D200 Camera is setting the orientation flag,
and XnView is showing my NEFs and JPEGs with the correct orientation.
(This is also a very big advantage of XnView!)

What settings shall I use to scale my pictures to the smaler side?
Sorry i mean, do you use 'Follow orientation'?
Pierre.

scw2wi
Posts: 26
Joined: Fri Jul 06, 2007 10:41 am
Contact:

Post by scw2wi » Fri Jul 20, 2007 7:35 am

Yes, also this checkbox is active.
It works fine, if the pictures are not cropped.
But I don't know, what settings shall I use, when I have different formats like:

3000x2000; 2000x2500

and want to scale these pictures to the shorter side:

1500x1000; 1000x1250

If I set width = 1000 and 'Follow orientation' (which is default activated), this is the result:
1000x667; 1000x1250

If I set height = 1000 and 'Follow orientation', this is the result:
1500x1000; 800x1000

In these cases the result is independent of the flag 'Follow orientation'.
Walter

scw2wi
Posts: 26
Joined: Fri Jul 06, 2007 10:41 am
Contact:

Post by scw2wi » Fri Jul 20, 2007 8:20 am

I have found a solution that works:

setting width to the needed value: e.g. 1000
setting hight to a very large value: e.g. 9999

checkbox: 'Follow orientation' is set.

This is exactly what I was searching for,
now I can deinstall all other picture viewer.

Many thanks for your help.
Walter

marsh
XnThusiast
Posts: 2443
Joined: Sun May 15, 2005 6:31 am

Post by marsh » Fri Jul 20, 2007 8:58 am

scw2wi wrote:Yes, also this checkbox is active.
It works fine, if the pictures are not cropped.
But I don't know, what settings shall I use, when I have different formats like:

3000x2000; 2000x2500

and want to scale these pictures to the shorter side:

1500x1000; 1000x1250
These options should recreate suggested results:
[x]Follow orientation
[x]Keep Ratio
[x]Fit Over (W or H)
Width input[1000]
Height input[1000]
2000x2500_original.jpg>>>>>1000x1250_result.jpg
3000x2000_original.jpg>>>>>1500x1000_result.jpg

Conversely:
[x]Follow orientation
[x]Keep Ratio
[ ]Fit Over (W or H)
Width input[1000]
Height input[1000]
2000x2500_original.jpg>>>>>800x1000_result.jpg
3000x2000_original.jpg>>>>>1000x666_result.jpg
scw2wi wrote: setting hight to a very large value: e.g. 9999
... could have unpredictable results. I wouldn't use it like that. ;)

scw2wi
Posts: 26
Joined: Fri Jul 06, 2007 10:41 am
Contact:

Post by scw2wi » Fri Jul 20, 2007 10:34 am

Yes, now it's working perfect.

The german translation of "Fit Over" to "Einpassen" is a little bit confusing.
"Einpassen" means "Fit In" and thats the opposite of "Fit Over".

I don't know a good german translation for "Fit Over", I would say:
"Scale to longer side" / "Auf längere Seite skalieren" and
"Scale to shorter side" / "Auf kürzere Seite skalieren".

Another solution would be, to call the checkbox "Fit In" / "Einpassen",
and invert the logic of checked/unchecked in the code.

I found a thread, where this translation was discussed already.
http://newsgroup.xnview.com/viewtopic.php?p=49898
Walter

scw2wi
Posts: 26
Joined: Fri Jul 06, 2007 10:41 am
Contact:

Post by scw2wi » Fri Nov 14, 2008 9:02 pm

I am using the flag "Fit over" now in XnView to scale to the shorter side.

e.g. my pictures with 2592 x 3872
are scaled to 1536 x nnnn (n may be 2294 or anything else, depending on the ratio)

My question is: How can I scale to the shorter side by using NConvert?

I am using this command at the moment:
NConvert -ratio -resize 1536 1536 -rtype lanczos -sharpen 40 *.jpg

But the pictures gets only scaled to the longer side: 1028 x 1536
Is there any switch in NConvert that works like "Fit over" in XnView?
Walter

Post Reply