metalsmith-dither
A Metalsmith plugin to dither images, based on DitherJS.
The script take the image matching the pattern and make a dithered copy of the file, with a suffix added at the basename. The dithering effects can use of 'atkinson' ou 'ordered' algorithm. A color palette can be applied to the image. By default, the palette is black & white. The last parameter is the step for the pixel quantization ... in short the size of the pixel.
The script is dependent of Jimp library.
Install
npm install --save metalsmith-ditherusage
var Metalsmith = ;var dither = ; var metalsmith = __dirname ;Options
Credits
The script is a fork of DitherJS by Daniele Piccone adapted into the node context.
license MIT