image-silhouette plugin for gulp
Make sure GraphicsMagick or ImageMagick is installed on your system and properly set up in your PATH.
Ubuntu:
apt-get install imagemagick
apt-get install graphicsmagickMac OS X (using Homebrew):
brew install imagemagick
brew install graphicsmagickWindows & others:
http://www.imagemagick.org/script/binary-releases.php
Confirm that ImageMagick is properly set up by executing convert -help in a terminal.
First, install gulp-image-silhouette as a development dependency:
npm install --save-dev gulp-image-silhouetteThen, add it to your gulpfile.js:
var silhouette = require("gulp-image-silhouette");
gulp.src("./src/*.png")
.pipe(silhouette({
color: 'white'
}))
.pipe(gulp.dest("./dist"));Type: String
Default: black
The Silhouette color for image.
Ex. rgb(0, 0, 0), #CCCCCC
