A couple of weeks ago I finally bought a copy of JPEGmini, an amazing tool which compresses JPEG images without compromising the image quality. It’s ridiculously good, especially compared to freeware like ImageOptim. I always run my photos though the software before I upload them to my WordPress media library. It will save you a lot of web space and your users a lot of traffic. Unfortunately, even when you chunk out 20 Euros for the full version of JPEGmini, the software does not support the amazing OS X Automator software. This is very disappointing, especially because automatically optimizing images could be just one click from the Services menu of Apples Finder.
So I dug a bit into Apple Script programming and came up with a little Automator service which passes the selected folder to JPEGmini for optimization. It’s far from perfect as it requires the user to stop interacting with the Mac until the script put everything in place and the optimization has started, but I guess it’s still better than doing everything by yourself. Another problem I ran into: The method I use only works with one folder selected in Finder. Multiple folders or file selection is not supported at the moment.
To install the Automator service, follow the instructions over at OS X Automation. Enjoy! If you have any questions or requests, feel free to leave a comment and I’ll see what I can do. No promises though!
This work by Tim Lehr is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.
Based on a work at www.timlehr.com.
Permissions beyond the scope of this license may be available at http://www.timlehr.com.