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

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