Another type of Blur that can be performed in Wand python library is rotational blur. Rotational Blur is quite similar to Motion Blur but in this the motion of blur is circular. rotational_blur() function blur an image in a radius around the center of an image. Unlike the other blur methods, there is no radius or sigma arguments.
Syntax :
Python3
wand.image.rotational_blur( angle=angle_value,                          Âchannel="optional_channel_value")# radius should always be greater than sigma(standard deviation)Parameter :
Parameter Input Type Description angle basestring Degrees of rotation to blur with. channel numbers.Real Optional channel to apply the effect against.
Image Used :
 
Example #1:Â
Python3
# import display() to show final imagefrom wand.display import displayÂ
# import Image from wand.image modulefrom wand.image import ImageÂ
# read file using Image functionwith Image(filename ="koala.jpeg") as img:Â
    # perform rotational blur effect using rotational_blur() function    img.rotational_blur(angle = 10)Â
    # save final image    img.save(filename ="rb_koala.jpeg")Â
    # display final image    display(img) |
Output :
 
Example #2: Increase angle to 30.Â
Python3
# import display() to show final imagefrom wand.display import displayÂ
# import Image from wand.image modulefrom wand.image import ImageÂ
# read file using Image functionwith Image(filename ="koala.jpeg") as img:Â
    # perform rotational blur effect using rotational_blur() function    img.rotational_blur(angle = 30)Â
    # save final image    img.save(filename ="gb_koala.jpeg")Â
    # display final image    display(img) |
Output :
Â
