Igor's Blog
Programming, DIY, Games, Hacks, and Tech

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...

Recent Blog Posts

A hack to create an uber jar with the Maven Shade Plugin using local jar files

Is it worth it? Apple USB-C Digital Multi AV adapter vs a cheap eBay clone

Running X11 graphical applications after changing to another user using 'sudo su'

How to stop Facebook using ad images as post sharing thumbnails

Picking lists for Atari Lynx capacitor replacement kits

Performance - 2012 Retina MacBook Pro vs 2017 MacBook Pro

Look and feel - 2012 Retina MacBook Pro vs 2017 MacBook Pro

Using math to work out the diameter of hard to reach water cooling pipes

How to get the unreachable shard in the Hinterlands in DragonAge Inquisition

Measy RC12 wireless 2.4Ghz keyboard touchpad review

Recent Galleries

Monument Valley 2 is released and does not disappoint

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

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
Don't forget to
me for more great articles!
Don't show this again