{"library":"image-q","type":"library","category":null,"description":"Image-Q is a comprehensive TypeScript library for image color quantization, providing various algorithms to reduce the number of colors in an image while preserving visual quality. It supports alpha channels and offers multiple quantization methods, including NeuQuant, RGBQuant, and Xiaolin Wu's algorithms, alongside a broad selection of color distance formulas such as Euclidean, Manhattan, CIEDE2000, and CIE94. The library features both synchronous and promise-based asynchronous APIs, as well as generator-based advanced APIs, making it adaptable for various use cases. It supports both browser (Chrome 7+, Firefox 4+, IE 10+, Opera 11.6+, Safari 5.1+) and Node.js (6.0+) environments. Currently stable at version 4.0.0, the package has a moderate release cadence, with previous major versions introducing significant API changes, particularly around method naming and build outputs. Its key differentiators include a rich set of algorithms and distance metrics, full TypeScript support, and broad platform compatibility. The library is MIT licensed.","language":"javascript","status":"active","version":"4.0.0","tags":["javascript","image","palette","quantization","quantizer","color","neuquant","rgbquant","xiaolin wu","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install image-q","imports":["import * as iq from 'image-q';","import { utils, dist, palette, image } from 'image-q';","var iq = require('image-q');"]},{"cmd":"yarn add image-q","imports":[]},{"cmd":"pnpm add image-q","imports":[]}],"homepage":null,"github":"https://github.com/ibezkrovnyi/image-quantization","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/image-q","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/image-q/compatibility"}}