0.0.1 • Published 9 years ago

gulp-image-silhouette v0.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

gulp-image-silhouette

image-silhouette plugin for gulp

gulp-image-silhouette

GraphicsMagick or ImageMagick

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.

Usage

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"));

API

image-silhouette(options)

options.color

Type: String
Default: black

The Silhouette color for image.

Ex. rgb(0, 0, 0), #CCCCCC

License

MIT License