granular quality

This commit is contained in:
Nycki 2024-12-26 18:30:15 -08:00
parent 1f5dd5023a
commit 63096f5237

View file

@ -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)) {