Showcase and discover digital art at yex

Follow Design Stacks

Subscribe to our free newsletter to get all our latest tutorials and articles delivered directly to your inbox!

Automating Image Mergers in Photoshop CS2

Creating the action
In order to create our action, we’re simply going to do everything we did in the previous installment in this tutorial series, which you can read by clicking here. The difference is that while we’re doing it, we’re going to have our Actions palette open so that each step can be recorded for later using in a batch processing operation.

If you don’t want to know how to create your own actions for merging documents, be sure to skip forward to the last section in this article (“Bonus Download”) to download a set of seven complete preset actions.

The exact way you’ll create you action depends on the sort of document merging you want to perform. The method we discuss here and the options for each step assume you want to maintain the layer structure of all of the documents you merge. And it assumes you want to merge the documents into a single new image file.

Begin by creating a new document at the final desired dimensions for your project. Make sure it’s called “Untiltled 1” or some other name that you will use any time you run this batch process. For this procedure, the name must be consistent, or the batch won’t work properly. (The names of the individual documents that will be merged don’t matter.)

Then open up a sample document that contains multiple layers. It doesn’t really matter which document. We’re just using it for the creation of our action.

Now it’s time to create the action itself.

Open up you Actions palette. Create a new set by clicking the folder icon at the bottom of the Actions palette. I’ll name my set “Nagel Series 3 Actions (Merging),” since that’s the name of the set of actions I’m providing for download later on.

Action Palette

Then add a new action tot he set by clicking the new action button at the bottom of the Actions palette.

Action Palette

The action is now recording, and everything you do from this point on will be recorded in the action. So if you need to do something outside the scope of this action, be sure to pause the recording by hitting the Stop button at the bottom of the Actions palette.

Now all we need to do is work quickly through each step we want included in the action, which will involve creating a group out of our existing layers, and duplicating that group to the document entitled “Untitled 1.” (Remember, each of these steps is covered in detail in our previous tutorial, which you can read by clicking here in case you need additional information.)

1. Begin by typing Option-Command-A (Mac) or Alt-Control-A (Windows) to select all of the layers in the current document.

Action Palette

2. Now type Command-G (Mac) or Control-G (Windows) to create a new group from the layers you’ve selected. (You can skip this step, if you don’t want to use layer groups. You can also, instead, choose to merge the layers into a Smart Object by choosing Layer > Smart Objects > Group into New Smart Object.)

Action Palette

3. Then choose Layer > Duplicate Group. If you did not group your layers in Step 2, then choose Layer > Duplicate Layers instead. If you created a Smart Object from your layers in Step 2, choose Layer > Duplicate Layer now. In the dialog that pops up, set the target to “Untitled 1.”

Action Palette

4. Finally, close your image without saving. This adds the final step to your action, and you can now stop recording.

Action Palette

When you stop recording, you can then close Untitled 1 as well.

Batch processing with your new action
Now, the action we just created will allow us to open up multiple documents and merge them into a single new document automatically. Begin, once again, by creating a new document called “Untitled 1” that will be used as the target for the document merger. Set the document’s dimentsions and resolution to whatever you with to use for your final project.

You’re no wready to run your batch operation.

1. Choose File > Automate > Batch.

2. In the dialog that pops up, set the action to the one you just created. And also choose the folder where your source images reside. Do not set a destination folder, as you’re not saving any images; you’re just creating one new merged image, which you can save when the batch process is complete.

Batch Windows

3. Let the batch run its course. When it’s done, you’ll wind up with a document that contains all of the original documents, grouped neatly into their own little layer groups. In the example below, you see that I batch processed three separate images to merge them into a single image.

Layer palette

You will also note that all the groups have the same name. You can rename these by double-clicking the names in the Layers palette.

Now you can save your merged document, and you’re done.