Wand level() function in Python Last Updated : 10 Mar, 2023 Comments Improve Suggest changes Like Article Like Report level() function controls the black and white boundaries of an image. Similar to the gamma() method, mid-point levels can be adjusted with the gamma keyword argument. The black and white point arguments are expecting values between 0.0 & 1.0 which represent percentages. Syntax : wand.image.level(operator, value, channel) Parameters : ParameterInput TypeDescriptionblacknumbers.RealBlack point, as a percentage of the system’s quantum range. Defaults to 0..whitenumbers.RealWhite point, as a percentage of the system’s quantum range. Defaults to 1.0. gammanumbers.RealOptional gamma adjustment. Values > 1.0 lighten the image’s midtones while values < 1.0 darken them. channelbasestringThe channel type. Example 1:Source Image: Python3 # Import Image from wand.image module from wand.image import Image # Read image using Image function with Image(filename ="koala.jpeg") as img: img.level(0.2, 0.9, gamma = 1.1) img.save(filename ="kl-level.jpeg") Output : Example 2: Increasing black and white value to 0.5 and 0.7. Python3 # Import Image from wand.image module from wand.image import Image # Read image using Image function with Image(filename ="koala.jpeg") as img: img.level(0.5, 0.7, gamma = 1.1) img.save(filename ="kl-level2.jpeg") Output : Comment More infoAdvertise with us Next Article Wand level() function in Python R RahulSabharwal Follow Improve Article Tags : Python Python-wand Practice Tags : python Similar Reads Wand line() function in Python line() is another drawing function present in wand.drawing module. As the name implies line() function is used to draw a line in the image. line() function only need two arguments that are start and end point of the line that we want to draw. Syntax : wand.drawing.line(start, end) Parameters : Param 2 min read Wand point() function in Python point() is another drawing function and simplest of all. point() function basically draw a point on a particular point on an image. It simply takes two x, y arguments for the point coordinate. Syntax : wand.drawing.point(x, y) Parameters: ParameterInput TypeDescriptionxnumbers.Realx coordinate of po 1 min read Wand flip() function in Python In this article we will learn what is flip() function. Basically this function returns a flipped image. Flip effect flips an image upside-down or creates an vertical reflection of image. No arguments are needed in this function. Syntax : wand.image.flip()Parameters : No Parameters in flip() function 1 min read Wand - blur() function in Python Blurring Image means making an image fuzzy or hazy. A blur image is indefinite and it is unable to see an image clearly. Blur is of many types, like - Adaptive blur, Gaussian blur, Selective Blur etc. In order to blur an image we use blur() function. blur() function takes three arguments. Example : 2 min read Wand flop() function in Python In this article we will learn what is flop() function. Basically this function returns a flipped image. Flop effect flops an image upside-down or creates an vertical reflection of image. No arguments are needed in this function. Syntax : wand.image.flop()Parameters : No Parameters in flop() function 1 min read Wand wave() function in Python wave() function creates a wave like structure from top and bottom of the image. Creates a ripple effect within the image. We can change wavelength as well as amplitude of the image using amplitude & wave_length parameters in wave() function. Syntax : wand.image.wave(amplitude, wave_length) Param 1 min read Wand function() function in Python function() function is similar to evaluate function. In function() function pixel channels can be manipulated by applies a multi-argument function to pixel channels. Following are the list of FUNCTION_TYPES in Wand: 'undefined''arcsin''arctan''polynomial''sinusoid' Syntax : wand.image.function(funct 1 min read Python - Image() function in Wand In this specific article we will learn how to read our image through Python wand module. To read image in Wand we use Image() function. To manipulate an image first of all we need to read image in Python. Parameters : Parameter Input Type Description image Image make exact copy of image blob bytes o 2 min read round() function in Python Python round() function is a built-in function available with Python. It will return you a float number that will be rounded to the decimal places which are given as input. If the decimal places to be rounded are not specified, it is considered as 0, and it will round to the nearest integer. In this 6 min read Wand circle() function in Python The circle() function is another Drawing function in Wand. This method is used to draw a circle in the image. It requires only two arguments that are origin and perimeter of the circle. Syntax: wand.drawing.circle(origin, perimeter)Â Parameters : ParameterInput TypeDescriptionorigin(collections.abc. 2 min read Like