png-bound-nodejs
v1.0.2
Published
get png bound with nodejs (ES6)
Downloads
2
Readme
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}