diff --git a/lib/convert.js b/lib/convert.js index ff97fae..b3aa672 100644 --- a/lib/convert.js +++ b/lib/convert.js @@ -48,15 +48,14 @@ const EXTENSIONS = { module.exports = { // Convert a list of files. files: (input, output) => { - // Parse output template. - output = path.resolve(output) // Absolute path. - const template = urlTemplate.parse(output) + const template = urlTemplate.parse(output) // Parse output template. // Process files. const promises = input.map((src) => { // Destination. src = path.resolve(src) // Absolute path. let dest = template.expand(path.parse(src)) + dest = path.resolve(dest) // Absolute path. // Process file. const transformer = queue.drain(sharp(src))