Improve the appearance of tweet images by doubling the image scale factor

This commit is contained in:
Matt Isenhower
2019-05-12 13:21:35 -07:00
parent faa10ed4c5
commit 3f25df1a21

View File

@@ -7,6 +7,7 @@ const puppeteer = require('puppeteer');
const viewport = {
width: 1012, // Twitter's in-stream image width is 506px, 506*2 = 1012
height: 600,
deviceScaleFactor: 2,
};
function startHttpServer() {