Order of terms in NConvert code

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

Moderator: xnview

cday
XnThusiast
Posts: 4605
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Order of terms in NConvert code

Post by cday »

While as far as I know it has never been formally documented, I have long understood that in NConvert code the input files to be processed must be last (right-most) term. That was the position shown in Helmut's posts outlining NConvert use after the utility was introduced, the order of terms I have always followed successfully, and was recently indicated by Pierre when replying to a post regarding code that didn't run.

However, replies to a post today concerning the -clip option seem to suggest that order of terms wasn't applicable, so could Pierre please make a general statement regarding the correct order of terms in NConvert code? :D


Note: it's too hot here to put in the links, but if someone cares to PM them to me I will endeavour to insert them!
User avatar
user0
XnThusiast
Posts: 3065
Joined: Sat May 09, 2015 9:37 am

Re: Order of terms in NConvert code

Post by user0 »

any combination works for me (in 7.230)

Code: Select all

nconvert.exe  -clipboard  -grey 256  -out clipboard
nconvert.exe  -clipboard  -out clipboard  -grey 256

nconvert.exe  -out clipboard  -clipboard  -grey 256
nconvert.exe  -out clipboard  -grey 256  -clipboard

nconvert.exe  -grey 256  -clipboard  -out clipboard
nconvert.exe  -grey 256  -out clipboard  -clipboard
cday
XnThusiast
Posts: 4605
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: Order of terms in NConvert code

Post by cday »

user0 wrote: Thu Aug 13, 2026 6:14 pm any combination works for me (in 7.230)
...in relation to -clip, but there remain reasons for wondering if that might be an exception to a general rule that input terms must be last, particularly as I recall Pierre recently stating that a poster's code didn't run as that the input term needed to be las! :?:

A statement from Pierre would be welcome, given the above, in the absence of significantly more detailed testing.