Page 1 of 1

Use of -levels2 options

Posted: Thu Apr 08, 2021 5:31 pm
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.

Re: Command parameters - levels 2

Posted: Thu Apr 08, 2021 6:11 pm
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 4636 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.

Re: Use of -levels options

Posted: Fri Apr 09, 2021 4:17 am
by SAMSAM
Thank you, now everything is clear. Let's try ... :)