Skip to content

HAKASHUN/gulp-watermark

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gulp-watermark

watermark plugin for gulp

preview

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

About

Apply watermark to images

Resources

License

Stars

8 stars

Watchers

2 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors