%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream
# parse-png [](https://travis-ci.org/kevva/parse-png) > Parse a PNG ## Install ``` $ npm install parse-png ``` ## Usage ```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: <Buffer 29 48 4d ...>, } */ png.adjustGamma(); png.pack().pipe(fs.createWriteStream('unicorn-adjusted.png')); })(); ``` ## API ### parsePng(buffer, options?) Returns a `Promise<Object>` with a PNG instance. See the [pngjs documentation](https://github.com/lukeapage/pngjs#async-api) for more information. #### buffer Type: `Buffer` A PNG image buffer. #### options Type: `Object` See the [pngjs options](https://github.com/lukeapage/pngjs#options).