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

Commit

Permalink
fix: resize png to original screen size
Browse files Browse the repository at this point in the history
  • Loading branch information
lkuechler authored and marionebl committed May 24, 2018
1 parent 7ce67bd commit 7d8b372
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: capture.getSize().width / scaleFactor
width: config.width
});

const pngBuffer: Buffer = resizedCapture.toPNG();
Expand Down

0 comments on commit 7d8b372

Please sign in to comment.