Python - shade() function in Wand Last Updated : 18 Oct, 2021 Summarize Comments Improve Suggest changes Share Like Article Like Report shade() function generates a 3d kind of image or creates a 3d effect by simulating a light from an elevated angle. azimuth parameter is used to control the X and Y angle and elevation parameter is used to control the z angle of the image. We can also get final image in grayscale by putting gray parameter as true. Syntax : wand.image.shade(gray, azimuth, elevation); Parameters : ParameterInput TypeDescriptiongraybooleanIsolate the effect on pixel intensity. Default is False.azimuthnumbers.realAngle from x-axis.elevationnumber.RealAmount of pixels from the z-axis. Source Image: Example 1: Python3 # import Image from wand.image module from wand.image import Image # Read image using Image function with Image(filename ="koala.jpeg") as img: # generating shaded image using shade() function. img.shade(gray = True, azimuth = 286.0, elevation = 45.0) img.save(filename ="shadekoala.jpeg") Output: Example 2: setting gray as False, increasing azimuth and elevation value. Python3 # import Image from wand.image module from wand.image import Image with Image(filename ="koala.jpeg") as img: # generating shaded image using shade() function. img.shade(gray = True, azimuth = 298.0, elevation = 70.0) img.save(filename ="shadekoala_2.jpeg") Output: Comment More infoAdvertise with us Next Article Wand - sketch() function in Python R RahulSabharwal Follow Improve Article Tags : Python Python-wand Practice Tags : python Similar Reads Wand shade() function - Python The shade() function is an inbuilt function in the Python Wand ImageMagick library which is used to generates create a 3D effect by simulating a light from an elevated angle. Syntax: shade(gray, azimuth, elevation) Parameters: This function accepts three parameters as mentioned above and defined bel 2 min read Python - sharpen() function in Wand sharpen() function is used in order to enhance blurry edges into more distinct(sharp) edges. This is achieved using a Gaussian function. The radius value should always less than the standard deviation(sigma). Sharpen effect image more clearer and defined. Syntax : wand.image.sharpen(radius, sigma, c 1 min read Wand shave() function - Python The shave() function is an inbuilt function in the Python Wand ImageMagick library which is used to remove pixels from the image. Syntax: shave(columns, rows) Parameters: This function accepts four parameters as mentioned above and defined below: columns: This parameter is used to set amount to shav 2 min read Wand shadow() function - Python The shadow() function is an inbuilt function in the Python Wand ImageMagick library which is used to generates an image shadow. Syntax: shadow(alpha, sigma, x, y) Parameters: This function accepts four parameters as mentioned above and defined below: alpha: This parameter stores the ratio of the tra 2 min read Wand - sketch() function in Python Sketch is another artistic special effect present in Wand library in python. sketch() function generates a pencil sketched image in output.For best results, radius value should be larger than sigma. Syntax : Python3 wand.image.sketch( radius, sigma, angle) # radius should always be greater than sig 1 min read Wand rotate() function in Python Rotation changes the orientation of image or it rotates image to a particular angle. rotate() takes a degree which can be 0 to 359. (Actually you can pass 360, 361, or more but it will be the same to 0, 1, or more respectively.). Syntax : wand.image.rotate(degree, background, reset_coords) Parameter 1 min read Like