nconvert precedence question

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

Moderators: helmut, XnTriq, xnview

Post Reply
BabaG
Posts: 150
Joined: Sat Mar 03, 2007 6:41 am

nconvert precedence question

Post by BabaG »

in what order does nconvert execute commands for image correction?

i seem to be having some issues that may be related to precedence.
i use xnview to adjust an image, then make note of the corrections used,
and apply those corrections to multiple images via an nconvert script.
sometimes they don't match and i'm thinking this may be due to the order
of execution.

does nconvert execute corrections in the order given in the script, or
does it take all of the commands and then execute them in its own order?

an example script might include (not actual line as i'm not at that computer
now):

nconvert -quiet -out jpeg -high_res -raw_camerabalance -negate -levels 50 240 -brightness 10 -contrast 10 -gamma .8 -balance 10 5 23 -crop 0 0 2048 1536 -bgcolor 0 0 0 -canvas 2048 1536 0 0 -resize 2048 1536 -o destination_filename

again, this is not a real command line. i'm just interested in the order
in which these commands would be executed by nconvert were the line
to be syntactically correct. would they be executed in the order as written,
or would they be taken in and executed in a predetermined nconvert order?

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

Re: nconvert precedence question

Post by xnview »

BabaG wrote: does nconvert execute corrections in the order given in the script,
Yes, do you have an example of script that has a problem.?
Pierre.
BabaG
Posts: 150
Joined: Sat Mar 03, 2007 6:41 am

Re: nconvert precedence question

Post by BabaG »

thanks for the info pierre. i don't think it's my script that has a problem, though.
i think it's how i use xnview to figure out what values to pass to the script. i
think i just need to be very careful to make corrections to my test image in
xnview in the same order that my script executes those corrections. that can
be a bit of a challenge sometimes when a lot of different corrections are being
applied.

working with a test image in xnview i work very much in an intuitive manner,
making an adjustment, thinking about how the image looks, making another
adjustment, etc, etc. i don't think i've paid enough attention sometimes to
the order in which these adjustment have been made in xnview as the intuitive
manner of adjusting the image does not always match the order in which the
script applies the corrections. hope that's not too confusing.

thanks again,
BabaG
Post Reply