Fix to avoid double extension when using the dest argument
This commit is contained in:
parent
f106909150
commit
fa62ae511e
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue