How to "Batch" several commands via Icon in the Viewer?

Ask for help and post your question on how to use XnView Classic.

Moderators: helmut, XnTriq, xnview

Post Reply
EuM_Expert
Posts: 20
Joined: Mon Jul 23, 2012 1:54 pm

How to "Batch" several commands via Icon in the Viewer?

Post by EuM_Expert »

I regularly scan a few pages or have a few photos to perform the following on:

- resize to 1024 x 768
- normalize the colors
- automatic contrast
- automatic level

I did that via Toolbar-Icons and the integrated cmd_xxxx Commands.
Is there a way that to integrate all commands into one batch/command which can be called from the command line?
It shall only affect the current image, i.e. only one image at a time.

Any hint would be cool.

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

Re: How to "Batch" several commands via Icon in the Viewer?

Post by oops66 »

... for example ... In tools\batch processing ... you can save the script (and call it again the next time)
XnViewMP Linux X64 - Debian - X64
cday
XnThusiast
Posts: 4396
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: How to "Batch" several commands via Icon in the Viewer?

Post by cday »

The title of the post says '... via Icon in the Viewer' then the text of the post says 'which can be called from the command line' ...

You can perform a batch operation on the current image open in the Viewer using the following icon on the toolbar:
Batch_1.png
... which opens this window with the current file already loaded; you can load the batch settings from a saved script as oops66 says but I'm not sure if the last script used loads automatically (... possibly only an option in XnViewMP and XnConvert, which you might look at if you haven't done so already. EDIT: Currently only in XnConvert -- Settings tab, but might possibly be added to XnViewMP later.)
Batch_2.png
Batch_2.png (23.36 KiB) Viewed 1396 times
It should alternatively be possible to perform the required operations directly from the command line using an NConvert script in a batch file .bat if all the required operations are supported.
Last edited by cday on Thu Mar 06, 2014 5:58 pm, edited 1 time in total.
Post Reply