A drag-n-drop tool to compress a folder of images in macOS.
PNGs are compressed with ImageAlpha+ImageOptim. JPGs are compressed with ImageOptim.
- Download ImageOptim.app and ImageAlpha.app if you don't have them already and make sure to place them in your Applications folder.
- If you don't already have homebrew installed, open Terminal.app and install it by copy pasting the following line and pressing return. It may take a few minutes.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- Install imageoptim CLI via the Terminal
brew install imageoptim-cli
- Download batch-optimizer droplet and put it somewhere handy (I have it in the Applications folder and saved in the dock).
- Drop a file, multiple files, a folder containing images, or some combination of files and folders on the droplet. All source files will be overwritten with the optimized ones.
- When you receive a push notification telling you your images are optimized, you're good to go! While it's processing, you'll see a spinning gear in your menubar, the ImageOptim.app will also open and close on its own, this is normal.