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
11 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
11 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
11 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
11 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
11 months ago
Macrumors occasionally posts this type of tutorials and I love it! More like this please!
Score: 7 Votes (Like | Disagree)
beltzak Avatar
11 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

apple card 1

Apple Ending Apple Card Partnership With Goldman Sachs

Tuesday November 28, 2023 3:09 pm PST by
Apple is ending its credit card partnership with Goldman Sachs, according to The Wall Street Journal. Apple plans to stop working with Goldman Sachs in the next 12 to 15 months, and it is not yet clear if Apple has established a new partnership for the Apple Card. Apple and Goldman Sachs will dissolve their entire consumer partnership, including the Apple Card and the Apple Savings account....
iOS 17

Everything New in iOS 17.2 Beta 4

Tuesday November 28, 2023 12:18 pm PST by
Apple is wrapping up development on iOS 17.2, with the update expected to come out in December. While we're getting to the end of the beta testing period, Apple is still tweaking features and adding new functionality. We've rounded up everything new in the fourth beta of iOS 17.2. Default Notification Sound Under Sounds & Haptics, there's a new "Default Alerts" section that allows you to ...
ios 17 namedrop

Police Departments and News Sites Spreading Misinformation About How iOS 17 NameDrop Feature Works

Monday November 27, 2023 5:11 pm PST by
Apple with iOS 17.1 and watchOS 10.1 introduced a new NameDrop feature that is designed to allow users to place Apple devices near one another to quickly exchange contact information. Sharing contact information is done with explicit user permission, but some news organizations and police departments have been spreading misinformation about how NameDrop functions. As noted by The Washington...
All New CarPlay Five New Features Article 2

What to Expect From All-New CarPlay, Still Listed as Coming 'Late 2023'

Tuesday November 28, 2023 7:44 am PST by
At WWDC in June 2022, Apple previewed the next generation of CarPlay, promising deeper integration with vehicle functions like A/C and FM radio, support for multiple displays across the dashboard, increased personalization, and more. Apple's website still says the first vehicles with support for the next-generation CarPlay experience will be announced in "late 2023," but it has not shared...
iOS 17

iOS 17.1.2 Update for iPhone Likely to Be Released This Week

Monday November 27, 2023 8:24 am PST by
Apple will likely release iOS 17.1.2 this week, based on mounting evidence of the software in our website's analytics logs in recent days. As a minor update, iOS 17.1.2 should be focused on bug fixes, but it's unclear exactly which issues might be addressed. Some users have continued to experience Wi-Fi issues on iOS 17.1.1, so perhaps iOS 17.1.2 will include the same fix for Wi-Fi...
Apple 5G Modem Feature Triad

Apple to Discontinue Custom 5G Modem Development, Claim Reports

Wednesday November 29, 2023 4:19 am PST by
Apple is discontinuing in-house modem development after several unsuccessful attempts to perfect its own custom 5G modem chip, according to unconfirmed reports coming out of Asia. According to the operator of news aggregator account "yeux1122" on the Naver blog, supply chain sources related to Apple's 5G modem departments claim that the company's attempts to develop its own modem have...
Apple Logo

Apple Discontinued These 5 Products This Year

Monday November 27, 2023 7:03 am PST by
As the end of 2023 nears, now is a good opportunity to look back at some of the devices and accessories that Apple discontinued throughout the year. Apple products discontinued in 2023 include the iPhone 13 mini, 13-inch MacBook Pro, MagSafe Battery Pack, MagSafe Duo Charger, and leather accessories. Also check out our lists of Apple products discontinued in 2022 and 2021. iPhone Mini ...
Google Drive

Some Google Drive Users' Files Have Mysteriously Vanished

Tuesday November 28, 2023 3:55 am PST by
Google Drive users have been warned not to disconnect their account within the Google Drive for desktop app, after a spate of reports of files going missing from the cloud service. Alarm bells began ringing last week on Google's community support site when some users reported files mysteriously disappearing from Google Drive, with some posters claiming six or more months of data had...