I used to use a third party application to batch resize images as a certain size is required to display properly on my personal blog. Anyhow I use Adobe Photoshop to manipulate images in many other ways and wanted to see if it would do the same batch resizing which would require one less application to be installed. Sure enough Photoshop does a great job of batch resizing images to any set sizes you prefer.
**NOTE** After writing this article I discovered a different way to resize images that is actually much easier. I wrote a new article located here describing the method which utilizes the Photoshop Image Processor.
In the example scenario below I resize images based on height and width maximum size settings. The width cannot be larger than 640 pixels and the height cannot be greater than 480 pixels. Follow the instructions below to set up a batch resize action followed by automating the batch resize of numerous images at the same time.
- Open Photoshop:Launch Adobe Photoshop CS4 from the start menu.
- Open an Image: Open a test image to setup the action with.
- Display Actions Window:Select Window from the top navigation menu in Photoshop and choose Actions from the drop down which will display a window similar to the below image.
- Create New Action: Now click the “Create new action” button in the Actions window as shown below in the image.
Once you click the “Create new action” button a new window will pop up asking for details about the actions as shown below.
Enter a name for the action and then click the Record button. Please note that after you click the Record button that all movements in Photoshop will be recorded so only follow the steps below to set up the batch image resize.
- Resize Image:Now we will resize the image we initially opened. Click the Image link in the top navigation and choose Image Size from the drop down which will open the Image Size configuration window as displayed below. Modify the image height to 640 pixels and click OK.
- Pause Action Recording: Now we are going to stop the action recording while we set the image back to the original size to then modify the height. Click the stop button in the Actions window.
- Undo Image Size: Select the image we have been working with, click Edit from the top navigation menu, and then select Undo from the drop down menu which will set the image back to the original size.
- Start Recording Again: Click the Record button in the Actions window to begin recording again.
- Resize Image Height: Now do exactly what was done in step 5 but modify the height this time. So select Image from the top navigation and select Image Size from the drop down. Change the Height to 480 pixels.
- Save GIF Image: Now we want to save the image for the web as a GIF. Select File from the top navigation menu and select “Save for Web & Devices” from the drop down menu which will open the “Save for Web & Devices” configuration window as shown below in the image.
Make any necessary modifications and save the image to the folder where you want batch resized images to be saved.
- Stop Recording: Click the Stop button in the Actions window to stop recording the action.
- Open Batch Window: Select File from the top navigation menu and choose Automate from the drop down. In the pop out window select Batch as shown in the below image.
Once you click on Batch it will open the Batch configuration window as shown below which is where you will set up the Batch job to use the action you created.
Make sure to select the correct action and the proper folders. Make sure to check the “Override Action ‘Save As’ Commands” option since we already have a save command in the Batch Action.
- Start Batch Action: Click the OK button in the Batch window and the Batch Action will start immediately.
- Verify Images Resized:Now open the folder where the images were saved and verify a copy of the image with the proper deminisions has been saved into it.