This gulp setup resizes, renames, and optimizes batches of raster image and scalable vector files.
Make sure you have gulp installed:
npm install --global gulp-cli
Then:
npm install
brew install imagemagick
brew install graphicsmagick
gulp svg
optimizes SVG files.
gulp image
optimizes all image files (JPG/PNG)
gulp clean
removes entire dist folder and its contents.