Skip to content

-level black_point{,white_point}{%}{,gamma} #7265

Answered by snibgo
ssbroad asked this question in Help
Discussion options

You must be logged in to vote

The documentation at https://imagemagick.org/script/command-line-options.php#level says:

Given one, two or three values delimited with commas: black-point, white-point, gamma (for example: 10,250,1.0 or 2%,98%,0.5). The black and white points range from 0 to QuantumRange, or from 0 to 100%; ...

So if you don't use percent %, the numbers are in the range from 0 to QuantumRange. If your IM is Q8, QuantumRange is 255. For Q16, it is 65535. For Q32, it is 4294967295.

magick -version will show your Q-number. To see you QuantumRange, you can:

magick xc: -precision 15 -format %[fx:QuantumRange] info:

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ssbroad
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants