Skip to main content
Known Participant
July 1, 2017
Question

Batch Image Resizing with Recognition of Portrait or Landscape

  • July 1, 2017
  • 1 reply
  • 5354 views

Hi everyone, new to scripting but do understand PS batch images and resize. What I am looking for is a script or action that will see the image as either portrait or landscape short or long and based on that resize the image to either 500 pixels short side if the image is portrait or 500 pixels long side if the image is landscape. Is this possible as so far I have not been able to get it to work via PS scripts or Mac Automator. Thanks in advance for the help.

Al

This topic has been closed for replies.

1 reply

SuperMerlin
Inspiring
July 1, 2017

What you need to use is "Fit Image"

File - Automate - Fit Image

Video on how to use... Resize ANY Image with “Fit Image” in Photoshop CC - YouTube

Known Participant
July 1, 2017

Thanks but unfortunately that will not work as it always resizes the longest length. I need an action recognize the orientation of the image and then resize the shortest length to 500 pixels if the image is portrait and resize the longest length to 500 pixels if the image is landscape.

SuperMerlin
Inspiring
July 1, 2017

No it doesn't, the two figures that you supply it are max width and max height, it will then constain within those figures.

It is akin to make sure it will allways fit into a set size frame.

Also, Image Processor, Image Processor Pro and Picture Processor will all do this.