diff --git a/cli/export-png.js b/cli/export-png.js index 64f45c9..fef7c2e 100644 --- a/cli/export-png.js +++ b/cli/export-png.js @@ -105,7 +105,7 @@ function onPageExit(page, options, data) { console.log("\n" + 'Generated file(s):'); - const dest = options.dest + '.png'; + const dest = options.dest.replace('.png', '') + '.png'; // Render page to the output image page.render(dest);