resize lower dimension ( W or H )

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

Moderators: helmut, XnTriq, xnview

Post Reply
User avatar
froggy
Posts: 5
Joined: Wed Mar 25, 2009 7:36 am
Location: Toulouse

resize lower dimension ( W or H )

Post by froggy »

Hi , all

i didn't found a similar script on the forum so i take my chance.

what i have : jpg with dimension:
5184 x 3456
or
3456 x 5184

what i want : : jpg with 3000px on lower size and keeping ratio ie :

4500 x 3000
or
3000 x 4500

actually i use this :

Code: Select all

nconvert -overwrite -out jpeg -ratio -rtype lanczos -rflag decr -resize 3000 0 IMG*
but obviously, it works only for image with 5184 x 3456 orientation

if someone could give me a hand with this,

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

Re: resize lower dimension ( W or H )

Post by xnview »

Do you have tried

Code: Select all

-rflag orient
Pierre.
Post Reply