Skip to content

HAKASHUN/gulp-image-silhouette

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Create your image silhouette

Resources

License

Stars

Watchers

Forks

Packages

No packages published