Page 1 of 1
NCONVERT commandline parsing / filelist
Posted: Sun Oct 28, 2007 10:23 am
by DOS386
Hacker wrote in other thread:
Could you please add an option for XnView to read filenames from a filelist? A filelist would look like
Filelist and Commandlist
Why ? NCONVERT's commandline can easily reach many 100's of bytes and I have some problems to pass it
EDIT : reduced junk, see newer post for better idea
Filelist + commmands list
Posted: Sun Mar 02, 2008 5:47 am
by DOS386
No answer yet
Simplifying the idea, if NCONVERT obtains just
one file, assume it as text file containing both the commands, and the list of files ... just define a character or string preceding a new commandline to make it well distinguishable from a filename
SCRIPT.TXT
Code: Select all
### -truecolors -rotate 45 -text_font Lucida 14 -text_color 255 200 100 -text "Hello World" -rtype lanczos -resize 400% 400% -out bmp {EOL}
shot.bmp {EOL}
C:\test.bmp {EOL}
C:\test.jpg {EOL}
E:\foto\w0001.png {EOL}
### -truecolors -resize 300% 300% -out bmp {EOL}
C:\web\a.gif {EOL}
C:\web\b.gif {EOL}
C:\web\c.gif {EOL}
As in 4.86, if NC obtains just one file, it either dummy-converts it (A.PNG -> A.PNG , output just bigger), or can't do anything with a text file.
Helmut wrote (
http://newsgroup.xnview.com/viewtopic.php?t=3930 ) :
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).
No need for an "option" , just pass
one filename and nothing else !

Re: Filelist + commmands list
Posted: Mon Mar 03, 2008 8:47 am
by xnview
NTOSKRNL_VXE wrote:No answer yet
Simplifying the idea, if NCONVERT obtains just
one file, assume it as text file containing both the commands, and the list of files ... just define a character or string preceding a new commandline to make it well distinguishable from a filename
SCRIPT.TXT
Code: Select all
### -truecolors -rotate 45 -text_font Lucida 14 -text_color 255 200 100 -text "Hello World" -rtype lanczos -resize 400% 400% -out bmp {EOL}
shot.bmp {EOL}
C:\test.bmp {EOL}
C:\test.jpg {EOL}
E:\foto\w0001.png {EOL}
### -truecolors -resize 300% 300% -out bmp {EOL}
C:\web\a.gif {EOL}
C:\web\b.gif {EOL}
C:\web\c.gif {EOL}
I like this idea!
Posted: Fri Mar 14, 2008 6:14 pm
by Cinemaizer
Great Thanks for v4.90 release!
It's working fine, so more better !
P.S: Respect 2 NTOSKRNL_VXE ! Fine Idea !

4.90
Posted: Sat Mar 15, 2008 1:11 am
by DOS386
4.90 is out
Script implemented and works
DOS version exists again
Thanks to Pierre
