Fix to avoid double extension when using the dest argument

This commit is contained in:
Jordan Watkins 2018-10-20 14:13:28 -07:00 committed by Julian Descottes
parent f106909150
commit fa62ae511e
1 changed files with 1 additions and 1 deletions

View File

@ -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);