Process filelist

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

Moderators: helmut, XnTriq, xnview

Hacker
Posts: 242
Joined: Tue May 17, 2005 9:24 pm
Location: Bratislava, Slovakia

Process filelist

Post by Hacker »

Hi Pierre,
Could you please add an option for XnView to read filenames from a filelist? A filelist would look like this:

c:\long name\file.jpg
c:\long name\file2.jpg
d:\another dir\another file.bmp

A parameter like "-l <filelist.txt>" or "-list <filelist.txt>" could be used.

TIA
Roman
User avatar
Lesmo16
Posts: 419
Joined: Thu May 12, 2005 8:59 pm
Location: Germany

Re: Process filelist

Post by Lesmo16 »

I highly support this request.
Hacker wrote:A parameter like "-l <filelist.txt>" or "-list <filelist.txt>" could be used.
And the parameter "-l" would be available, so Roman is well prepared - as usual! :)
Everyone who believes in telekinesis, raise my hand!
User avatar
helmut
Posts: 8705
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Post by helmut »

This is really a good and very important suggestion, Roman. Currently, scripting is a bit hard since file lists cannot be passed easily. Adding this will make nconvert much more flexible and mighty and scripts simpler.

I think the mid- / longterm consequence is having both an option for including a file list and another one for including a process list. The process list will be a plain text file containing processes which should all be applied on the image files. The process list will make things more flexible and make sure that files do not have to be saved and opened over and over again for applying several processes. This should improve performance and improve quality of the results since nconvert can apply all processes in one step without intermediate saving. (Currently, if you use a lossy image format quality will decrease whenever applying a process and saving).
User avatar
xnview
Author of XnView
Posts: 45963
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Process filelist

Post by xnview »

Hacker wrote:Hi Pierre,
Could you please add an option for XnView to read filenames from a filelist? A filelist would look like this:

c:\long name\file.jpg
c:\long name\file2.jpg
d:\another dir\another file.bmp

A parameter like "-l <filelist.txt>" or "-list <filelist.txt>" could be used.
Yes, good feature, i'll add it
Pierre.
Guest

Post by Guest »

Any news on this?

As far as I can tell (looking at -help), there is still no option for this.
User avatar
xnview
Author of XnView
Posts: 45963
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Post by xnview »

Anonymous wrote:Any news on this?

As far as I can tell (looking at -help), there is still no option for this.
I'll add this option in next release...
Pierre.
Guest

Post by Guest »

xnview wrote:I'll add this option in next release...
Great! Thanks a lot
Hacker
Posts: 242
Joined: Tue May 17, 2005 9:24 pm
Location: Bratislava, Slovakia

Post by Hacker »

After a long time - thank you! :)

However, when I execute

Code: Select all

nconvert.exe -l listfile.txt
all files are processed correctly but at the end I get an error message saying:
Error: Don't know how to read this picture (listfile.txt)
Any ideas?

TIA
Roman
User avatar
oops66
XnThusiast
Posts: 2005
Joined: Tue Jul 17, 2007 1:17 am
Location: France

Re: Process filelist

Post by oops66 »

Hacker wrote:Hi Pierre,
Could you please add an option for XnView to read filenames from a filelist? A filelist would look like this:
c:\long name\file.jpg
c:\long name\file2.jpg
d:\another dir\another file.bmp
A parameter like "-l <filelist>" or "-list <filelist>" could be used.
TIA
Roman
*****************************
Hi,
You already can do this kind of thing in XnView by slide-file.sld
And you have juste to put you file liste:
c:\long name\file.jpg
c:\long name\file2.jpg
d:\another dir\another file.bmp
...
At the end of this .sld file.
(Timer = 0 or 2 or more)

--------- slide-file.sld -------------
# Slide Show Sequence
Timer = 2.000000
Loop = 0
FullScreen = 1
TitleBar = 1
Fit = 0
StrechVideo = 0
High = 1
CenterWindow = 1
ReadErrors = 1
RandomOrder = 0
ShowText = 0
Text = <Directory><Filename> <Width>x<Height>||<Date>||ISO <ISO> - F<F> - S <Exposure>||Focale <Focal> <Focal>||<Make> <Model> <Flash> <Flash>||
BackgroundColor = 0
FontName = "Courier"
FontBold = 0
FontItalic = 0
FontHeight = -13
TextColor = ffffff
TextPosition = 6
Effect = 2
EffectMask = 16777215
"c:\long name\file.jpg"
"c:\long name\file2.jpg"
"d:\another dir\another file.bmp"
...
XnViewMP Linux X64 - Debian - X64
Hacker
Posts: 242
Joined: Tue May 17, 2005 9:24 pm
Location: Bratislava, Slovakia

Post by Hacker »

Well, in the original post I meant NConvert of course. ;)

Roman
User avatar
oops66
XnThusiast
Posts: 2005
Joined: Tue Jul 17, 2007 1:17 am
Location: France

Post by oops66 »

Hacker wrote:Well, in the original post I meant NConvert of course. ;)
Roman
Yes, but maybe Nconvert can generate and launch this kind of file With a futur parameter -slide_list <filelist>?
It's only a suggestion !
XnViewMP Linux X64 - Debian - X64
User avatar
xnview
Author of XnView
Posts: 45963
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Post by xnview »

Hacker wrote: all files are processed correctly but at the end I get an error message saying:
Error: Don't know how to read this picture (listfile.txt)
Any ideas?
Ok, i'll check...
Pierre.
Hacker
Posts: 242
Joined: Tue May 17, 2005 9:24 pm
Location: Bratislava, Slovakia

Post by Hacker »

Not fixed in XnView 1.91.6.

Roman
Hacker
Posts: 242
Joined: Tue May 17, 2005 9:24 pm
Location: Bratislava, Slovakia

Post by Hacker »

Fixed in XnView 1.92. :)
Thanks a lot!

Roman