Let’s say for example we have taken some photos for a client and processed them into .tif images. We want to send the client a quick proof, but the images are over 20MB, so too big to send over email. We need to reduce the size of the images. Let’s get started by opening one of the larger images.
With one of our images open we head to the Actions palette. You can get to this via Window > Actions. We want to create a new action. Give your action a name and then hit ok. You will see the red record button is now on, meaning that anything you do in Photoshop now will be recorded.
Resize the image by heading to Image > Image Size. I’m resizing my image to a width of 600 pixels wide. Then Save the Image for the Web by going to File > Save for Web and Devices. Choose a different folder to save the optimised file into than your originals. When saved close the original image and then click Stop on your action.
Now you have your action we can use it to automate an entire folder of image. To do this go to File > Automate > Batch.
On the options you want to select your Action under Play - Action (pick the one you have just created). Then under Source choose Folder and then select your Source folder. Then you should be all set. Click OK and it will start to run through each of the images in your folder! Magic.
If you feel you’ve missed something watch the video. If you’d like the HD version you’ll have to watch it on Vimeo.
Batch resizing in Photoshop from George Ornbo on Vimeo.
Have an update or suggestion for this article? You can edit it here and send me a pull request.
Using HashiCorp Vault with LDAP
How to use HashiCorp Vault to setup an LDAP backed secret store with read-only access for users in groups and read-write access for specific users
Linux and Unix xargs command tutorial with examples
Tutorial on using xargs, a UNIX and Linux command for building and executing command lines from standard input. Examples of cutting by character, byte position, cutting based on delimiter and how to modify the output delimiter.
Copy a file in Go
How to copy a file in Go. The ioutil package does not offer a shorthand way of copying a file. Instead the os package should be used.