Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Commit

Permalink
fix(png-export): change png export to scale the png by pixel ratio of…
Browse files Browse the repository at this point in the history
… the screen (#451)
  • Loading branch information
lkuechler authored and marionebl committed May 24, 2018
1 parent 6142346 commit 476893b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/export/png-exporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,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();
Expand Down

0 comments on commit 476893b

Please sign in to comment.