Batch processing from command line

Ideas for improvements and requests for new features in XnView Classic

Moderators: XnTriq, xnview

Post Reply
sartaros
Posts: 25
Joined: Tue Dec 14, 2010 11:21 am

Batch processing from command line

Post by sartaros »

Is is really to permit execution XBS files from viewer command line, or as a task for nconvert?
User avatar
xnview
Author of XnView
Posts: 34083
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Batch processing from command line

Post by xnview »

XBS file are only for XnView, you can export a command line from XBS
Pierre.
sartaros
Posts: 25
Joined: Tue Dec 14, 2010 11:21 am

Re: Batch processing from command line

Post by sartaros »

xnview wrote:XBS file are only for XnView, you can export a command line from XBS
Somthing as
>xnview -ex File.xbs

What is the export command line from XBS file?
User avatar
helmut
Posts: 8219
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Re: Batch processing from command line

Post by helmut »

For exporting your .xbs file to a "real" batch script which can be executed from command line using nconvert you...
1. ...open the dialog "Batch processing" in XnView (Menu "Tool > Batch processing")
2. ...in "Batch processing" dialog press button "Load..." and choose your XBS file using the file dialog. Confirm the file dialog with "Open".
3. ...Press button "Export..." and choose a directory and name for your batch script.
Done.

Please note that for executing the batch script you might need to include nconvert in the search path (PATH) for program files. Or you edit the batch script and add the full path for nconvert.
sartaros
Posts: 25
Joined: Tue Dec 14, 2010 11:21 am

Re: Batch processing from command line

Post by sartaros »

Thank you, helmut.
This way is very bad for debugging operating sequence.
May be it's a bug. But adding a new operation not correspond with exporting bat file. If i want to add an operation, i have to initiate the new dialog/ It's very uncomfortable.
User avatar
helmut
Posts: 8219
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Re: Batch processing from command line

Post by helmut »

I don't quite understand what you mean.

In "Batch processing" dialog you can save and load your script quickly. So you can save your transformation and export it. If needed, you can reload your transformations (using the drop down list box), change it, save it, and export it, again. Simple and fast, I think.

If that's not fast enough and you want to do more batch scripting, you will have to learn how to use nconvert.
User avatar
XnTriq
Moderator & Librarian
Posts: 5617
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: Batch processing from command line

Post by XnTriq »

xnview wrote:XBS file are only for XnView, you can export a command line from XBS
Let's not forget about XnConvert ;-)
User avatar
helmut
Posts: 8219
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Re: Batch processing from command line

Post by helmut »

XnTriq wrote:
xnview wrote:XBS file are only for XnView, you can export a command line from XBS
Let's not forget about XnConvert ;-)
Right. A pity that XnConvert is still in beta testing stage, I hope this will change once XnView MP is finished.
User avatar
xnview
Author of XnView
Posts: 34083
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Batch processing from command line

Post by xnview »

helmut wrote:
XnTriq wrote:
xnview wrote:XBS file are only for XnView, you can export a command line from XBS
Let's not forget about XnConvert ;-)
Right. A pity that XnConvert is still in beta testing stage, I hope this will change once XnView MP is finished.
I think that this version will not be supported anymore. But a new version of XnConvert (dialog from MP) will be available...
Pierre.
Post Reply