0.0.1 • Published 9 years ago

gulp-watermark v0.0.1

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

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