Here is the final gallery folder after we created the big and small images and the html pages for the images: gallery.zip
Today we are going to look at ways to use Photoshop to process a batch of images at once. We will use that to make thumbnails and larger images out of a set of 5 images. Then we will modify the supplied html files to make a quick gallery.
In the zip file below are the original images and starter index.html file.
Creating an Action to Crop Images to a Specific Size
Open an Image
It is important that you do this BEFORE you start your Action. Otherwise it will be part of the Action.
Open the Actions Window
It will look something like this
Optionally you can create a set
Give the Set a Name
This name is not great. It’s better to make sets based on the kind of actions you want to put in them. For what we’re doing you might name it Crop and Resize or somethign similar.
Click the Create New Action Icon
Set the Action Information
- Give the Action a Name. It should be descriptive. We’re going to make a 150×150 pixel square, hence the name
- Choose which set you want to store the action in
- Click the Record Button to start recording
- Optionally you can assign a keyboard shortcut to the action. Only use this if you know you will use it alot and be careful not to conflict with other shortcuts.
The Action should be recording
You will see a red dot. EVERYTHING you do from now until you click to stop the action will be recorded.
Choose the Automate > Fit Image
This makes sure our image fits within a given set of dimensions.
Choose Your Dimensions
We are going to choose something a bit larger than our target of 150×150 so that our result will be cropped slightly. That can help to make sure details in the image don’t get too small looking when we make the thumbnail.
Click OK when you’re done
Your image should be resized
Check the Action Recording is working
What you did should have been recorded in the action.
Select Image > Canvas Size
Set your Dimensions
In this case we are choosing 150×150
Adobe Photoshop will give you a warning that you are clipping (cropping) the image
You now have a square image
Choose Save As (not Save for Web)
Save As will make the process easier later
Save it as a JPEG file
You can choose other types if yo need but usually it will be a jpeg
For small images quality of 4-6 is usually ok, you can try different ones out.
This is important. Make sure you do it now.
Make sure you have a destination folder for your images.
Automate a Batch Process
Set the Batch Options
- Make sure to choose your set
- Choose your action
- Choose the folder where the originals are
- Choose the folder you want the new images to go
- Set the document name. More on that later
- Click OK
You can add differnt components to the name.
- What the filename will look like shows up here
- Make sure to choose extension from the dropdown as the last thing you choose