Image dithering using floyd-steinberg algo
npm install floyd-steinberg-ditheringInstall floyd-steinberg-dithering node package using npm , npm install floyd-steinberg-dithering
- process() : receives two parameter, source path of file with file name & destination of file with file name
Say filename is : ``dither.js`
` js
var fsDither = require("floyd-steinberg-dithering");
// Must have a file with same name as src path at the location
// process the floyd steinberg dithering
fsDither.process('./src.png', './dest.png');
`
Use node dither.js`, logs will contain the response.
Unless stated elsewhere, file headers or otherwise, the license as stated in the LICENSE file.