Install floyd-steinberg-dithering node package using npm , npm install floyd-steinberg-dithering
All available functions are :
- process() : receives two parameter,
source path of file with file name
&destination of file with file name
Say filename is : dither.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.