7 ms·
imgopt - shell script for image optimizing — just a convenience / batch processing wrapper more or less. Nothing earth-shattering, just really handy for me over
by mwittman 4y ago
imgopt - shell script for image optimizing — just a convenience / batch processing wrapper more or less.
Nothing earth-shattering, just really handy for me over the past year.
https://gist.github.com/wittman/ab90f0eca5124233fa5163a32f890220 https://gist.github.com/wittman/ab90f0eca5124233fa5163a32f89...
# Prerequisites:
ImageOptim (desktop app)
https://imageoptim.com/mac https://imageoptim.com/mac
## pngquant
https://github.com/kornelski/pngquant https://github.com/kornelski/pngquant
brew install pngquant
## oxipng
https://github.com/shssoichiro/oxipng https://github.com/shssoichiro/oxipng
brew install oxipng
## sips
(utility provided by default in OS X)