npm.io
0.0.1 • Published 11 years ago

gulp-watermark

Licence
MIT
Version
0.0.1
Deps
3
Vulns
0
Weekly
0
Stars
8

gulp-watermark

watermark plugin for gulp

Usage

First, install gulp-watermark as a development dependency:

npm install --save-dev gulp-watermark

Then, add it to your gulpfile.js:

var watermark = require("gulp-watermark");

gulp.src("./src/*.ext")
	.pipe(watermark({
		image: "test/fixtures/github.png",
        resize: '100x100',
        gravity: 'Center'
	}))
	.pipe(gulp.dest("./dist"));

API

watermark(options)
options.image

Type: String

The Image Path you want to use as watermark.

options.resize

Type: String
Default: 100%

Possible values: <width>x<height>, <resize>%

The Resize Parameter for watermark.

options.gravity

Type: String
Default: SouthEast

Possible values: NorthWest, North, NorthEast, West, Center, East, SouthWest, South, SouthEast

The direction the primitive gravitates to when annotating the watermark image. Defaults to SouthEast.

License

MIT License

Keywords