Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 667 Bytes

readme.md

File metadata and controls

20 lines (13 loc) · 667 Bytes

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