From a9a63660b64b45bd863749e9e6159dae00f13c9a Mon Sep 17 00:00:00 2001 From: Lasse Kuechler Date: Fri, 11 May 2018 10:29:45 +0200 Subject: [PATCH] fix(png-export): change png export to scale the png by pixel ratio of the screen --- src/export/png-exporter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/export/png-exporter.ts b/src/export/png-exporter.ts index 360beb7c1..0f18850e9 100644 --- a/src/export/png-exporter.ts +++ b/src/export/png-exporter.ts @@ -86,7 +86,7 @@ export class PngExporter extends Exporter { capture => { // resize the capture to the original screen size const resizedCapture = capture.resize({ - width: config.width + width: capture.getSize().width / scaleFactor }); const pngBuffer: Buffer = resizedCapture.toPNG();