Program a logical action

Posted on 2004-10-21
Last Modified: 2010-04-03
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?
Question by:DrDamnit
    LVL 4

    Accepted Solution

    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.
    LVL 4

    Expert Comment


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Lean Six Sigma Project Manager Certification

    There are many schools of thought around successful project management, but few as highly regarded as the Six Sigma and Lean methods. With 37 hours of learning, this training will explain concrete processes for increasing efficiency and limiting wasted time and effort.

    HOW TO CREATE A WEB 2.0 IMAGE WITH A REFLECTION I would like to start by saying I know Web 2.0 isn't a style. It is actually the practice of information sharing or  collaboration on the Web. It is also associated with the technology that is used …
    In this article, I'll explain how to change the color of a selection in Photoshop. I'm sure there are a couple different ways to do this in photoshop, but this is my preferred method in Photoshop. I am using Photoshop CS6 and I will be adjusting the…
    In this tutorial viewers will learn how to increase their history states in Photoshop To undo more than one history state, use Ctrl + Alt + Z, not just Ctrl + Z: View the History window by going to Window > History: The default number of history sta…
    In this Micro Tutorial viewers will learn how to remove an unwanted object using Photoshop’s feature known as content-aware fill.

    913 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now