@meibin/watermark

2.0.4 • Public • Published

travis-icon

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

Readme

Keywords

none

Package Sidebar

Install

npm i @meibin/watermark

Weekly Downloads

0

Version

2.0.4

License

MIT

Unpacked Size

3.57 kB

Total Files

4

Last publish

Collaborators

  • meibin