Photoshop batch processing
What will we create
We will create a Photoshop operation that changes the length of our images to 1000 pixels, and then apply this operation to multiple images at the same time. Photoshop automation features such as operations and batch processing have been available for a long time, so you can complete the lesson in Photoshop CS3 and newer versions:
Images for Processing Distressed Paint Overlays for Your Graphics
First, create a new document with a size of 2000 by 1500 pixels. This will give us a workspace for creating an operation for batch processing photos in Photoshop.
Go to the Window> Actions menu (Window> Actions) to open the operations panel. Click on the icon in the form of the “Create New Set” folder at the bottom of the operation panel and name the set “Resizing Actions”. You can move sets and operations on the panel by clicking and dragging them:
Click on the created set to select it. We will create our operation inside this set in order to save it for future use. You cannot save operations outside of Photoshop and open them on another computer if they are not in the set.
Click on the “Create New Action” button and name the operation “1000PX Wide” (“Width 1000 pixels”):
Click “Record” to start recording your operation in this batch photo processing program. Everything you do now will be recorded operationally for later use in batch processing. Go to Image> Image Size and set the width to 1000 pixels. Make sure that the checkboxes next to the “Scale Styles”, “Preserve Proportion”, and “Interpolation” (Resample Image) boxes are checked.
Set the resampling pop-up menu to “Bicubic Automatic”. Click OK. Do not worry about adjusting the size of the document, since the operation records the values only for the fields with labels, the width value that we changed, and the resampling settings in the drop-down menu:
Now we need to save our image in the operation that we are recording. In another case, we would not write the Save As command in the operation, but batch processing requires this in order to export the correct file type. Go to File> Save As and save the blank document as JPEG. Check the “Embed Color Profile” box. Click “Save”.
It doesn’t matter where you save the image during the recording of the operation, because we will determine the destination folder where the image package will be saved later, but you must click the “Save” button to determine the type of file in the operation for batch processing Photoshop photos:
Go back to the operation panel and click on the “Stop” icon. Our operation is ready! See the sequence of steps for resizing the image and saving that we performed? Everything is simple:
Go to File> Automation> Batch Processing to open the batch processing window. Select “Resizing Actions” from the “Set” drop-down menu and “1000PX Wide” from the “Actions” menu:
Click “Choose” under “Source: Folder” and select the Distressed Paint Overlays folder where you saved it. We will resize these images:
Leave the “Ignore Override Action“ Open ”Commands field unchecked because we did not open any files during the recording of our operation. The field “Include All Subfolders” should also be left unchecked, since there are no subfolders in the stock package that we use.
The fields “Suppress File Open Options Dialogs” and “Suppress Color Management System Warnings” should be checked so as not to confirm parameter changes for each image in the package.
Most JPEG images will have a built-in sRGB color profile, which is Photoshop’s working RGB by default, so there should be no color management warnings in any case. If the image does not have a built-in profile, Photoshop can set the sRGB working profile for it. It is important that during batch processing of photographs there are no pop-up dialog boxes, otherwise all automation goals will fail:
Create a new folder on your desktop. Name it Batch Process Images Resized. Go back and in the batch processing window in Photoshop set it as the destination folder. Make sure the Override Action Save As Commands box is checked:
Select File Naming Template for your exported images. For now, we can focus on the default template. Make sure the compatibility fields for Windows and Mac OS are checked. From the Errors drop-down menu, select Stop for Errors:
Click OK in the batch processing dialog box. Images will open, their width will change to 1000 pixels, and they will be saved right before your eyes.