zioinfo-mail/app/node_modules/parse-png/readme.md
DESKTOP-TKLFCPR\ython 11c670f2a0 refactor: 101.79.17.164 → zioinfo.co.kr 전체 도메인 변환 + Manager UI 배포
- 37개 파일 IP → zioinfo.co.kr 치환 (소스/매뉴얼/설정/하네스)
- Manager DrConsole/NetworkConsole/CsapConsole 빌드 + /var/www/manager/ 배포
- 테스트: Manager HTTP 200, ITSM 신규 API 7개 전체 200

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-31 10:09:17 +09:00

61 lines
982 B
Markdown

# parse-png [![Build Status](https://travis-ci.org/kevva/parse-png.svg?branch=master)](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).