Filelist option - Help file shows incorrect syntax?

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

Moderators: XnTriq, helmut, xnview

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

Filelist option - Help file shows incorrect syntax?

Post 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.
User avatar
xnview
Author of XnView
Posts: 44883
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Filelist option - Help file shows incorrect syntax?

Post by xnview »

-l or -L can be used
Pierre.
cday
XnThusiast
Posts: 4176
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: Filelist option - Help file shows incorrect syntax?

Post 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
User avatar
xnview
Author of XnView
Posts: 44883
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Filelist option - Help file shows incorrect syntax?

Post 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? :)
Pierre.
cday
XnThusiast
Posts: 4176
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: Filelist option - Help file shows incorrect syntax?

Post 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.