From e5226f0df1ccde72c0c8922bf27e895fae79ba0a Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Mon, 20 Mar 2023 07:11:24 -0700 Subject: [PATCH] wip --- dither-image.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dither-image.js b/dither-image.js index 554ae0c..2a9d5f0 100644 --- a/dither-image.js +++ b/dither-image.js @@ -1,5 +1,4 @@ import { - readFileSync, writeFileSync } from 'fs'; @@ -701,7 +700,7 @@ function imageToLinearRGB(rgba) { * @param {string} source path to source image file * @returns {{width: number, height: number, lines: {palette: Array, output: Uint8Array}[]}} */ -async function convert(source, nbits) { +async function convert(source) { let { width,