From 63096f52374d8bc204600a5ad667a99cbfcd6007 Mon Sep 17 00:00:00 2001 From: Nicholas Lamicela Date: Thu, 26 Dec 2024 18:30:15 -0800 Subject: [PATCH] granular quality --- tools/img-shrink.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/img-shrink.js b/tools/img-shrink.js index dc3e549..a36c10e 100644 --- a/tools/img-shrink.js +++ b/tools/img-shrink.js @@ -5,7 +5,7 @@ import sharp from 'sharp'; const dirIn = 'tools/in'; const dirOut = 'tools/out'; const thresholdBytes = 2 * 1024 * 1024; -const quality = [100, 87, 75, 62, 50, 37, 25, 12]; +const quality = [100, 99, 97, 95, 90, 80, 75, 70, 60, 50, 40]; async function main() { for (const base of await fs.readdir(dirIn)) {