diff options
Diffstat (limited to 'apps/workers')
| -rw-r--r-- | apps/workers/workers/crawlerWorker.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/workers/workers/crawlerWorker.ts b/apps/workers/workers/crawlerWorker.ts index e6ae201e..4831b4c4 100644 --- a/apps/workers/workers/crawlerWorker.ts +++ b/apps/workers/workers/crawlerWorker.ts @@ -510,8 +510,9 @@ async function crawlPage( Promise.race<Buffer>([ page.screenshot({ // If you change this, you need to change the asset type in the store function. - type: "png", + type: "jpeg", fullPage: serverConfig.crawler.fullPageScreenshot, + quality: 80, }), new Promise((_, reject) => setTimeout( @@ -616,7 +617,7 @@ async function storeScreenshot( return null; } const assetId = newAssetId(); - const contentType = "image/png"; + const contentType = "image/jpeg"; const fileName = "screenshot.png"; // Check storage quota before saving the screenshot |
