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 graphicsmagick
Mac OS X (using Homebrew):
brew install imagemagick
brew install graphicsmagick
Windows & 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-silhouette
Then, 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