@meibin/watermark
v2.0.4
Published
[![travis-icon]][travis-link]
Downloads
9
Readme
watermark
Generate watermark for image and video, based on ffmpeg.
Dependency
Install
npm install @meibin/watermark
Use
const watermark = require('@meibin/watermark')
const source = '/path/to/image/or/video'
const target = '/path/to/output/file'
// text watermark
watermark(source, target, 'TextWatermark').then(() => {
// done
})
// image watermark
watermark(source, target, imageSource, { textMark: false }).then(() => {
// done
})