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

New Things Your iPhone Can Do in iOS 18

18 New Things Your iPhone Can Do in iOS 18.2

Wednesday November 13, 2024 2:09 am PST by
Apple is set to release iOS 18.2 next month, bringing the second round of Apple Intelligence features to iPhone 15 Pro and iPhone 16 models. This update brings several major advancements to Apple's AI integration, including completely new image generation tools and a range of Visual Intelligence-based enhancements. There are a handful of new non-AI related feature controls incoming as well....
M4 MacBook Pros Thumb

M4 MacBook Pro Uses Quantum Dot Display Technology

Thursday November 14, 2024 4:19 pm PST by
The M4 MacBook Pro models feature quantum dot display technology, according to display analyst Ross Young. Apple used a quantum dot film instead of a red KSF phosphor film, a change that provides more vibrant, accurate color results. Young says that Apple has opted for KSF for prior MacBook Pro models because it doesn't use toxic element cadmium (typical for quantum dot) and is more...
AirPods Crackling Feature

Apple Customers Sue Over Unfixed AirPods Pro Crackling Issue

Wednesday November 13, 2024 11:01 am PST by
A trio of Apple customers this month filed a class action lawsuit against Apple, accusing the Cupertino company of violating California consumer protection laws and false advertising for continuing to sell AirPods Pro models that had ongoing issues with crackling or static sounds. A few months after the AirPods Pro came out in October 2019, buyers began to complain about crackling, rattling, ...
google gemini

Google Releases Standalone Gemini AI App for iPhone

Thursday November 14, 2024 2:54 am PST by
Google has launched its dedicated Gemini artificial intelligence app for iPhone users, expanding beyond the previous limited integration within the main Google app. The standalone app offers enhanced functionality, including support for Gemini Live and iOS-specific features like Dynamic Island integration. The new app allows iPhone users to interact with Google's AI through text or voice...
maxresdefault

M4 Max MacBook Pro: Real-World Usage Tests

Wednesday November 13, 2024 11:59 am PST by
Apple last week replaced the M3 Max MacBook Pro with the new M4 Max MacBook Pro, and we picked up one of the new high-end MacBook Pro machines to see how it compares to the prior model with both benchmarks and real-world tests. We tested an M4 Max with a 16-core CPU, 40-core GPU, and 48GB RAM against an M3 Max MacBook Pro with similar specs. The two machines look similar, but the display on...
iphone passcode green

iOS 18 Security Feature Causes iPhone to Reboot After Three Days of Inactivity

Thursday November 14, 2024 2:19 pm PST by
With iOS 18, Apple introduced a feature that causes the iPhone to reboot every three days, security researchers have confirmed (via TechCrunch). In a demo video, security researcher Jiska Classen proved that an iPhone left untouched for 72 hours will automatically restart, and Graykey manufacturer also Magnet Forensics wrote a blog post about the feature. After a reboot, an iPhone is more...