NCONVERT commandline parsing / filelist

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

Moderators: XnTriq, xnview

User avatar
DOS386
Posts: 291
Joined: Sun Jun 11, 2006 2:43 pm

NCONVERT commandline parsing / filelist

Postby DOS386 » Sun Oct 28, 2007 10:23 am

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
Last edited by DOS386 on Sun Mar 02, 2008 6:01 am, edited 1 time in total.

User avatar
DOS386
Posts: 291
Joined: Sun Jun 11, 2006 2:43 pm

Filelist + commmands list

Postby DOS386 » Sun Mar 02, 2008 5:47 am

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 ;-)

Code: Select all

NCONVERT SCRIPT.TXT


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 ( 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 ! :D

User avatar
xnview
Author of XnView
Posts: 28559
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Filelist + commmands list

Postby xnview » Mon Mar 03, 2008 8:47 am

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 ;-)

Code: Select all

NCONVERT SCRIPT.TXT


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!
Pierre.

User avatar
Cinemaizer
Posts: 23
Joined: Mon Jan 28, 2008 2:22 pm
Location: Russia

Postby Cinemaizer » Fri Mar 14, 2008 6:14 pm

Great Thanks for v4.90 release!
It's working fine, so more better !

P.S: Respect 2 NTOSKRNL_VXE ! Fine Idea ! :D

User avatar
DOS386
Posts: 291
Joined: Sun Jun 11, 2006 2:43 pm

4.90

Postby DOS386 » Sat Mar 15, 2008 1:11 am

4.90 is out :-)

Script implemented and works :-)

DOS version exists again :-)

Thanks to Pierre :-)
There is indeed no WinZIP under my rock.


Return to “NConvert”

Who is online

Users browsing this forum: No registered users and 0 guests