In macOS, you can easily convert the format of images using a Quick Action in Finder or you can achieve the same thing via the Preview app, but if your daily workflow requires you to repeatedly convert images – for uploading to a blog, for example – then using a Folder Action can be a much faster way of getting the job done.

automator
In this article, we'll show you how to use the macOS Automator app to create a very simple Folder Action that will automatically convert images dropped into a specific folder, without you having to manually apply a Quick Action or open an image editing app. Keep reading to learn how it's done.

How to Create an Image Converting Folder in Automator

  1. Launch Automator from the Applications folder.
    applications

  2. Click New Document.
  3. Choose Folder Action as the type of your document.
    automator

  4. At the top of the workflow area, click the dropdown next to Folder Action receives files and folders added to: then select Other....
    automator

  5. Select the folder that you'd like to attribute the image conversion action to. In our example, we're choosing the Downloads folder.
  6. From the Library sidebar on the far left, select Photos.
  7. From the Actions column, drag Change Type of Images (the one with the Preview icon) to the workflow area.
    automator

  8. A dialog prompt will appear. If you want your action to convert copies of images placed in the folder and preserve the originals, select Add. If you want it to convert the original images, select Don't Add.
  9. In the Change Type of Images action panel, choose the type of format that you want images to be converted to. We're selecting JPG.
    automator

  10. In the Automator menu bar, select File -> Save... or press Command-S, call your new file action "Convert Image," then click Save.

That's all there is to it. Next time you want to convert an image into your preferred format, simply drag it into the folder that you assigned the action to.

Now that you know how to create the image conversion workflow in Automator, you may want to turn it into a standalone "Application," the option for which you can find in Automator's document menu. An "Application" is a self-running workflow that acts as a droplet – any files or folders dropped onto it are used as input to the workflow. In other words, you could add an "Application" to your Dock and drop images onto it for conversion.

You can also import Automator workflows into the Shortcuts app. Shortcuts can convert most Automator workflows into shortcuts that carry out the same functions, events and automations — you simply drag a workflow file into Shortcuts and the conversion happens automatically.

Top Rated Comments

Marbles1 Avatar
19 months ago
These are the kinds of articles we need on macrumours when it's a slow news day. Not another copy-paste press release from the 'Nothing Phone' or the latest tattle about Elon Musk / Twitter.
Score: 20 Votes (Like | Disagree)
Grimace Avatar
19 months ago
This type of content is far better than the pseudo-news (or click-through sales links) that are frequently on MR! More please!
Score: 16 Votes (Like | Disagree)
crenz Avatar
19 months ago
Thanks for the very helpful tutorial - I was not aware of Folder actions; seems to be a very helpful tool. I will try to adapt this for an audio file conversion workflow I need.
Score: 11 Votes (Like | Disagree)
davidec Avatar
19 months ago
Nice job MR. These types of articles are really helpful and keep the Mac spirit alive.
Score: 8 Votes (Like | Disagree)
syklee26 Avatar
19 months ago
Macrumors occasionally posts this type of tutorials and I love it! More like this please!
Score: 7 Votes (Like | Disagree)
beltzak Avatar
19 months ago
I use shell scripts to do that. SIP command but for webp I ended installing cwebp. Probably not very efficient tools because I am not a developer but they work fine.

PNG to WEBP
Use: sh Png2webp Folder_Source
#!/usr/bin/env bash
# Png2jpg Image converter Script

# Variables
SRC="$1"
DEL="$SRC/delete"
clear

if [ -e "$DEL" ]
then
echo "\n"
else
mkdir "$DEL"
fi

echo "PNG Converter\n"
echo "#############\n"

test=`ls -l "$SRC"/*.png`

if [ $? -eq 0 ]; then
for file in "$SRC"/*.png; do
#sips -s format jpeg -s formatOptions 70 "${file}" --out "${file%png}jpg";
cwebp -metadata all -q 100 "${file}" -o "${file%png}webp";
done
mv "$SRC"/*.png "$SRC/delete"
else
for file in "$SRC"/*.PNG; do > /dev/null 2>&1
#sips -s format jpeg -s formatOptions 70 "${file}" --out "${file%png}jpg";
cwebp -metadata all -q 100 "${file}" -o "${file%PNG}webp";
done
mv "$SRC"/*.PNG "$SRC/delete" > /dev/null 2>&1
fi

PNG to JPG
Use: sh Png2jpgFolder_Source
#!/usr/bin/env bash
# belPng2jpg Image converter Script

# Variables
SRC="$1"
#DEST="${SRC} jpg"

clear

mkdir "$SRC/delete"
# for i in *.png; do sips -s format jpeg -s formatOptions 70 "${i}" --out "${i%png}jpg"; done
for file in "$SRC"/*.png; do
sips -s format jpeg -s formatOptions 70 "${file}" --out "${file%png}jpg";
done
mv "$SRC"/*.png "$SRC/delete" > /dev/null 2>&1


for file in "$SRC"/*.PNG; do
sips -s format jpeg -s formatOptions 70 "${file}" --out "${file%PNG}jpg";
done
mv "$SRC"/*.PNG "$SRC/delete" > /dev/null 2>&1
Score: 6 Votes (Like | Disagree)

Popular Stories

iPhone SE 4 Vertical Camera Feature

iPhone SE 4 Rumored to Use Same Rear Chassis as iPhone 16

Friday July 19, 2024 7:16 am PDT by
Apple will adopt the same rear chassis manufacturing process for the iPhone SE 4 that it is using for the upcoming standard iPhone 16, claims a new rumor coming out of China. According to the Weibo-based leaker "Fixed Focus Digital," the backplate manufacturing process for the iPhone SE 4 is "exactly the same" as the standard model in Apple's upcoming iPhone 16 lineup, which is expected to...
iPhone 16 Pro Sizes Feature

iPhone 16 Series Is Just Two Months Away: Everything We Know

Monday July 15, 2024 4:44 am PDT by
Apple typically releases its new iPhone series around mid-September, which means we are about two months out from the launch of the iPhone 16. Like the iPhone 15 series, this year's lineup is expected to stick with four models – iPhone 16, iPhone 16 Plus, iPhone 16 Pro, and iPhone 16 Pro Max – although there are plenty of design differences and new features to take into account. To bring ...
iphone 14 lineup

Cellebrite Unable to Unlock iPhones on iOS 17.4 or Later, Leak Reveals

Thursday July 18, 2024 4:18 am PDT by
Israel-based mobile forensics company Cellebrite is unable to unlock iPhones running iOS 17.4 or later, according to leaked documents verified by 404 Media. The documents provide a rare glimpse into the capabilities of the company's mobile forensics tools and highlight the ongoing security improvements in Apple's latest devices. The leaked "Cellebrite iOS Support Matrix" obtained by 404 Media...
tinypod apple watch

TinyPod Turns Your Apple Watch Into an iPod

Wednesday July 17, 2024 3:18 pm PDT by
If you have an old Apple Watch and you're not sure what to do with it, a new product called TinyPod might be the answer. Priced at $79, the TinyPod is a silicone case with a built-in scroll wheel that houses the Apple Watch chassis. When an Apple Watch is placed inside the TinyPod, the click wheel on the case is able to be used to scroll through the Apple Watch interface. The feature works...
bsod

Crowdstrike Says Global IT Outage Impacting Windows PCs, But Mac and Linux Hosts Not Affected

Friday July 19, 2024 3:12 am PDT by
A widespread system failure is currently affecting numerous Windows devices globally, causing critical boot failures across various industries, including banks, rail networks, airlines, retailers, broadcasters, healthcare, and many more sectors. The issue, manifesting as a Blue Screen of Death (BSOD), is preventing computers from starting up properly and forcing them into continuous recovery...
Apple Watch Series 9

2024 Apple Watch Lineup: Key Changes We're Expecting

Tuesday July 16, 2024 7:59 am PDT by
Apple is seemingly planning a rework of the Apple Watch lineup for 2024, according to a range of reports from over the past year. Here's everything we know so far. Apple is expected to continue to offer three different Apple Watch models in five casing sizes, but the various display sizes will allegedly grow by up to 12% and the casings will get taller. Based on all of the latest rumors,...