Mac Imageoptim Auto
I want to automatically convert pdf to jpg, and compress jpg.
First, need to install ImageOptim, and put in Application
folder.
Then install ImageOptim-CLI to run ImageOptim in command line.
# convert pdf to jpg
sips --resampleWidth 1024 -s format jpeg *.pdf --out dist/
# compress all jpg in dist folder
imageoptim dist