Use of -levels2 options

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

Moderators: XnTriq, helmut, xnview

Post Reply
SAMSAM
Posts: 27
Joined: Sun Sep 15, 2019 5:14 pm

Use of -levels2 options

Post by SAMSAM »

In the new version 7.70 of nconvert, the command "-levels2" has appeared, please help us understand the parameters of this command. The logic of these 5 parameters is not quite clear. Describe them in more detail and preferably with examples.
Last edited by SAMSAM on Fri Apr 09, 2021 5:20 pm, edited 1 time in total.
cday
XnThusiast
Posts: 3973
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: Command parameters - levels 2

Post by cday »

SAMSAM wrote: Thu Apr 08, 2021 5:31 pm In the new version 7.70 of nconvert, the command "-levels 2" has appeared, please help us understand the parameters of this command. The logic of these 5 parameters is not quite clear. Describe them in more detail and preferably with examples.
Referring to the Image > Adjust > Levels... display in XnView MP:

-levels2.png
-levels2.png (20.67 KiB) Viewed 4264 times

Code: Select all

-levels b w     : Levels
The b and w parameters in the above NConvert option can be taken to refer to the top slider left and right window numeric values, I believe.

Code: Select all

-levels2 in_low in_high gamma out_low out_high : Levels
In the -levels2 option, the in_low, in_high, and gamma values can be taken to represent the top slider left, right and centre numeric values, and the out_low and out_high refer to the lower slider (labelled Output) left and right numeric values, I believe.

In the event of any confusion, a quick check of the resulting output images using XnView MP and NConvert should confirm correct operation.
SAMSAM
Posts: 27
Joined: Sun Sep 15, 2019 5:14 pm

Re: Use of -levels options

Post by SAMSAM »

Thank you, now everything is clear. Let's try ... :)
Post Reply