Unattended processing

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

Moderators: XnTriq, xnview

Post Reply
Anakunda
Posts: 12
Joined: Sun Aug 29, 2010 7:55 am

Unattended processing

Post by Anakunda » Sun Dec 11, 2011 10:15 am

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.

User avatar
ckv
Posts: 779
Joined: Wed Feb 02, 2005 2:30 pm
Location: Glow
Contact:

Re: Unattended processing

Post by ckv » Sun Dec 11, 2011 10:50 am

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.
XnView Tweak UI - Tool to customize your XnView beyond the regular XnView options.
UI-less Settings - Documentation of all the hidden settings in XnView.
XFAM - Tool to create and customize XnView file associations.

Anakunda
Posts: 12
Joined: Sun Aug 29, 2010 7:55 am

Re: Unattended processing

Post by Anakunda » Sun Dec 11, 2011 1:16 pm

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?

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

Re: Unattended processing

Post by xnview » Mon Dec 12, 2011 9:15 am

Try

Code: Select all

-ratio -resize 100 0
Pierre.

Post Reply