Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

atkinson-dither

groberts8ISC0.0.1

Performs Atkinson dithering on an image.

readme

Atkinson Dither for Node.JS

An implementation of the Atkinson dithering algorithm suitable for Node.JS.

http://verlagmartinkoch.at/software/dither/index.html

Installation

npm install atkinson-dither

Usage

On the command line

atkinson-dither -i input-file.png -o output-file.png

In another Node.JS script

var AtkinsonDither = require('atkinson-dither');

// Where imageData is loaded from Canvas or similar...
AtkinsonDither.ProcessImage(imageData);