Page 1 of 1

Filelist option - Help file shows incorrect syntax?

Posted: Sat Mar 09, 2019 6:28 pm
by cday
The NConvert help file give the following syntax for the filelist option:

Code: Select all

-l file : Use file as filelist

But using the option, the correct syntax seems to be:

Code: Select all

-L file : Use file as filelist
That is uppercase L, as used in various early posts such as this one.

Re: Filelist option - Help file shows incorrect syntax?

Posted: Mon Mar 11, 2019 4:02 pm
by xnview
-l or -L can be used

Re: Filelist option - Help file shows incorrect syntax?

Posted: Mon Mar 11, 2019 6:47 pm
by cday
xnview wrote:
Mon Mar 11, 2019 4:02 pm
-l or -L can be used
I'm getting different results with -l and -L ... :wink:

The following code works correctly with -L but not with -l when using the filelist below:

Code: Select all

nconvert.exe -o binder.tiff -multi -out tiff -c 7 -L Filelist.txt

Code: Select all

Input\1.tif Input\2.tif Input\3.tif Input\4.tif

When using the following filelist format with the above code neither -l nor -L work, I'm not sure whether it should?

Code: Select all

Input\1.tif Input\2.tif Input\3.tif Input\4.tif

Re: Filelist option - Help file shows incorrect syntax?

Posted: Tue Mar 12, 2019 12:01 pm
by xnview
cday wrote:
Mon Mar 11, 2019 6:47 pm
I'm getting different results with -l and -L ... :wink:
I've tried

Code: Select all

-L Filelist.txt
or

Code: Select all

-l Filelist.txt
, and it works
When using the following filelist format with the above code neither -l nor -L work, I'm not sure whether it should?
I don't understand it works or not? :)

Re: Filelist option - Help file shows incorrect syntax?

Posted: Tue Mar 12, 2019 9:00 pm
by cday
Resolved I think:

The issue seems to have been related to the detailed format of the filelists used, correct output is now obtained with either -l or -L.

For reference the following filelist, with each filename on a separate line, works:

Code: Select all

Input\1.jpg   
Input\2.jpg   
Input\3.jpg   
Input\4.jpg
That is the filelist format produced using the XnView MP Create > File Listing... function, and by the XnView Classic Create > File listing... when the Copy to Clipboard option is not used.

The following filelist format also works:

Code: Select all

Input\1.jpg   Input\2.jpg   Input\3.jpg   Input\4.jpg
That format is produced when the XnView Classic Copy to Clipboard option is used, with the list items separated with three spaces, although only one seems to be required.

A possible complication may occur when the text file 'word wrap' option is enabled, effect not determined but a possible cause of the earlier confusion.