watermark plugin for gulp
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"));
Type: String
The Image Path you want to use as watermark.
Type: String
Default: 100%
Possible values: <width>x<height>
, <resize>%
The Resize Parameter for watermark.
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.