Batch resizing depending on image W/H ratio

Ask for help and post your question on how to use XnView Classic.

Moderators: helmut, XnTriq, xnview

Post Reply
biomechanic
Posts: 3
Joined: Wed Jun 16, 2010 8:28 am

Batch resizing depending on image W/H ratio

Post by biomechanic »

I've got a bunch of random sized pictures that need to be made into 128x96 thumbnails by first resizing the shorter dimension to 128px if it is width, or 96px if height, and then canvas resising the other one to 96(h) or 128(w).

Are there setting in the batch processing that would do that?

(I've played a bit with various resize options but without success)
User avatar
xnview
Author of XnView
Posts: 46620
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Batch resizing depending on image W/H ratio

Post by xnview »

Do you have tried to use 'follow orientation'?
Pierre.
biomechanic
Posts: 3
Joined: Wed Jun 16, 2010 8:28 am

Re: Batch resizing depending on image W/H ratio

Post by biomechanic »

Yes, I tried that, but it doesn't do what I need, which is:
1) find out which dimension is shortest (width/height),
2) resize the image so that this dimension is either 128px (width) or 96px (height).

To get the final result (128x96px thumbnail):
3) canvas resize the longer dimension to 128px (width, if height was shorter) or 96px (height, if width was shorter).
User avatar
xnview
Author of XnView
Posts: 46620
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Batch resizing depending on image W/H ratio

Post by xnview »

biomechanic wrote:Yes, I tried that, but it doesn't do what I need, which is:
1) find out which dimension is shortest (width/height),
2) resize the image so that this dimension is either 128px (width) or 96px (height).

To get the final result (128x96px thumbnail):
3) canvas resize the longer dimension to 128px (width, if height was shorter) or 96px (height, if width was shorter).
Here i can only suggest you to use XnViewMP batch convert
Pierre.
biomechanic
Posts: 3
Joined: Wed Jun 16, 2010 8:28 am

Re: Batch resizing depending on image W/H ratio

Post by biomechanic »

Thanks.
Post Reply