How To Compress Image In Mac
Compressing images on a Macis a simple yet essential task for anyone who needs to save storage space, speed up website loading times, or share files quickly via email or messaging apps. Plus, whether you’re a photographer, a blogger, or just someone who wants to keep their photo library tidy, knowing the right methods to reduce file size without sacrificing too much quality can make a big difference. Below you’ll find a complete walkthrough that walks you through built‑in macOS tools, popular third‑party applications, and command‑line options, along with practical tips to get the best results.
Why Image Compression Matters
Large image files consume valuable disk space and can slow down workflows, especially when you’re working with dozens or hundreds of photos. Compressing images helps:
- Save storage – Especially important on SSDs with limited capacity.
- Improve performance – Faster uploads, quicker email attachments, and smoother website loading.
- Maintain compatibility – Many platforms impose file‑size limits; compressed images stay within those bounds.
- Preserve visual quality – Modern compression algorithms can reduce size while keeping the image looking sharp to the naked eye.
Built‑In macOS Solutions
Using Preview to Compress Images
Preview, the default image viewer on macOS, offers a quick way to reduce file size through export options.
- Open the image in Preview (double‑click the file or right‑click → Open With → Preview).
- Choose File → Export from the menu bar.
- In the export window, select a format such as JPEG, HEIC, or PNG depending on your needs.
- Adjust the Quality slider: moving it toward “Low” reduces file size, while “High” preserves more detail.
- Check the estimated file size shown at the bottom of the window.
- Click Save and choose a destination folder or replace the original file.
Tip: For JPEG images, a quality setting around 80% often yields a good balance between size and clarity. For PNGs, consider converting to JPEG if transparency isn’t required, as JPEG usually produces smaller files.
Using Automator for Batch Compression
If you need to compress many images at once, Automator can create a reusable workflow.
- Launch Automator from the Applications folder.
- Choose New Document → Quick Action.
- Set “Workflow receives current” to image files in Finder.
- From the library on the left, drag Copy Finder Items to the workflow pane to specify where compressed copies will go (optional).
- Next, add Change Type of Images (if you want to convert format) and set the desired type (e.g., JPEG).
- Finally, add Apply Quartz Filter to Image Files and choose Reduce File Size from the filter list.
- Save the Quick Action with a name like “Compress Images”.
Now you can select any group of images in Finder, right‑click, choose Services → Compress Images, and the workflow will produce smaller versions automatically.
Third‑Party Applications for Advanced Control
While macOS provides solid built‑in options, dedicated apps often give more granular control, batch processing, and preview comparisons.
ImageOptim
ImageOptim is a free, open‑source utility that strips unnecessary metadata and applies multiple compression algorithms.
- Drag and drop images onto the ImageOptim window.
- The app automatically optimizes PNG, JPEG, GIF, and SVG files.
- You can adjust the compression level in Preferences if you want to prioritize speed over maximum reduction.
- Optimized files replace the originals unless you enable “Keep originals” in the settings.
JPEGmini
JPEGmini focuses on JPEG files, using a proprietary algorithm that reduces size while claiming to keep visual quality intact.
- Open the app and drag JPEG files onto its interface.
- Adjust the slider between “Original Quality” and “Maximum Compression” to see a side‑by‑side preview.
- Click Compress to generate the smaller files.
- A free trial is available; a license unlocks unlimited processing.
TinyPNG (Web‑Based with Mac Client)
Though primarily an online service, TinyPNG offers a macOS client that integrates with the menu bar.
- Install the TinyPNG app from their website.
- Drag images onto the TinyPNG icon in the menu bar.
- The client uploads, compresses, and downloads the optimized versions automatically.
- Works well for PNG and JPEG; the free tier allows a limited number of compressions per month.
Adobe Photoshop
If you already have Photoshop, its Export As feature provides precise control.
- Open the image in Photoshop.
- Choose File → Export → Export As….
- Select JPEG, PNG, or GIF, then adjust the Quality slider.
- Enable Convert to sRGB for web consistency.
- Click Export and choose a destination.
Photoshop also lets you save for web legacy (File → Export → Save for Web (Legacy)) which offers a 2‑up view to compare original and compressed versions side by side.
If you found this helpful, you might also enjoy words that start with y and contain f or why did the allies win ww1.
Command‑Line Options for Power Users
For those comfortable with Terminal, several tools can compress images efficiently and be integrated into scripts.
Using sips (Scriptable Image Processing System)
sips is built into macOS and can resize, convert, and compress images.
# Convert a PNG to JPEG with 80% qualitysips -s format jpeg -s formatOptions 80 input.png --output output.jpg
-s formatOptionssets the compression quality (0‑100 for JPEG).- You can loop over multiple files with a simple
forloop:
for f in *.png; do
sips -s format jpeg -s formatOptions 80 "$f" --output "${f%.png}.jpg"
done
Using ImageMagick
If you have ImageMagick installed (via Homebrew: brew install imagemagick), you gain powerful compression controls.
# Compress JPEG to 85% quality
magick input.jpg -quality 85 output.jpg
- For PNG, you can reduce color depth:
magick input.png -colors 256 output.png. - Batch processing example:
magick mogrify -path compressed -quality 85 *.jpg```
This command places all compressed JPEGs into a folder named `compressed`.
### Using `jpeg
optim` and `optipng`
These are specialized command-line tools for JPEG and PNG optimization, respectively.
- Install via Homebrew: `brew install jpegoptim optipng`
- Compress a JPEG: `jpegoptim --max=85 image.jpg`
- Compress a PNG: `optipng -o7 image.png`
Both tools strip unnecessary metadata and apply efficient compression algorithms. They can be combined in a script to process entire directories:
```bash
# Optimize all JPEGs and PNGs in a folder
for img in *.jpg; do
jpegoptim --max=85 "$img"
done
for img in *.png; do
optipng -o7 "$img"
done
Conclusion
Whether you prefer a graphical interface or command-line efficiency, macOS offers a variety of tools to compress images without sacrificing too much quality. For quick, one-off tasks, built-in options like Preview or Quick Actions suffice. That's why for batch processing or professional workflows, dedicated apps such as ImageOptim, Squash, or Photoshop provide more control and automation. Consider this: power users can take advantage of command-line tools like sips, ImageMagick, or jpegoptim/optipng to integrate compression into scripts and workflows. By choosing the right tool for your needs, you can significantly reduce file sizes, speed up website loading times, and save storage space—all while keeping your images looking sharp.
For those comfortable with Terminal, several tools can compress images efficiently and be integrated into scripts.
Using sips (Scriptable Image Processing System)
sips is built into macOS and can resize, convert, and compress images.
# Convert a PNG to JPEG with 80% quality
sips -s format jpeg -s formatOptions 80 input.png --output output.jpg
-s formatOptionssets the compression quality (0-100 for JPEG).- You can loop over multiple files with a simple
forloop:
for f in *.png; do
sips -s format jpeg -s formatOptions 80 "$f" --output "${f%.png}.jpg"
done
Using ImageMagick
If you have ImageMagick installed (via Homebrew: brew install imagemagick), you gain powerful compression controls.
# Compress JPEG to 85% quality
magick input.jpg -quality 85 output.jpg
- For PNG, you can reduce color depth:
magick input.png -colors 256 output.png. - Batch processing example:
magick mogrify -path compressed -quality 85 *.jpg
This command places all compressed JPEGs into a folder named compressed.
Using jpegoptim and optipng
These are specialized command-line tools for JPEG and PNG optimization, respectively.
- Install via Homebrew:
brew install jpegoptim optipng - Compress a JPEG:
jpegoptim --max=85 image.jpg - Compress a PNG:
optipng -o7 image.png
Both tools strip unnecessary metadata and apply efficient compression algorithms. They can be combined in a script to process entire directories:
# Optimize all JPEGs and PNGs in a folder
for img in *.jpg; do
jpegoptim --max=85 "$img"
done
for img in *.png; do
optipng -o7 "$img"
done
Conclusion
Whether you prefer a graphical interface or command-line efficiency, macOS offers a variety of tools to compress images without sacrificing too much quality. For quick, one-off tasks, built-in options like Preview or Quick Actions suffice. For batch processing or professional workflows, dedicated apps such as ImageOptim, Squash, or Photoshop provide more control and automation. Think about it: power users can make use of command-line tools like sips, ImageMagick, or jpegoptim/optipng to integrate compression into scripts and workflows. By choosing the right tool for your needs, you can significantly reduce file sizes, speed up website loading times, and save storage space—all while keeping your images looking sharp.
Latest Posts
Related Posts
Covering Similar Ground
-
Which Statement Is Always True
Aug 08, 2026
-
Which Statement Is Always True According To Vsepr Theory
Aug 08, 2026
-
Which Statement Is Always True When Describing Sex Linked Inheritance
Aug 08, 2026
-
Which Statement Is An Accurate Description Of Genes
Aug 08, 2026
-
Which Statement Is An Example Of A Central Idea
Aug 08, 2026