Page 1 of 1

Unattended processing

Posted: Sun Dec 11, 2011 10:15 am
by Anakunda
Hello / Bon jour :D

Is it ossible us XnView in unattended mode, ie. I will define a group of actions for processing a single image?
For example: I need to do in one step following actions to image which name I will pass as program argumment via command line:

1. resize it to 200xAuto (keep aspect ratio)
2. Strip all metadata
3. Save it always as JPEG with defined filename and compression factor

It would be very handy for me.

Re: Unattended processing

Posted: Sun Dec 11, 2011 10:50 am
by ckv
Use the batch processing tools in XnView or try NConvert / XnConvert.

NConvert and XnConvert are both more dedicated tools for this kind of work. XnConvert is a standalone version of XnView MP's batch processing tool and NConvert is a command-line tool for converting graphic files.

Re: Unattended processing

Posted: Sun Dec 11, 2011 1:16 pm
by Anakunda
Thankyou for suggestion. I'm now trying nconvert which seems to be closest for unattended processing.

I've stuck at resizing params for nconvert, dont know which I should specify as nex Y-size if I want it to be auto (computed from new X size and aspect ratio)

this won't work:

for %%i in (*.jpg *.jpeg *.gif *.png *.bmp *.tif *.tiff) do (
nconvert.exe -overwrite -D -out jpeg -resize 100 -ratio -rtype lanczos -rmeta -clean 255 -q 90 "%%i"

Btw. does -rmeta imply -clean 255 or do I have to specify both if I want it to strip all unnecessary metadata from converted picture, ie. to be as small as possible?

Re: Unattended processing

Posted: Mon Dec 12, 2011 9:15 am
by xnview

Code: Select all

-ratio -resize 100 0