How to batch rotate image to make them all landscape?

All we need is an easy explanation of the problem, so here it is.

I have a thousand of pictures of the same fixed scene, but for an unknown reason some of them are vertical, not horizontal.

So I would like to batch process all the images and rotate them 90° if the width is smaller than the height of the image.

I tried to play with the “Action” and the “Batch process” feature, but I did not find where I can add conditional to my scripts.

How to solve :

I know you bored from this bug, So we are here to help you! Take a deep breath and look at the explanation of your problem. We have many solutions to this problem, But we recommend you to use the first method because it is tested & true method that will 100% work for you.

Method 1

You can put a Conditional step in an action: use the Insert Conditional... command in the Actions flyout menu:

enter image description here

So first create an action to rotate and save a document. Then create an action with a condition. There’s a rule If Current Document Is Landscape

enter image description here

so Then Play Action will remain None and Else Play Action will be your rotate & save action.

Method 2

Easier solution:

  • Use Bridge, which has a filter for orientation.
  • Drop the images into a folder, click the ‘portrait’ filter, which selects every portrait image in your folder, then the rotate tool at the top.
  • Done.

enter image description here

Note: Use and implement method 1 because this method fully tested our system.
Thank you 🙂

All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply