Igor Kromin |   Consultant. Coder. Blogger. Tinkerer. Gamer.

If you were used to using the Preview app for resizing images in batch, both in macOS Sierra and OS X El Capitan the 'Save All' feature has been removed so it became a real pain to use. Nobody wants to click 'Save' on every single image after resizing them all (especially if you have dozens or hundreds of images), but luckily there is a way to simplify and automate this process.

I originally came across this article that explained how to create a Service with the Automator app. That article was useful but it restricted image resizing to a single size, which to me is completely not acceptable. I decided to improve on that solution and show how a Service can be created that would resize images to any size either in pixels or as a percentage value, based on user input. Here's how.

First launch the Automator app and create a new document (File > New), then select Service as the document type.
macosimgresize_1.png


Next make sure you set the following:
  • Service receives selected - image files
  • in - any application


Then add the following two actions (use the search box to find them quickly):
  • Get Specified Finder Items
  • Scale Images


For the Scale Images action enter a default value to use for the size, I chose 1280 since that's what I typically resize images to. Also make sure to tick the 'Show this action when the workflow runs' check box under the Options tab.
macosimgresize_2.png




You can now Save your service with a meaningful name like 'Resize Images'.

Now when you right-click and image file you can go to Services and you will see that 'Resize Images' is an option that can be clicked.
macosimgresize_4.png


When clicked, an input box is shown asking for the image size. This value can be entered either in pixels or as a percentage. Remember this is the horizontal size for the image, the vertical size will be worked out automatically based on the aspect ratio of the image.
macosimgresize_5.png


-i

A quick disclaimer...

Although I put in a great effort into researching all the topics I cover, mistakes can happen. Use of any information from my blog posts should be at own risk and I do not hold any liability towards any information misuse or damages caused by following any of my posts.

All content and opinions expressed on this Blog are my own and do not represent the opinions of my employer (Oracle). Use of any information contained in this blog post/article is subject to this disclaimer.
Hi! You can search my blog here ⤵
NOTE: (2022) This Blog is no longer maintained and I will not be answering any emails or comments.

I am now focusing on Atari Gamer.