npm install parse-png> Parse a PNG
```
$ npm install parse-png
`js
const fs = require('fs');
const parsePng = require('parse-png');
(async () => {
const png = await parsePng(fs.readFileSync('unicorn.png'));
console.log(png);
/*
{
width: 200,
height: 133,
depth: 8,
interlace: false,
palette: false,
color: true,
alpha: false,
bpp: 3,
colorType: 2,
data:
}
*/
png.adjustGamma();
png.pack().pipe(fs.createWriteStream('unicorn-adjusted.png'));
})();
`
Returns a Promise
#### buffer
Type: Buffer
A PNG image buffer.
#### options
Type: Object`
See the pngjs options.