🖼A full-featured PNG decoder and encoder. Fork of @vivaxy/png maintained as of Feb 2023.
- Environments: Browsers and Node.js
- Chunks: IHDR, PLTE, IDAT, IEND, tRNS, cHRM, gAMA, iCCP, sBIT, sRGB, tEXt, zTXt, iTXt, bKGD, hIST, pHYs, sPLT, tIME
- Color Types: Greyscale, Truecolour, Indexed-colour (Palette), Greyscale with alpha, Truecolour with alpha
- Bit Depths: 1, 2, 4, 8, 16
- Filters: None, Sub, Up, Average, Paeth
yarn add @stevebel/png
or npm i @stevebel/png
import * as png from '@stevebel/png';
const metadata = png.decode(imageBuffer);
const imageBuffer = png.encode(metadata);
See metadata
type definition in metadata.ts.
- PngSuite - the official set of PNG test images
- upng-js
- PNGjs-Image
- fast-png
- pngparse-sync
- pngjs3
- pngjs
- png-js
Project created by create-n.