Input from filelist - Option to set output filename to source filename

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

Moderators: XnTriq, helmut, xnview

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

Input from filelist - Option to set output filename to source filename

Post by cday »

Code: Select all

nconvert -out pdf -multi -o Output\%%.pdf -l Filelist.txt
When the above code is run the the output PDF has the name of the first image in the filelist.

Could an option please be added to set the output filename to the input text file filename.

Example filelist:

Code: Select all

Image_1.tif
Image_2.tif
Image_3.tif
Output filename of the file created is Image_1.pdf.
User avatar
xnview
Author of XnView
Posts: 44885
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Input from filelist - Option to set output filename to source filename

Post by xnview »

Currently which output filename is used?
Pierre.
cday
XnThusiast
Posts: 4179
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: Input from filelist - Option to set output filename to source filename

Post by cday »

xnview wrote: Tue Nov 09, 2021 1:46 pm Currently which output filename is used?
cday wrote: Mon Nov 08, 2021 9:41 am Output filename of the file created is Image_1.pdf.
The filename of the first file in the filelist:

Code: Select all

Image_1.tif
Image_2.tif
Image_3.tif
Output multipage file is Image_1.pdf.
User avatar
xnview
Author of XnView
Posts: 44885
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Input from filelist - Option to set output filename to source filename

Post by xnview »

but which output filename do you want?
Pierre.
cday
XnThusiast
Posts: 4179
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: Input from filelist - Option to set output filename to source filename

Post by cday »

xnview wrote: Tue Nov 09, 2021 4:30 pm but which output filename do you want?
For filelist abc.txt output file abc.pdf.
User avatar
xnview
Author of XnView
Posts: 44885
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Input from filelist - Option to set output filename to source filename

Post by xnview »

Strange, i have the name of first filename in filelist not filelist name...
Pierre.
cday
XnThusiast
Posts: 4179
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: Input from filelist - Option to set output filename to source filename

Post by cday »

xnview wrote: Wed Nov 10, 2021 9:35 am Strange, i have the name of first filename in filelist not filelist name...
Yes, that is the problem I reported! :wink:
User avatar
xnview
Author of XnView
Posts: 44885
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Input from filelist - Option to set output filename to source filename

Post by xnview »

Sorry i'm blind :D, i'll change it
Pierre.
cday
XnThusiast
Posts: 4179
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: Input from filelist - Option to set output filename to source filename

Post by cday »

Bug corrected in NConvert 7.98, thanks! :D