Program a logical action

I have an action that I would like to program (record), but there is a step where I need to test to see whether the graphic is a landscape (width > height) or a portrait (height > width), and then according to which one it is, size, change the canvas size, and save. How do I do this?
LVL 32
Who is Participating?
Gal_ateaConnect With a Mentor Commented:
If you search for "Record Action" in Photoshop help there are two sections that I think would be helpful to you.
One is "Inserting Stops" you can insert stops in photoshop and you can decide what to do whether to continue or to stop the rest of the action from completing, then you can run a second action that does the rest of the process for the ones that you chose to stop.
The other section is "Inserting Conditionals" --which is only available in ImageReady, in that you can choose whether to continue with an action depending on the aspect ratio.
All Courses

From novice to tech pro — start learning today.