Node-Bayer-Dithering

A small test implementing 8x8 Bayer dithering in Node.js

LGPL-3.0 License

Stars
2
Committers
3

Sharp.js dithering in Node

This simple test implements a B/W bayer filter, accessing the Buffer data supplied by Sharp. The index file is easily transportable into a larger project or pipeline, and makes few assumptions beyond what is necessary.

Normalization, output format and the like can be swapped. As the original goal was absolute file size reduction (without atrocious JPEG / webp artefacting), this output format stuck. Original inspiration comes from solar.lowtechmagazine.

# install
$ npm install
# run
$ npm start [inputfile]

compared with

Related Projects