Igor's Blog

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

comments powered by Disqus
Other posts you may like...
Programming, DIY, Games, Hacks, and Tech

Recent Blog Posts

Converting a CSV file containing commas in quotes to a pipe separated file using Awk and Bash

How to get Facybox gallery popup to work for images with dynamic URLs

jQuery UI Photoboxr plugin updated to version 0.2

Learn How to Add Disclaimer to All Outgoing Emails in Office 365

How to securely host your web site for free with Google Cloud and CloudFlare (part 3)

How to securely host your web site for free with Google Cloud and CloudFlare (part 2)

How to securely host your web site for free with Google Cloud and CloudFlare (part 1)

Beware of the subtle difference in date format strings between MySQL and SQLite

Postman reporting Unexpected 'N' error in response body

Adding extra shelves to the Ikea Detolf display cabinet

Recent Galleries

Space Food - Chocolate Ice Cream with Chocolate Chips

Legeod Star Wars AT-DP kit

DIY spare parts computer build with a RAIDMAX Anura case

Fake 'Lepin' brand Lego packaging

Hardwood garden bench with clear resin void filler

Fixing a 3D printer extruder that stopped heating up

Easily increase disk space in a Lenovo Ideapad 100S 14" laptop with an M.2 SSD

Making a multi-piece 3D printed solder spool holder stand

DIY indoor apartment grow light wiring

Good Friday Electronics fun Easter Bunny LED PCB Kit IBEABU-01.0

My Other Web Sites

Igor and Elise's Travels
Riverside Expressway Cam
300 George St Blogumentary

My Online Tools

UUID to OID Converter
Guru JSON-RPC Tester
Extrudifier Object Designer
Travel ┬ÁBlog

Blogs and Friends

Matt Moores Blog
Georgi's FlatPress Guide
Perplexing Permutations
The Security Sleuth
Ilia Rogatchevski
Travelling Fairy

Blog Activity

Blog Activity
Please follow me for more great content!
     
Don't show this again