Resizing based on maximum width (keep aspect ratio)

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

Moderators: XnTriq, helmut, xnview

Post Reply
michelle
Posts: 7
Joined: Thu Aug 25, 2011 2:07 am

Resizing based on maximum width (keep aspect ratio)

Post by michelle »

Hi,

"Size the output file so that the width is no bigger than 1500pix. Keep the aspect ratio. Please." ...is what I want to tell Nconvert.

I thought there would be a "scale" option, but alas not from what I can find. Any suggestions? Thanks in advance, Michelle
Last edited by michelle on Thu Aug 25, 2011 6:46 am, edited 2 times in total.
michelle
Posts: 7
Joined: Thu Aug 25, 2011 2:07 am

Re: Resizing based on maximum width

Post by michelle »

oops! i posted to quick. i got it. for anyone interested in the answer it's in the use of the -ratio option.

nconvert -out png -ratio -resize 2000 0 convert-this.tif
Post Reply