Photo Credit Action
Now, let's say that I would like to have an action. Make a decision for me where I don't want the action toe always be the same. What I'm gonna do here is open to images. And what I'd like to do in these two images is I want to end up putting, let's say, a photo credit in the image. But if the image is square, I'd like the photo credit to be centered at the bottom of the image in If the photo is horizontal instead, I want to be in the lower right corner. Well, how do you do that in action? Because in action just repeats whatever it is you do. Well, here's how you do that. If I go to the actions panel first, I need to make my individual actions. So in this case, I'm not actually gonna go through the full process because I don't want to waste too much of your time. But what I'll do in this case is I'm gonna have a do antique color if the interest square and I'm gonna have it do that Contours, um, tracing if it's not square and therefore you'll see how it's done which you need to do is cr...
eate two separate actions, one that would be applied if it meets a particular condition in one that would apply instead if it doesn't meet that condition. So I'm gonna create a brand new action here, and I'm gonna call it Square versus wrecked meaning rectangle. I'm gonna hit record. And then I'm gonna go to the side menu of my actions panel and I'm gonna choose Ah, Joyce called insert Conditional. Now, when I choose insert conditional this top menu gives me all the choices I could use. These are all the questions I could have Photoshopped ask about this document to control how it deviates in applies one action versus another. And so right Here's a choice is document is square, So I'm gonna have a check of the document is square. And then if it is square, I'm gonna have it de saturate the edges or whatever one of these No, let's do antique color. If it's square and if it's not square, then it's gonna do what's down here now. I could leave that set to none in therefore, this action called antique color, would only apply if the document is square. And if it wasn't square, it would do nothing or I could add a separate step in my action right after it. That asked another condition. But for now, I'm gonna come over here and say that the contours action should be applied. If it's not square, I'm going to click, OK, and then I'll hit Stop. So Onley thing this action has is an if statement in that. If statement is saying, if it's square, play one action and if it's not, play another. So now I'm gonna apply it to this particular document now. I wasn't I haven't double check this document. I'm assuming it's square, but it might not be absolutely square. It could be like almost square, and so I'm not sure for certain it's going to work, but if it does, it's going apply the anti color action if it thinks that square it did not. What that means is, if I choose, undo enough times here. If I go to my image menu and I choose image size. If you look at this, it's not a perfect square, Do you see the two numbers are not identical, so I could crop this image and make it perfectly square. I might do that using the canvas size screen campus guys, either ad space or take space away to your image in here, I'll make sure that it's perfectly square. That's gonna crop out a little bit of my image. So now it should be exactly square. Now. When I hit play, I get my antique color action. If I switch to a different document, this one's rectangular I hit play on the same action, and I don't get the same result. Instead, I get the trace Contour action, and so that is a conditional. That's where you can ask a question about the image and dependent on the answer. It will use different settings, and these are the questions that could be analysed. Her asked to control which actions applied. So it could be that I haven't action that does things to see. And why can images It converts them to RGB in. So I could have this the first step in action be an if statement that says, if it seemed like a then play in action, where all does is converted to RGB and if it's not seem like a it does nothing. It just keeps the action continuing. Ah, and all sorts of other things, like when we had things were retouching out telephone lines. If I was able to make that as an action, when I talked about retouching, I said, It's best of it's done in 16 bit mode. Then if you have any other actions that would be best in that mode, the very beginning, the action put in a step that says Insert conditional and say If it's a bit, then just have a separate action where all that action does convert to 16 bit. And, um, then it would be if eight bet it runs an action that converts to if else said it to none and then just have additional steps in your action, which is what you truly wanted the action to accomplish. So it's only the beginning that would end up checking to see what mode it's in and would convert if needed. So that is called a conditional