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

Five Key Upgrades Coming to iPhone 16

Friday March 15, 2024 1:45 pm PDT by
The iPhone is Apple's top-selling product, and it gets an update every year. In 2024, we're expecting the iPhone 16 and iPhone 16 Pro lineup, with an arguably more interesting feature set than we got with the iPhone 15 and iPhone 15 Pro. Subscribe to the MacRumors YouTube channel for more videos. Capture Button All four iPhone 16 models are set to get a whole new button, which will be...
iphone se 4 modified flag edges

iPhone SE 4 Expected to Depreciate Heavily

Tuesday March 12, 2024 9:04 am PDT by
Resale value trends suggest the iPhone SE 4 may not hold its value as well as Apple's flagship models, according to SellCell. According to the report, Apple's iPhone SE models have historically depreciated much more rapidly than the company's more premium offerings. The third-generation iPhone SE, which launched in March 2022, experienced a significant drop in resale value, losing 42.6%...
apple wallet drivers license feature

Apple Said iPhone Driver's Licenses Would Expand to These 8 U.S. States… Two Years Ago

Thursday March 14, 2024 7:33 am PDT by
In just four U.S. states, residents can add their driver's license or ID to the Apple Wallet app on the iPhone and Apple Watch, providing a convenient and contactless way to display proof of identity or age at select airports, businesses, and venues. Adoption of the feature has been slow since Apple first announced it in September 2021, with IDs in the Wallet app only available in Arizona,...
airpods 3 orange

Two New AirPods 4 Models Expected to Launch in September or October

Sunday March 17, 2024 7:56 am PDT by
Apple suppliers will begin production of two new fourth-generation AirPods models in May, according to Bloomberg's Mark Gurman. Based on this production timeframe, he expects the headphones to be released in September or October. Gurman expects both fourth-generation AirPods models to feature a new design with better fit, improved sound quality, and an updated charging case with a USB-C...
OLED iPad Air

iPad Air Next on Apple's OLED Tablet Roadmap Following iPad Pro

Friday March 15, 2024 3:30 am PDT by
The iPad Air will be the next Apple tablet to adopt OLED display panel technology following its upcoming OLED iPad Pro models, according to an updated forecast from research firm Omdia (via The Elec). "In 2028, we expect the iPad Air to go OLED as well, with the iPad Air using single-stack and the iPad Pro using two-stack tandem OLEDs," said Omdia researcher Kang Min-soo, speaking on...
Walmart MacBook Air M1

Walmart Begins Selling MacBook Air With M1 Chip for $699 in U.S.

Friday March 15, 2024 6:57 am PDT by
Walmart today announced that it has started selling the MacBook Air with the M1 chip in the U.S., with pricing set at a very reasonable $699. The laptop can be ordered now on Walmart.com, and it will be available soon at select Walmart stores. This is the first time that customers can purchase a Mac that is sold directly by Walmart, the company said in a press release. Some other retailers...
AirPods Pro Case With Screen

AirPods Case With Touchscreen Knock-Off Copies Apple Patent

Thursday March 14, 2024 4:29 am PDT by
Apple registers many patents most of which never see the light of day as consumer products – officially, that is. One burgeoning knock-off merchant in China has apparently taken cues from an idea Apple had in 2021 for AirPods featuring a case with a built-in touchscreen display. Pictures and video shared on X (Twitter) by occasional leaker @lipilipsi show production units of counterfeit...