watermark-js-plus
watermark-js-plus copied to clipboard
watermark for the browser
Watermark
This is a canvas-based watermark for browser.
- π οΈ Rich Features
- π Fully Typed APIs
- π¦οΈ Extremely light
Watermark works with both Vue 2 , Vue 3 And React.
Translations
- δΈζζζ‘£
Installing
# or pnpm or yarn
npm install watermark-js-plus
Usage
Watermark
import { Watermark } from 'watermark-js-plus'
const watermark = new Watermark({
content: 'hello my watermark',
width: 200,
height: 200,
onSuccess: () => {
// success callback
}
})
watermark.create()
Blind Watermark
import { BlindWatermark } from 'watermark-js-plus'
const watermark = new BlindWatermark({
content: 'hello my watermark',
width: 200,
height: 200,
onSuccess: () => {
// success callback
}
})
watermark.create()
Decode Blind Watermark
import { BlindWatermark } from 'watermark-js-plus'
BlindWatermark.decode({
url: uploadFile.url, // image url
onSuccess: (imageBase64) => {
// success callback
}
})
Documentation
To learn more, check its documentation.
Maintainers
Contributing
Feel free to dive in! Open an issue or submit PRs.
Standard Readme follows the Contributor Covenant Code of Conduct.
Contributors
This project exists thanks to all the people who contribute.
License
MIT Β© MichaelSun