Using the +level ImageMagick operator (https://imagemagick.org/script/command-line-options.php#level) in command line will produce an output image with the channel values of the input image compressed to the range specified.
For example, the following ImageMagick command will cause the output pixel intensity values to be present between 45% and 70% of the total pixel value range.
magick input.jpg +level 45%,70% output.jpg
How do you perform the +level ImageMagick operation in Wand?
The wand.image.BaseImage.level() (http://docs.wand-py.org/en/0.5.1/wand/image.html#wand.image.BaseImage.level) seems to perform the -level ImageMagick operation.
As specified on https://imagemagick.org/script/command-line-options.php#level, there is a close relationship between the -level and +level ImageMagick operators.
I have no idea how to do the +level ImageMagick operation in Wand.
Can someone shed a light on this?