From d209608106df5ef1eeac92297164deb3e6d3c429 Mon Sep 17 00:00:00 2001 From: Nicholas Lamicela Date: Sat, 30 Nov 2024 19:37:11 -0800 Subject: [PATCH] cmd -> command --- tools/img-shrink.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/img-shrink.js b/tools/img-shrink.js index 09a4a13..8a868ee 100644 --- a/tools/img-shrink.js +++ b/tools/img-shrink.js @@ -13,14 +13,14 @@ async function main() { const fileOut = `${dirOut}/${file.name}.webp`; const lossless = file.ext === '.png'; - const cmd = [ + const command = [ `magick "${fileIn}"`, `-define webp:lossless=${lossless}`, `-define webp:target-size=200kb`, `"${fileOut}"`, ].join(' '); - console.log(cmd); - exec(cmd, (_err, stdout, stderr) => console.log(stdout + stderr)); + console.log(command); + exec(command, (_err, stdout, stderr) => console.log(stdout + stderr)); } }