bablu

1.0.0 • Public • Published

Bablu

( बबलू ) - Package for manipulating color of PNG with given hex


🛠 Installation

$ npm install --save bablu

🚀 Usage

const fs = require('fs')
const bablu = require('bablu')

const url = 'https://cdn.discordapp.com/emojis/891761238994976788.png';

(async () => {
    // Convert from url
    const imageBuffer = await bablu(url, '#F05454')
    fs.writeFileSync('emoji-red.png', imageBuffer)

    // Convert from buffer
    const image = fs.readFileSync('emoji.png')
    const imageBuffer2 = await bablu(image, '#FFC069')
    fs.writeFileSync('emoji-yellow.png', imageBuffer2)
})()

📰 License

The Bablu project is released under the GNU 3.0.
Developed & maintained By Darshan Patel.


Dependents (0)

Package Sidebar

Install

npm i bablu

Weekly Downloads

1

Version

1.0.0

License

ISC

Unpacked Size

40.3 kB

Total Files

6

Last publish

Collaborators

  • forscht