Resizing images is essentially one of the most crucial aspects of an editing process. And for some, it is a repetitive task every single day. Although resizing an image on macOS can be done using the built-in image editor, Preview, it’s still a painstaking task that consumes some time (especially when you need to resize multiple images) and gets annoying over time when you have to go through the process on a fairly regular basis.
Luckily, macOS has a built-in app called Automator, which allows users to automate tasks by creating ‘workflows’ using a simple drag and drop interface. With this app, users can script their own actions or let the’s Mac perform the daily mundane tasks for them. So let’s dive in and create a service to resize images on Mac.
Steps to create an image resizing service
1. First, launch the Automator app by going into Finder > Applications > Automator, or opening Launchpad and then searching for Automator.
2. On the next screen, click ‘New Document’, select ‘Quick Action’ on the following screen, and hit ‘Choose’.
3. Now, on the right pane, beside the ‘Workflow receives current’ option, select ‘image files’.
4. Next, on the left pane, select ‘Actions’ tab and in the search bar (next to Variables), search for ‘Get Specified Finder Items’ and drag it to the workflow area on the right.
5. Now, search for ‘Scale Images’ again in the search bar and drag it below the previous item.
6. The Automator app will prompt you to ‘add a Copy Finder Items action so that the copies are changed and your originals are preserved’. Click ‘Don’t Add’. You can opt for this option, but to keep this workflow simple, we are not going to add it.
7. Next, under the ‘Scale Images’ item, click on the drop-down to change the size by percentage or in pixels, and then, add the value that you want to resize your images to.
8. Now, save the file using command + s or by going to the app menu > File > Save and enter the name in the pop-up menu. For future references, let’s call the file ‘Resize Image’.
You now have a service to resize images for you.
But how do you run it?
Well, it’s as easy as a few clicks.
Say you want to resize an image. With the service that we just created, all that you need to do is go to the folder where the image is stored, select and right click on the image, and at the bottom, select ‘Services’ > Resize Image (the name you gave to the service). Additionally, you can also use this service to resize multiple images in one go.
You should now have a resized image with the size that you specified earlier.
Feeling lazy? Want to avoid those clicks?
Well, you’re lucky!
macOS allows users to create custom shortcuts for performing various actions across the operating system. So let’s create one for the service that we just created.
Steps to create a shortcut
1. Launch System Preferences. Click the Apple icon on the top menu bar > System Preferences, or hit command + space and search for ‘System Preferences’ from there.
2. On the next screen, select ‘Keyboard’ and tap on the ‘Shortcuts’ from the options on the top.
3. Now, select ‘Services’ on the left pane.
4. On the right pane, you will see a list of various services, and also, the service that you just created.
5. Select your service and click on ‘Add Shortcut’.
6. Now, assign a key combination that you want and can easily remember. It can be anything, control + command + r or even, as simple as, command + q. But make sure that the key combination is not already in use for any other service.
Now, every time you need to resize an image, all you need to do is select the image and click the key combination to resize your image.
Have fun with your service and tinker around for more customization.