mirror of
https://gitee.com/butubb8/blowfish.git
synced 2025-12-05 14:17:50 +08: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