mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-01-30 16:31:52 +01:00
🩹 Chore: tweak processUsers.js to reduce feature image size (#980)
While we can't rewrite history, we can at least slow its growth. WebP with lower quality settings gives about 2x size reduction with acceptable visual results.
This commit is contained in:
@@ -140,7 +140,7 @@ puppeteer
|
||||
fs.writeFileSync(dir + '/index.' + targetLangs[j] + '.md', content);
|
||||
}
|
||||
await page.goto(users[i].url);
|
||||
await page.screenshot({ path: dir + "/feature.jpg" });
|
||||
await page.screenshot({ path: dir + "/feature.jpg", type: 'webp', quality: 50, });
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user