resize depending on picture size

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

Moderators: helmut, XnTriq, xnview

Post Reply
xntest
Posts: 43
Joined: Mon Feb 26, 2007 11:07 pm

resize depending on picture size

Post by xntest »

Hello


Is it possible to resize a picture (jpg) depending on its size?


I would like to resize pictures which are not smaller or equal than 2000x1500 pixel.

Can I test the picture size with nconvert?


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

Re: resize depending on picture size

Post by xnview »

Check the -rflag
Pierre.
xntest
Posts: 43
Joined: Mon Feb 26, 2007 11:07 pm

Post by xntest »

Thanks, it works.

But now I figure out that my problem is more difficulty.


I have pictures which are mostly 4000x3000 (landscape) and 3000x4000 (upright format). The target size should be 2000x1500 or 1500x2000 respectively.

So I think I have to use the resize faktor in percent. Can I tell nconvert to resize 50% but not smaller than one side would be 1500 pixel?


Sorry for my english
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Post by xnview »

try -rflag orient
Pierre.
Post Reply