From 63fb5ffdd5bd7d4d03bf2ac113637ea7f8f54e1d Mon Sep 17 00:00:00 2001 From: Brooke Vibber Date: Fri, 30 Aug 2024 19:00:54 -0700 Subject: [PATCH] fix aspect ratio --- dither-image.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dither-image.js b/dither-image.js index ababc3c..94816d8 100644 --- a/dither-image.js +++ b/dither-image.js @@ -556,7 +556,7 @@ async function saveImage(width, height, lines, dest) { resolve(image); }); }); - await image.resize(Math.round(width2 * 2 / 1.2), height * 2); + await image.resize(Math.round(width2 * 4 / 1.2), height * 2); await image.writeAsync(dest); }