png-bound-nodejs

1.0.2 • Public • Published

png-bound-nodejs

get png bound with nodejs (ES6)

install

npm install --save png-bound-nodejs

example

const {getBound} = require('png-bound-nodejs');
 
const fs = require('fs');
fs.readFile('png file', function (err, data) {
    getBound(data).then(
        (bound)=>{
            console.log(bound);
        },
        (error)=>{
            console.log(error);
        }
    );
});
 
//out: {x, y, width, height}

Readme

Keywords

Package Sidebar

Install

npm i png-bound-nodejs

Weekly Downloads

7

Version

1.0.2

License

ISC

Last publish

Collaborators

  • rockyf