Skip to content

Commit

Permalink
Merge pull request #110 from ThatConference/cs/updateResolution
Browse files Browse the repository at this point in the history
lowering the resolution on the images.
  • Loading branch information
theClarkSell authored Oct 13, 2021
2 parents 3910cb3 + 9f5beb7 commit d841933
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion functions/that-api-og-image/src/lib/chromium.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ export async function createScreenshot(url) {
});

const page = await browser.newPage();
await page.setViewport({ width: 2048, height: 1170, deviceScaleFactor: 2 });
// leaving for future reference - await page.setViewport({ width: 2048, height: 1170, deviceScaleFactor: 2 });
await page.setViewport({ width: 1200, height: 630 });
await page.setUserAgent(userAgent);

await page.goto(url, { waitUntil: 'networkidle2' });
Expand Down

0 comments on commit d841933

Please sign in to comment.