dipsy-canvas
v0.0.4-beta
Published
This canvas image is still beta.
Downloads
179
Maintainers
Readme
Installation
$ npm install dipsy-canvas
const dipsy = require("dipsy-canvas");
how to use
const dipsy = require("dipsy-canvas");
const fs = require('fs');
const image = await new dipsy.LogoWaterMark()
.setBg("https://i.ibb.co.com/rM4cHL8/img.jpg")
.setLogo("https://i.ibb.co.com/9vQ3RfP/image.png")
.toAttachment();
data = image.toBuffer();
await fs.writeFileSync(__path +'/temp/logo.png', data)