Auto output naming for -xall, also overwrites by default

Discussions on NConvert - the command line tool for image conversion and manipulation

Moderator: xnview

User avatar
zecanard
Posts: 14
Joined: Sun Sep 11, 2022 6:58 pm
Location: Longmont, CO

Auto output naming for -xall, also overwrites by default

Post by zecanard »

When using the -xall option, NConvert outputs to an empty filename. To test, simply run:

Code: Select all

nconvert -out jpeg -xall test.png
on any test image.

The output is simply named:

Code: Select all

.jpg
I don’t know how difficult it would be to have NConvert use the input filename as the output for single-image inputs, without needing to specify -o %. For multi-image inputs, it could append 1, 2, etc. automatically, without having to specify -o % #

Furthermore, if you run the above command a second time, the existing file is overwritten, despite not specifying -overwrite.

I tested this under macOS v7.232.