Image Manipulator
My friends ask me to create a service/workflow resize image by pixels convert it to .jpg and optimize it using ImageOptim. So the easiest way to achieve this is using Folder Actions in Finder.
Using Automator we can do the scale image and changing file type, for image optimatization we need ImageOptim. Open it so you can call it from shell script. There is two command that able optimize using ImageOptim:
If you don't need XCode then you can use this shell script on Automator:
open -a ImageOptim [folder of images]
e.g: open -a ImageOptim ~/Desktop/Pict
You need XCode and Command Line Interface install ImageOptim CLI using:
sudo npm install -g imageoptim
add this shell script on automator:
/usr/local/bin/imageOptim --directory ~/Desktop/Pict
Here is the example of the Image Manipulator workflow, you can customize it to fit your needs.
Thanks for visit!






