This commit is contained in:
Brooke Vibber 2023-03-20 07:11:24 -07:00
parent a2ae536048
commit e5226f0df1

View file

@ -1,5 +1,4 @@
import { import {
readFileSync,
writeFileSync writeFileSync
} from 'fs'; } from 'fs';
@ -701,7 +700,7 @@ function imageToLinearRGB(rgba) {
* @param {string} source path to source image file * @param {string} source path to source image file
* @returns {{width: number, height: number, lines: {palette: Array, output: Uint8Array}[]}} * @returns {{width: number, height: number, lines: {palette: Array, output: Uint8Array}[]}}
*/ */
async function convert(source, nbits) { async function convert(source) {
let { let {
width, width,