How to resize a jpg file by longest side?

Discussions on NConvert - the command line tool for image conversion and manipulation

Moderators: XnTriq, helmut, xnview

cnzjxu
Posts: 2
Joined: Tue Mar 05, 2013 7:15 am

How to resize a jpg file by longest side?

Post 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
User avatar
xnview
Author of XnView
Posts: 43853
Joined: Mon Oct 13, 2003 7:31 am
Location: France

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

Post by xnview »

Ok, nconvert doesn't support longest/shortest side, i'll add it
Pierre.