Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/afeiship/watermark
Watermark based on sharp.
https://github.com/afeiship/watermark
cover mark sharp water watermark
Last synced: 19 days ago
JSON representation
Watermark based on sharp.
- Host: GitHub
- URL: https://github.com/afeiship/watermark
- Owner: afeiship
- License: mit
- Created: 2016-08-03T15:26:09.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-11-02T05:47:09.000Z (about 2 years ago)
- Last Synced: 2024-10-28T05:00:05.794Z (2 months ago)
- Topics: cover, mark, sharp, water, watermark
- Language: TypeScript
- Homepage:
- Size: 3.31 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# watermark
> Watermark based on sharp.## installation
```shell
npm install @jswork/watermark
```## usage
```js
import watermark from '@jswork/watermark';watermark({
src: 'https://pic.rmb.bdstatic.com/7f7a8d7b247d3aa430010f10a5765239.jpeg',
cover: './__tests__/beta_s.png', // local.png/remote.png/remote.svg
gravity: 'northwest'
}).then((res) => {
// res: buffer
});
```## gravity
![](./docs/GravityEnum.png)