Page 1 of 1

How to resize a jpg file by longest side?

Posted: Tue Mar 05, 2013 7:39 am
by cnzjxu
Hi guys!

I need some help here about the -resize function of nconvert.

Here is the result I want:

resize several photos according to a given value of the longest side, e.g. 3000 pixel, neither the width nor the height, but the longest side. (coz both landscapes and portraits are included)

I've tried the Xnconvert, there are some certain options in the "Actions" tab which allow me to set a value for the longest side during the batch convertion, but if i use the "export for nconvert" funtion, the .bat file that generated dose not work at all. the content of the generated bat file is like this:

nconvert -ratio -rtype lanczos -resize 3000%%%% 0%%%%

And I really need to use nconvert under the command line mode,

So, what should I do??

Thanks a lot

I'm using the 6.33 version of nconvert

Re: [ NEED HELP ] How to resize a jpg file by longest side??

Posted: Wed Mar 06, 2013 8:32 am
by xnview
Ok, nconvert doesn't support longest/shortest side, i'll add it