Create Your Own Time-Saving Photoshop Actions

If you get into a daily design routine with all of your projects, chances are that you’ve already developed your own custom workflow. You likely have repetitive tasks that you need to perform each day. It could be website maintenance, adding images, resizing them, adding certain filters or settings to photos, etc. If you are constantly doing the same repetitive tasks over and over again, you should save time and record repetitive tasks as Photoshop actions. Then, all you have to do is run that action and with one click, an image is instantly transformed. This will save you a huge amount of time, because Photoshop can process these common tasks much more quickly as automated actions.

Recording Your Photoshop Actions

It isn’t difficult to record your own Photoshop action. I suggest that you write down the steps ahead of time to get the results that you want. This will make it less likely that you’ll make a mistake and have to start over again. The beautiful thing about creating your own actions is that it records each step that you perform and not the time that it takes you to do each one. This is great for recording actions because you can take your time and concentrate on doing each step in the right order.

Photoshop Actions Sample Image

Practical Uses For Photoshop Actions

For my blog, I need my images and screenshots to be 600px wide. This is fairly common for most blogs. However, the list of articles on the homepage needs to be proportionally 450px tall. I use actions to resize my images quickly. Portrait (vertical) images can be any height, because I don’t use those as my feature images, so the action that I have recorded for portrait images simply resizes the width to 600px, and that is it. However, I had to record a separate action for landscape (horizontal) images. I still have the width set to 600px, but the height is set to 450px via the canvas size setting, so if the image isn’t tall enough, Photoshop adds white canvas space at the top and bottom. I haven’t had to manually resize my photos since.

Creating Photoshop Actions

Download the example image here. The image is of an office, which is something that I might use for one of my articles. The image is 3348px wide, which is way too big for an average blog’s content area. Normally, we would just go to “Image” > “Image Size” and set the width to 600px. This is fine to do, but what if you had 15, 20, or 500 images? Having an action for this is much easier, and you can even assign a hotkey to the action to make it even more automated. Go to “Window” > “Actions”  and the Actions panel will come up.

Photoshop Actions Panel

Click on the icon that looks like a new layer icon and a dialog box will come up. Be sure to name your action something that makes sense. I just use the practical method of naming it something that tells me what it is or what it does. In the example below, I named our action “Width 600px,” and put it in the Actions Set called “Default Actions.” This is the default Actions folder for Photoshop Actions. If you are going to create of Actions related to each other, then it might be a good idea to create a new set of actions and save them in a separate folder. You can also assign a function key to each Action. To keep it from conflicting with Photoshop’s other keyboard shortcuts, you can add the Shift key, the Command key, or both.

Photoshop Actions New Action

The icons at the bottom work just like a normal music player. The square button is for stop, the circle is for record, and the triangle is for play. When you are ready to record your action, click the circle icon, and it will turn red, which means recording is active. For our action, I hit Command/Ctrl + Alt/Option + “I” to bring up image size, and set the width to 600px.

Photoshop Actions Image Size

The height is only 400px, which isn’t tall enough for my needs. This will cause content to shift and won’t work for my formatting, so I need to make the height 450px tall after the width has been set to 600px. To do this, I will bring up Canvas Size by hitting Command/Ctrl + Alt/Option + “C”. Where the height says 400px, I change that value to 450. Whatever the background color swatch is will end up being the canvas color at the top and bottom. When I am finished creating my action, I hit the square “Stop” button.

Photoshop Actions Canvas Size

Photoshop will save your Action for later, making this really easy to use when you need it. Now, all I have to do is open an image and hit Command + F8 to size my landscape images accordingly.

CS6: Photoshop Conditional Actions

Just when you thought that actions couldn’t get any better, Adobe sets the bar another step higher. Now in Photoshop CS6, you can set conditional Photoshop actions. In my example, I created an action for setting the width to 600px and then setting the canvas size to 450px. Well, what if my image is portrait? I’d have to use a different Action for that one. Since it doesn’t matter what the height of the image is, as long as it is 600px wide, we’ll use the same method used above to record this action without adjusting the canvas size. Next, click the flyout menu. Make sure the Action that you’d just created for the width being 600px wide (without the canvas height adjustment) is selected. Click on “Insert Conditional.”

Photoshop Actions Conditional Photoshop Actions

You can tell your Photoshop Actions to behave one way if the target image is landscape and another if it isn’t. We will use our two actions together in this single conditional Action. If the image is landscape, make sure that it is 600px wide and at least 450px high. If it isn’t landscape, all you need to do is make it 600px wide. Click “OK”, and Photoshop will update the first action with an “if” statement.

Photoshop Actions Consitional Actions

I downloaded the image below here. I ran the conditional Action via its hotkey, and this portrait image was resized without being chopped down to a 450px height. After checking to make sure it worked, I renamed the Action as “Width 600px Conditional.” To rename an Action, just double-click its name within the Actions Panel.

Photoshop Actions Portrait

The Beauty of Conditional Photoshop Actions

Now it is possible to run conditional Photoshop Actions as batches, too. Instead of having to run a separate batch for portrait and landscape images, they can all be dumped into a folder and resized via a Photoshop Batch. To run a batch, go to “File” > “Automate” > “Batch.”

Photoshop Actions Batch

Choose the set that your Action belongs to and choose the conditional Photoshop Action that you just created. Choose the source folder where your collection of images are located. Then, choose a destination folder for your processed files to go into. I usually just create a folder inside of the original folder called “processed.” At the bottom, it says “stop for errors”. When I ran this batch, I kept getting a message that the if condition wasn’t available, but it still ran the batch anyway. I just had to click the button telling it to proceed. If you want to avoid this, tell Photoshop to log errors to a file. If you do this, the files that had errors will have to be saved manually to the destination folder. To me, it is much less of a headache to hit Enter/Return a few times than to have to manually save multiple images.

Conclusion

Photoshop Actions are an incredible tool for creating time-saving shortcuts for repetitive tasks. If you have a repetitive task that takes multiple steps, it is easy to just record it once and then have it available as a hotkey. If you have a folder full of images you can run a batch, taking a half an hour of manual work and tuning it into just a minute or two of work can save you tremendous amounts of time in the long term. With the addition of conditional Photoshop Actions, we can now save even more time by telling Photoshop to look for certain parameters. There are other conditions besides the landscape format, such as being square, RGB, being an unsaved document, and more.

What do you use Photoshop Actions for? Have you tried out the new conditional Photoshop Actions feature? How much time do you think it could save you?

Free book: Jump Start HTML5 Basics

Grab a free copy of one our latest ebooks! Packed with hints and tips on HTML5's most powerful new features.

  • piterson

    I downloaded the image below here. I ran the conditional Action via its hotkey, and this portrait image was resized without being chopped down to a 450px height. After checking to make sure it worked, I renamed the Action as “Width 600px Conditional.” To rename an Action, just double-​​​​​​click its name within the Actions 1Panel.

  • Lee Fairbanks

    Instead of making an action for Portrait and then one for Landscape, use the built in action under

    File/Automate/Fit Image

    It can be added into an action and will resize images regardless whether they are portrait of landscape; it will adjust the size according to whether the image is landscape or the opposite.

  • Bill

    Great article!

    I would also suggest considerable value in saving a copy of your actions onto an external drive or disc should you ever loose function due to a crash. In fact, a written “key” of each action with a brief description of what it is meant to do, wouldn’t be a bad suggestion either.