Skip to content

About

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

Resources

Stars

3 stars

Watchers

0 watching

Forks

Repository files navigation

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]

test image

compared with

result

About

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

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages