Skip to main content
Known Participant
March 11, 2017
Answered

Batch resize ... how to

  • March 11, 2017
  • 1 reply
  • 13455 views

I have several hundred images to resize. Some arein landscape format others are in portrait.

Earlier, in older versions, I was able to resize to a max width and max height and just keep the aspect ratio. Not so anymore???

I have tried the Batch function - but it does not have any resize function, only things like vignette, frame, reflection, sepia etc.

I also looked into the Fit Image function, but then I need all images open, which is not possible with 500 20MP images.

I have read all the posts I could find on this, but none seems to fit, because the just suggest using the resize function from the drop down in Batch, which is not in my program (CC).

How do I do it

This topic has been closed for replies.
Correct answer John Waller

PoulT  wrote

I don't see why I need to set both width and height.

As I wrote I have both portrait and landscape images, and I don't want them to have the same width. Using such a setting will either stretch or compress half the images.

To use it I would have to separate the two formats before resizing - and that's crazy as I have more than 1000 images.

I want to set a max width and a max heigth,

n that way I can resize landscape images to width=1000 and portrait images to height=1000 without affecting the aspect ratio.

That's what setting the height and width parameters in the Image Processor > Resize to fit does. It's a maximum setting, not an absolute.

Height and width set the dimension of the longest edge (max width and max height). You need to set both so the script knows what to do in both portrait and landscape scenarios. It uses one or the other dimension, whichever comes first, depending on portrait or landscape, never both. Aspect ratio is preserved.

1 reply

Trevor.Dennis
Community Expert
Community Expert
March 11, 2017

Are you using File > Scripts > Image Processor ?

Otherwise ​irfanview​ does the job.

PoulTAuthor
Known Participant
March 12, 2017

Thanks Trevor, I already tried that - and of course it works.... except in my case.

I don't see why I need to set both width and height.

As I wrote I have both portrait and landscape images, and I don't want them to have the same width. Using such a setting will either stretch or compress half the images.

To use it I would have to separate the two formats before resizing - and that's crazy as I have more than 1000 images.

I want to set a max width and a max heigth,

n that way I can resize landscape images to width=1000 and portrait images to height=1000 without affecting the aspect ratio.

I guess that Irfanview can do it, but it seems ridiculous to have to install it, when I have a professional image editing program, that should be able to do it easily (and as said, in an earlier version it WAS possible).

PoulTAuthor
Known Participant
March 13, 2017

PoulT  wrote

I don't see why I need to set both width and height.

As I wrote I have both portrait and landscape images, and I don't want them to have the same width. Using such a setting will either stretch or compress half the images.

To use it I would have to separate the two formats before resizing - and that's crazy as I have more than 1000 images.

I want to set a max width and a max heigth,

n that way I can resize landscape images to width=1000 and portrait images to height=1000 without affecting the aspect ratio.

That's what setting the height and width parameters in the Image Processor > Resize to fit does. It's a maximum setting, not an absolute.

Height and width set the dimension of the longest edge (max width and max height). You need to set both so the script knows what to do in both portrait and landscape scenarios. It uses one or the other dimension, whichever comes first, depending on portrait or landscape, never both. Aspect ratio is preserved.


haha - you're right.

I find the explanation so misleading that I concluded that it would stretch or squeesze the image and force it to fit in a 1000px square.

But it does just as I want it to.

Thanks