{"library":"pngjs","type":"library","category":null,"description":"pngjs is a pure JavaScript library for encoding and decoding PNG images, primarily designed for Node.js environments but also usable in browsers via Browserify. It offers both synchronous and asynchronous APIs, supporting a wide range of PNG bit depths (1, 2, 4, 8, 16-bit) and interlace types for reading. The library distinguishes itself by having no external dependencies, providing a lightweight solution for image manipulation. The current stable version is 7.0.0. While it supports reading various color types and bit depths, its asynchronous writing API primarily processes 8-bit per sample (channel) images and does not support interlaced mode for output. It can read `tTRNS` transparent colors and supports writing colortype 0 (grayscale), 2 (RGB), 4 (grayscale alpha), and 6 (RGBA), but currently lacks support for extended PNG features like animation and writing indexed color (colortype 3). Its API is compatible with older `pngjs` and `node-pngjs` implementations, and it is rigorously tested against the PNG Suite.","language":"javascript","status":"active","version":"7.0.0","tags":["javascript","PNG","decoder","encoder","js-png","node-png","parser","png","png-js"],"install":[{"cmd":"npm install pngjs","imports":["import { PNG } from 'pngjs';","const { PNG } = require('pngjs');","import { PNG } from 'pngjs/browser';"]},{"cmd":"yarn add pngjs","imports":[]},{"cmd":"pnpm add pngjs","imports":[]}],"homepage":null,"github":"https://github.com/pngjs/pngjs","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/pngjs","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/pngjs/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Sat Jul 18","install_tag":null}}