Wednesday, December 9, 2009

Photoshop Automation in Action

This afternoon I’m working on re-sizing a folder with a decent amount of images in it.  There are too many images to go through, one-by-one and resize them according to the bosses’ desires.

So, with a little help from recorded actions and automation, I’m letting Photoshop CS3 handle them while I do this blog post.

So, for anyone interested, here is a little bit of information about my small project and the steps required to complete it.

Goal: Resize a large number of images to a square.

Hurdles:  The images are all different shapes and sizes.  Some need to be made taller, some need to be shrunk, some need to be widened, some need to be enlarged.

Step 1:  Separate images into two folders (wide and tall). 

Images that are taller than they are wide should be in the tall folder.  I did this manually.  I had 360 images to convert, so it wasn’t too hard and would have taken longer to find a solution.

Step 2:  Create the Action.

Go to the ‘Windows’ menu, and select ‘Actions’ from the drop down.  Once you have one of the TALL images you want to edit opened and in front of you, click on the little button on the bottom of the Actions panel that says “Create new action”.  Give the action a descriptive name and click ‘Record’.

Now to start the action that you would like to record.  Note that you may hit stop at any time if you need to do something that shouldn’t be recorded.  Conversely, note that all actions are recorded, and you should make sure not to perform any unnecessary actions while recording.

Select “Image Size” from the “Image” pull-down menu.  Since we’re working with the tall images, set the height of the image to the desired height of the finished image.  Click OK.

Now select “Canvas Size” from the “Image” pull-down menu.  Set the width to the desired width of the finished image, and click ok.

Go to the “File” menu, and select “Save As”.  Here you may want to select a new folder to put the resized images in, so that you don’t overwrite the original copy.  Select the folder in which you want to save the image, and click “Save”. 

Last, close the image.  (if you don’t do this step, the process will end with every single image still open).  Now at the bottom of the Actions window, click Stop Recording.

Step 3:  Run the Batch

From the “File” menu, highlight “Automate”, and select “Batch” from the submenu. 

On the Action menu, select the Action that you just created in the previous step.  For Source, make sure Folder is selected, and then click “Choose” to find the folder containing the TALL images (or whichever images you’re getting ready to resize).

For Destination, select Folder, and then choose the desired destination.  (best to do this in a new folder to not overwrite the originals) 

Under Errors, select “Log Errors to File”, and then click “Save As” to choose a place to put the file.  Name it something recognizable.  This file is handy if a batch does not work right.

Click OK, and watch the magic happen.  The images should be resized by the computer right in front of your eyes.

 

After this batch is done, you’ll want to repeat the process, creating an Action that will make the images wider first, and then heighten the canvas size (reverse of what we just went through).

There are a lot of options we didn’t go through here, but today’s project was a pretty basic one.

No comments:

Post a Comment