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
})