lovell / avif-cli

Command line utility to convert images to AVIF
Apache License 2.0
165 stars 18 forks source link

fix: Default for Output should be empty #6

Closed evayde closed 2 years ago

evayde commented 2 years ago

The default for output should be empty, so when no output is set then outdir = inputdir.

Otherwise this condition (convert.js) only has effect if output is manually set to empty via cmd (output=""):

  const outputPath = path.join(
    output ? output : path.dirname(input),
    outputFilename
  );