Closed dgsiegel closed 11 months ago
Thanks for reporting, a PR with this fix would be most welcome, if you're able.
Thanks for reporting, a PR with this fix would be most welcome, if you're able.
Sure thing: https://github.com/lovell/avif-cli/pull/17
v0.5.1 now available with your fix, thank you.
I am running avif-cli like this:
avif --input='img/*.{jpg,jpeg,png}' --quality 64 --verbose
. This works fine, when at least one image will be converted. When all images already have been converted and--overwrite
has not been set, avif will return with a status of1
which will be interpreted as failure.The culprit seems to be this line, which returns
undefined
in this case.https://github.com/lovell/avif-cli/blob/main/lib/convert.js#L33
Changing it for example to
return true
would fix this issue.