ImageOptim removes bloated metadata. Saves disk space & bandwidth by compressing images without losing quality.
To activate this workflow on one or multiple folders or files (JPG, PNG, GIF, or SVG) you've a number of possibilities. After a few seconds the image(s) should be compressed.
- In Finder select your files/folders, invoke your hotkey for Universal Actions, then select
Optimize Images.
- Or use a File Buffer by invoking your Alfred Hotkey, typing the keyword
imageoptim, typing the name of a file/folder, select multiple files using ⌥ + Arrow up, and finally pressing enter.
Please note that ImageOptim or related tools should be installed (e.g. via brew). Binaries that will be used (if installed):
- JPEG:
jpegtran,jpegoptim - GIF:
gifsicle - SVG:
svgcleaner - PNG:
pngcrush,advpng,oxipng,pngquant,zopflipng,pngout
- Simply download the last release
- Unzip the file on your computer
- Install
imageoptim.alfredworkflowby double-clicking the workflow file and clicking on "Import".
You'll now see the workflow listed in the left sidebar of your Workflows preferences pane.
$ ./bin/imageoptim workflow/icon.png
Starting...
Optimizing workflow/icon.png with pngcrush...
Optimizing workflow/icon.png with advpng...
Optimizing workflow/icon.png with oxipng...
File already optimized
Optimizing workflow/icon.png with pngquant...
Optimizing workflow/icon.png with zopflipng...
Optimizing workflow/icon.png
Input size: 20875 (20K)
Result size: 20266 (19K). Percentage of original: 97.083%
Result is smaller
Optimizing workflow/icon.png with pngout...
Done.To create a modified version of the workflow, edit the files and run make workflow to create an updated workflow.
This package has been inspired by ramiroaraujo's Image Optim Alfred Workflow.