Using Batch


The Batch command is one of Photoshop's most powerful features. It's conceptually very simple. You point it at a batch of images, it runs an action on them, it (optionally) renames the images, and then it does one of the following:

  • Saves new files

  • Delivers open images in Photoshop

  • Saves and closes, overwriting the source files

As you'll see shortly, though, the devil is in the details, and some of the details in the Batch dialog box are distinctly counterintuitive. To open the Batch dialog box from within Photoshop, choose Batch from the Automate submenu (in the File menu). To batch process files from within Bridge, select the images you want to process and then choose Batch from the Photoshop submenu (in Bridge's Tools menu). Figure 11-78 shows the Batch dialog box before customizing any of the settings.

Figure 11-78. The Batch dialog box


The dialog box is split into four different sections, each of which controls a different aspect of the batch process's behavior.

  • Play lets you choose an action from an action set that will be applied to all the images. Note that we discuss actions and how to create them in more detail later in this chapter, as well as in Chapter 12, Essential Image Techniques.

  • Source lets you choose the images on which the batch will be executed, and also lets you pick some very important options which we'll explore in a moment. Your choices from this menu are: a folder full of images (click the Choose button to choose the specific folder); the currently open files; images imported through the Photoshop File menu's Import command; orwhen running Batch from within Bridgeon the images that are currently selected in Bridge. For raw images, the source will invariably be a folder or the selected images in Bridge.

  • Destination lets you control what happens to the processed images. Choose None to leave them open in Photoshop after processing. To save the changed files and close them, choose Save and Close (more on this soon); Folder lets you designate a folder in which to save the processed images. This section also includes the same renaming features offered by Batch Rename.

    When you process raw images, you'll always choose either None or, much more commonly, Folder. Save and Close often ends up being a "hurt-me" button, because its normal behavior is to overwrite the source image. With raw files this is usually impossible and always undesirable. Photoshop can't overwrite files in formats it can't write, including most raw image formats; but if you use a camera that records its raw images as .tif, there's a real danger of overwriting your raws if you choose Save and Closeso avoid it!

  • Errors lets you choose whether to stop the entire batch when an error is encountered or log the errors to a file. We usually stop on errors when we're debugging an action used in Batch and log them to a file when we're actually running a batch in a production situation. However, when processing raw files, the batch typically either works on all files or fails on all files.

Rules for Batching Files

The difficulties that users typically encounter in running Batch are in the way the selections in the Source and Destination sections interact with the action applied by the batch operation. Here are The Rules. (Note: these are our rules, and we swear by them. They don't represent the only possible approach, but by the time you're sufficiently skilled and knowledgeable to violate them with impunity you'll have long outgrown the need for a book like this one!)

Rules for opening files

To make sure that the raw files get opened and processed the way you want them in a batch operation, you need to record an Open step in the action. In the case of raw images, you'll want to make sure that Camera Raw's Settings menu is set to Image Settings so that it applies the custom-tailored Camera Raw settings you've made for each image, and you'll also want to make sure that Camera Raw's workflow settingsSpace, Bit Depth, Size, and Resolutionare set to produce the results you want.

Now comes one of the counterintuitive bits. If you record an Open step in the action, you must turn on the Override Action Open Commands option in the Batch dialog box. If you don't, the batch will simply keep opening the image you used to record the Open step in the action. Override Action Open Commands doesn't override everything in the recorded Open command; it just overrides the specific choice of file to open, while ensuring that the Selected Image and workflow settings get honored.

Some people find this set of behaviors so frustrating and counterintuitive that they latch onto the fact that you can run Batch using an action that doesn't contain an Open step and hence doesn't require messing around with the checkbox. The problem with doing so is that you lose control over Camera Raw's workflow settingsthe batch will just use the last-used settings. So you may expect a folder full of 6,144 by 4,096-pixel images and get 1,536 by 1,024-pixel ones instead, or wind up with 8-bit sRGB instead of 16-bit ProPhoto RGB. If you simply follow The Rules, you have complete control over the workflow settings.

Rules for saving files

To make sure that the processed files get saved in the format you want, you need to record a Save step in the action that will be applied in Batch. This Save step dictates the file format (such as TIFF, JPEG, or PSD) and options that go with that format (TIFF compression options, JPEG quality settings, and so on).

Now comes the second counterintuitive bit. You must turn on the option labeled Override Action "Save As" Commands in the Batch dialog boxotherwise the files don't get saved where you want them, don't get saved with the names you want, or possibly even don't get saved at all! When you turn on this option, the file format and file format parameters recorder in the action's Save step are applied when saving the file, but the name and destination are overridden by the options you specify in the Batch dialog box.

Rules for running a batch operation

Two other settings commonly trip people up. Unless you turn on the Suppress File Open Options Dialogs checkbox, the Camera Raw dialog box pops up whenever the batch opens a file, and waits for you to do something. Turning on this option just opens the image directly, bypassing the Camera Raw dialog box. The Camera Raw settings for each image are used, but the batch operation isn't interrupted by the appearance of the dialog box.

If the workflow settings recorded in the action result in an image in a color space other than your Photoshop working space, you should also turn on the Suppress Color Profile Warnings checkbox; otherwise the batch may get interrupted by the Profile Mismatch warning. The day always gets off to a bad start when you find that the batch operation you'd set up to generate 2,000 Web-ready JPEGs overnight is stalled on the first image with a warning telling you that the file is sRGB when your working space is ProPhoto RGB! (This feature didn't work in Photoshop CS. Fortunately, it's fixed in Photoshop CS2 and now works as advertised.)

Playing by The Rules

If you follow this relatively simple set of rules, your batch operations won't fall prey to any of these ills, and they'll execute smoothly with no surprises. If you fail to do so, it's very likely that your computer will labor mightily and then deliver either results that are something other than you desired or, even more frustrating, no results at all!

So with The Rules in mind, let's look first at creating some actions and then at applying them through the Batch command.




Real World Adobe Photoshop CS2(c) Industrial-Strength Production Techniques
Real World Adobe Photoshop CS2: Industrial-strength Production Techniques
ISBN: B000N7B9T6
EAN: N/A
Year: 2006
Pages: 220
Authors: Bruce Fraser

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net