Skip to main content
Known Participant
May 25, 2023
質問

How to automate to segregate landscape and portrait images separately

  • May 25, 2023
  • 返信数 1.
  • 634 ビュー

There is a folder with sub-folder that is full of images. Sub-folders have portrait and landscape images.

Can anyone suggest how I can automate to segregate landscape and portrait images separately using actions/scrips?

I want to keep the folder structure the same as the source folder

このトピックへの返信は締め切られました。

返信数 1

Inspiring
May 25, 2023

Make 3 actions:

- segregate

- landscape

- portrait

Insert a conditional step in the segregate action as shown here:

have it run landscape if landscape and else run portrait.

 

 

then run the action on the folder while having "process sub folders" checked. Bob's your uncle. 🙂

raeen作成者
Known Participant
May 26, 2023

Thanks Uncle Bob,

Unfortunately, I am not able to understand what you are suggesting. Should I first create 3 independent actions—

  1. Segregate
  2. Landscape
  3. Portrait

If yes, can you please tell me what action should I record in them?

After creating these 3, I should make another action comprising all these 3.

Finally, I should use the Image Processor command to batch process the whole process? Am I right?

 

If not, it would be great to me help, if you could just give me action jsx file and I will highly appreciate your effort for kind help

Stephen Marsh
Community Expert
Community Expert
May 26, 2023

@raeen 

 

Always create a new Action Set. Save the Action Set/s to .atn file.

 

Actions added to the Default Actions Set will eventually be lost as it is designed to reload/replace itself to restore the factory default actions. This is not the Set to create new Actions, except for temporary ones that you are OK with losing.

 

The Segregate action will contain the inserted conditional action step for either Landscape or Portrait orientation. It will then call/run one of the two other actions.

 

The Portrait and Landscape actions will contain separate processing steps for each orientation.

 

An example form a different recent discussion, the Portrait step isn't shown: